-
Notifications
You must be signed in to change notification settings - Fork 1
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
Second DRS Fix #297
base: master
Are you sure you want to change the base?
Second DRS Fix #297
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests need updating? The fixture uses old version of uri - may not matter but for consistency?
if 'accession' not in self.schema['properties']: | ||
return keys | ||
keys.setdefault('accession', []).extend(properties.get('alternate_accessions', [])) | ||
if properties.get('status') != 'replaced' and 'accession' in properties: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the and 'accession' in properties
clause needed - if you get here won't it definitely be there even if only an empty list from the line above?
And will this not be problematic for 'replaced' files as now this file that has the old accession as an alternative_accession will have a unique key conflict with the replaced file which is still accessible and in the db?
drs_id