-
Notifications
You must be signed in to change notification settings - Fork 302
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
🪲Explore page: "retract program" button visible to any teacher #5990
Comments
The fact that the Based on the PR, it is not clear whether it was overlooked or it was intended to give all teachers the superpower to unsubmit the programs of all students (as opposed to only to students they currently teach). The PR has a If a student can be enrolled in a single class, then a teacher should be able to unsubmit only the programs of the students they are currently teaching. Unsubmitting programs of another teacher's students will negatively impact that other "classroom". Let me know if you would like me to create further issues based on the investigation above. |
Thanks for looking into it!
Common sense says that this should not be allowed to happen, so I would expect if it was intentional that there would have been an explicit request for it. My suspicion is that it was overlooked.
Good call-out! The submitting and freezing mechanism needs another overhaul anyway. @Felienne recently came up with a grading mechanism that seems more general-purpose: being able to look at all students' programs, and "mark them off" if the program is sufficient. The program can be "submitted" or "not submitted"; in that workflow, "submitted" functions more like a guarantee that the program cannot be (accidentally) edited anymore by the student, so the "last updated" timestamp can count as the "hand in" date. Adding a note and putting the program into a state of "work needed" seems like an easy extension of this workflow. I will take that into account when I'm thinking about grading. For now, I think for now we can convert this issue into: a teacher should only be allowed to unsubmit programs of students that they teach. Also, the button and caption take up a huge amount of space. Can we put it somewhere else and make it smaller so it's not so distracting? |
What's the problem?
If a teacher browses the "explore" page and clicks a program, a "retract program" button appears. It might not be just for teachers, it is at least for teachers.
This button even seems to work, as in: even if the program is owned by an arbitrary user, I can click it to un-submit it.
What's the solution?
This button should never appear on this page, probably not even if you are the user that wrote this program.
The problem might be caused by reuse of HTML components between the regular "edit" page, the "my saved programs" page, and the "view program" page.
Next steps
Someone should investigate how this has happened to begin with. Why did this button appear on this page? Is there re-use of HTML components that leads to changes on one page to having an effect on another page?
No fixing needs to happen yet, just this question needs to be answered.
The text was updated successfully, but these errors were encountered: