Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow domain roots to list all their submissions. #492

Open
wlnirvana opened this issue Mar 25, 2019 · 10 comments
Open

Allow domain roots to list all their submissions. #492

wlnirvana opened this issue Mar 25, 2019 · 10 comments
Labels

Comments

@wlnirvana
Copy link

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?

@twd2
Copy link
Member

twd2 commented Mar 26, 2019

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

@wlnirvana
Copy link
Author

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

@twd2
Copy link
Member

twd2 commented Mar 31, 2019

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.

@wlnirvana
Copy link
Author

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?

@twd2
Copy link
Member

twd2 commented Apr 1, 2019

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
Copy link
Member

twd2 commented Apr 1, 2019

We have different permission checking for listing and viewing.

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

@wlnirvana
Copy link
Author

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.

@twd2
Copy link
Member

twd2 commented Apr 1, 2019

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

@wlnirvana
Copy link
Author

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.

@twd2 twd2 added the feature label Apr 1, 2019
@twd2 twd2 changed the title Confusing submission history/count Allow domain roots to list all their submissions. Apr 1, 2019
@undefined-moe
Copy link
Member

View by enumerating the submission ID (fog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants