Skip to content
This repository has been archived by the owner on Dec 31, 2021. It is now read-only.

Atomic operations on handling submission repos #166

Open
ksurya opened this issue May 5, 2014 · 1 comment
Open

Atomic operations on handling submission repos #166

ksurya opened this issue May 5, 2014 · 1 comment

Comments

@ksurya
Copy link
Member

ksurya commented May 5, 2014

If two users are simultaneously editing a submission, the current system can't provide a mechanism to correctly handle the situation.

There is a possibility of happening the below

  1. While one user starts adding changes, another user also starts adding. Whereby anyone user commits changes which itself is wrong
@ksurya ksurya added bug labels May 5, 2014
@ksurya
Copy link
Member Author

ksurya commented May 5, 2014

One way to solve this is to use django.contrib.auth.models.Permission to have permissions like can_edit which is linked to scipy_central.submission.models.Submission. Storage dir should only be accessed when can_edit is True.

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

No branches or pull requests

1 participant