mumuki / mumuki-laboratory

:microscope: Where students practice and receive automated and human feedback

Home Page:http://mumuki.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Submissions Store should contain user's id as key for retrieving solutions

luchotc opened this issue · comments

If a user id is present (user is not incognito in our current implementation), we should use that id to store and retrieve submissions in SubmissionsStore.
If we don't do that, two users sharing same device won't be able to able to re do exercises easily.
Let's also add the organization as well, as we will need it very soon.

We should be aware that this change will invalidate all current stored submissions, but we can and should live with that.

We could discuss another options, like always sending the solution with a specific flag that only executes it if the student doesn't have an assignment, but that is more complicated and I don't see any real benefits in contrast with the other solution.