fix(config): disallow versioning for external DOIs - #973
TahaKhan998 wants to merge 1 commit into
Conversation
| return (source or "").lower() in _ARXIV_SOURCES | ||
|
|
||
|
|
||
| def keep_shared_doi_on_latest(latest_entry, versions): |
There was a problem hiding this comment.
let's discuss this IRL with the team
There was a problem hiding this comment.
more context - this is because of the external DOIs not being displayed on the latest version and if harvester adds a new version, the DOI will not be displayed on the latest
suggested approach: not to create versions for external DOIs, both in migration and harvester
ON HOLD
There was a problem hiding this comment.
discussed:
when we are updating records with external DOIs, we should keep one version only (check how zenodo implements this - the feature is already there, it is a question of setting the permissions correctly)
5b5ade0 to
8b2801f
Compare
|
Updating files needs a new version. This config blocks new version for records with an external DOI, so a curator cannot add or delete files on those records. They can still edit the metadata. |
8330746 to
5d7e0b6
Compare
5d7e0b6 to
a0200f7
Compare
| Administration(), | ||
| InspireHarvester(), | ||
| SystemProcess(), | ||
| IfExternalDOIRecord( |
There was a problem hiding this comment.
I think it might be more complex than this, see the file modification grace period
There was a problem hiding this comment.
in the scope of this PR I think it will not be?
There was a problem hiding this comment.
depends what this line mean.... anyway my point is, we need to document and know in the case of external DOIs what is the file modification policy:
- do we always allow file modifications?
- is there a file modification grace period and then it is blocked?
this is more essential now that we have blocked newer versions for the external DOIs.

closes #943
same as zenodo, curators shouldn't be able to create a new version of a record that has an external DOI. set RDM_ALLOW_EXTERNAL_DOI_VERSIONING = False.