Skip to content

Create prohibit_during_test decorator#745

Open
SimonAdamek wants to merge 2 commits intomrlvsb:masterfrom
SimonAdamek:task-viewing-during-test
Open

Create prohibit_during_test decorator#745
SimonAdamek wants to merge 2 commits intomrlvsb:masterfrom
SimonAdamek:task-viewing-during-test

Conversation

@SimonAdamek
Copy link
Contributor

Teachers sometimes allow students to upload materials for tests to Kelvin. So, I enabled viewing of assignments with a "Hard deadline" that expires before the start of the test.

This means that if a teacher wants to allow students to upload test materials to Kelvin, they must create a task with a "hard deadline" before the test. It's a bit complicated, but I couldn't think of any other way to solve it.

Related to #603

@SimonAdamek SimonAdamek force-pushed the task-viewing-during-test branch from 1e8cb6f to 2e719c8 Compare November 6, 2025 13:22
@Kobzol
Copy link
Collaborator

Kobzol commented Nov 9, 2025

Thank you, the decorator looks reasonable. I'm not familiar with the use-case for uploading "test materials" though, I'll ask geordi about it.

@SimonAdamek
Copy link
Contributor Author

What I mean is, for example, we now sometimes have the opportunity to look at the source codes of older assignments or upload cheat sheets for tests to Kelvin. I don't know how many teachers do this, but I decided to allow it....

I think that if it's there, nothing will happen, and anyone who wants to can use it.

@Kobzol
Copy link
Collaborator

Kobzol commented Nov 12, 2025

I think you already talked about this with geordi, but there are some "edge cases" that we should consider, for example someone uploading a submit e.g. a week before a test, and then reading its code, or someone submitting code through a comment on a different task, and then deleting that comment to hide tracks.

We were talking about making it impossible to delete and modify comments for students during a test. However, that is not enough, because someone could make a comment during a test, then copy the output from it, and then delete the comment just after the test ends (but before someone realistically has a chance to take a look at their submit to see the incriminating comment).

Maybe what we could do is to make any comments that are created ~hour before/after a test be "pinned", so that they cannot be modified nor removed by the student, ever? @geordi

@SimonAdamek SimonAdamek force-pushed the task-viewing-during-test branch from 2e719c8 to cfe9de6 Compare November 27, 2025 16:46
@SimonAdamek SimonAdamek force-pushed the task-viewing-during-test branch from cfe9de6 to 32bec73 Compare November 27, 2025 16:48
@SimonAdamek
Copy link
Contributor Author

Currently, I do not allow students to make any comments during the test, or view old ones. I do not understand how it would be beneficial if it were +/- one hour. However, this can be easily adjusted if you want...

@Kobzol
Copy link
Collaborator

Kobzol commented Dec 6, 2025

The problem with "during test" is that quite often tests last longer than the deadline :)

@Kobzol
Copy link
Collaborator

Kobzol commented Dec 6, 2025

Teachers sometimes allow students to upload materials for tests to Kelvin.

If Kelvin is used as a side channel to upload materials for tests where students don't have internet access, we should change that. That is super brittle and I don't trust that we can implement the logic in Kelvin to support that use-case robustly.

CC @geordi what do you think about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants