vj4 icon indicating copy to clipboard operation
vj4 copied to clipboard

Allow domain roots to list all their submissions.

Open wlnirvana opened this issue 5 years ago • 10 comments

https://vijos.org/d/kidolab_2019_Spring/user/136941

Last accessed: Mon Mar 25 15:23:42 CST 2019

image

Is this 0 or 46?

wlnirvana avatar Mar 25 '19 07:03 wlnirvana

This is the actual number of his submissions, while some of them are hidden (contest submission or homework submission).

twd2 avatar Mar 26 '19 13:03 twd2

Is it possible for a domain root user to view all the submissions (including the hidden ones) of a user then?

wlnirvana avatar Mar 26 '19 23:03 wlnirvana

Due to the design, we currently do not support a domain root to list all its submissions, and only system root can do so. Sorry.

twd2 avatar Mar 31 '19 15:03 twd2

Just to confirm, even the programs are submitted to a domain (say D), the root user of D is still not able to view the code, right?

wlnirvana avatar Apr 01 '19 01:04 wlnirvana

For the code, the domain root can see all the code submitted to the domain.

By the way, if the domain root knows the submission id, he/she can see the single submission.

twd2 avatar Apr 01 '19 02:04 twd2

We have different permission checking for listing and viewing.

https://github.com/vijos/vj4/blob/master/vj4/handler/record.py

twd2 avatar Apr 01 '19 02:04 twd2

For the code, the domain root can see all the code submitted to the domain.

How to do that? I feel like the domain root can view only one (the latest) submission from users for each problem via the scoreboard. For the reference the I am using hidden problem.

wlnirvana avatar Apr 01 '19 02:04 wlnirvana

You need to know the submission id ^_^ T_T.

twd2 avatar Apr 01 '19 02:04 twd2

I see. I will leave the issue open as I think domain root ought to have the permission to list all records submitted to his/her domain, but feel free to close it or tag it as won't fix. Thanks for the clarification though.

wlnirvana avatar Apr 01 '19 03:04 wlnirvana

View by enumerating the submission ID (fog

undefined-moe avatar May 05 '19 16:05 undefined-moe