-
Notifications
You must be signed in to change notification settings - Fork 20
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 submitting author status to be transferred to a co-author. Ref #2128 #2131
Conversation
…2128. We occasionally ask for submtting author status of a project to be transferred. This change adds a 'transfer project' button to the author page of the project submission system.
Not tested but sounds like a great idea. If the project is published then only the original submitting author can create a new version. (I have thought that it would be nice to allow any author to do that, but that can be another PR.) However, we don't want to allow the original submitting author to create two new versions of the same project - does this still prevent that? |
Good question! I tested this fairly thoroughly and, as far as I can see, it is not possible to create multiple new versions of a project. e.g. if the submitting author creates a new version and transfers the new version to a co-author, it is not possible to create a second new version. I think the logic that prevents multiple new versions is defined here: physionet-build/physionet-django/project/views.py Lines 317 to 340 in cece757
... and here: physionet-build/physionet-django/project/modelcomponents/publishedproject.py Lines 254 to 261 in cece757
|
Sounds good, thanks for checking. Could you add a test case in |
@bemoody Test case added! |
You mean |
f38d11c
to
84141fa
Compare
Good catch, now fixed. |
As discussed in #2128, currently the submitting author of a project cannot be changed. There are times when it would be helpful to allow submitting authors to transfer this status to co-authors. e.g. when:
This change adds a 'transfer project' button to the author page of the project submission system.