-
Notifications
You must be signed in to change notification settings - Fork 347
[ENG-8048] Remove caching to avoid incorrect results for ascendants #11169
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
[ENG-8048] Remove caching to avoid incorrect results for ascendants #11169
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.
I don't think the caching done here is affecting how files are archived during the registration workflow. Could you take another look?
This reverts commit 15915b0.
@adlius pushed a new commit. I implemented it in a bit different way. The reason is that the way you suggested doesn't work because this line processes None as osf.io/osf/external/gravy_valet/translations.py Lines 27 to 28 in 2328dd6
I decided to not change the source code and use an additional cached parameter to control caching and separated fetching addons from GV into _get_addons_from_gv_without_caching
|
7d752ac
into
CenterForOpenScience:feature/pbs-25-10
…cience/osf.io into feature/notification-refactor-phase-1 * 'feature/pbs-25-10' of https://github.com/CenterForOpenScience/osf.io: Revert "[ENG-8048] Remove caching to avoid incorrect results for ascendants (…" Revert "fixed None issue when iterate (CenterForOpenScience#11192)" fixed None issue when iterate (CenterForOpenScience#11192) [ENG-8048] Remove caching to avoid incorrect results for ascendants (CenterForOpenScience#11169) [ENG-7870] Crossref DOIs not minting with _v1, OSF is displaying DOI versions with _v1 (CenterForOpenScience#11154) Update changelog and package.json [ENG-8145] [ENG-8147] Manual DOI and GUID for Preprints & Registrations - BE (CenterForOpenScience#11174) Update hybrid values for new workflow check (CenterForOpenScience#11166)
…cience/osf.io into add-new-notifications-data-model * 'feature/pbs-25-10' of https://github.com/CenterForOpenScience/osf.io: fixed None issue when iterate (CenterForOpenScience#11192) [ENG-8048] Remove caching to avoid incorrect results for ascendants (CenterForOpenScience#11169) [ENG-7870] Crossref DOIs not minting with _v1, OSF is displaying DOI versions with _v1 (CenterForOpenScience#11154) Update changelog and package.json [ENG-8145] [ENG-8147] Manual DOI and GUID for Preprints & Registrations - BE (CenterForOpenScience#11174)
into refactor-notifications * 'develop' of https://github.com/CenterForOpenScience/osf.io: Update changelog and package.json Revert "[ENG-8048] Remove caching to avoid incorrect results for ascendants (…" Revert "fixed None issue when iterate (CenterForOpenScience#11192)" fixed None issue when iterate (CenterForOpenScience#11192) [ENG-8048] Remove caching to avoid incorrect results for ascendants (CenterForOpenScience#11169) [ENG-7870] Crossref DOIs not minting with _v1, OSF is displaying DOI versions with _v1 (CenterForOpenScience#11154)
…cience/osf.io into add-has-data-annotations-to-linked-nodes * 'feature/pbs-25-10' of https://github.com/CenterForOpenScience/osf.io: Revert "[ENG-8048] Remove caching to avoid incorrect results for ascendants (…" Revert "fixed None issue when iterate (CenterForOpenScience#11192)" fixed None issue when iterate (CenterForOpenScience#11192) [ENG-8048] Remove caching to avoid incorrect results for ascendants (CenterForOpenScience#11169) [ENG-7870] Crossref DOIs not minting with _v1, OSF is displaying DOI versions with _v1 (CenterForOpenScience#11154) Update changelog and package.json [ENG-8145] [ENG-8147] Manual DOI and GUID for Preprints & Registrations - BE (CenterForOpenScience#11174) Update hybrid values for new workflow check (CenterForOpenScience#11166) fix issue where trying another already confirmed email threw an uncaught exception (CenterForOpenScience#11161) [ENG-8148] Add ArtifactOutcome in annotations to linked nodes (CenterForOpenScience#11158)
Purpose
When user adds a component to a node that has addons with files and registers it, the node doesn't have any archived files. It happens because the child nodes are the first ones to be registered and if a child doesn't have any addons, this empty list would be saved in
request.gv_addons
attribute that is reused for all other parents and children to avoid making redundant requests to GV. However each child and parent may have its own collection of addons.Changes
Removed caching
QA Notes
Would be nice to test what happens when a child node has addons with files, but its parent hasn't. Will the parent inherit archived addons files or not?
Ticket
https://openscience.atlassian.net/browse/ENG-8048?atlOrigin=eyJpIjoiMzk1Yjc2MTIyNzQzNDVmYzg4OGE1ODViYjM1NGEyMWIiLCJwIjoiaiJ9