-
Notifications
You must be signed in to change notification settings - Fork 351
[ENG-8048] Optimized GV requests #11398
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
Open
ihorsokhanexoft
wants to merge
18
commits into
CenterForOpenScience:feature/pbs-25-21
Choose a base branch
from
ihorsokhanexoft:fix/ENG-8048-4
base: feature/pbs-25-21
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[ENG-8048] Optimized GV requests #11398
ihorsokhanexoft
wants to merge
18
commits into
CenterForOpenScience:feature/pbs-25-21
from
ihorsokhanexoft:fix/ENG-8048-4
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* custom html host for legacy OSF * fixed html links, added a test
…ature/ENG-9022 ## Purpose Anyone can duplicate public projects (structure only) but should be a contributor for a private project ## Changes Updated if statement ## Ticket https://openscience.atlassian.net/browse/ENG-9022
…-9064 [ENG-9064] When creating file guid through API, needs to work for people with read perms
…enScience#11144) ## Purpose Throughout registration creation user can view attached files. However `resolve_guid` doesn't handle this case and renders the legacy UI that shows error because `get_rdf_type` raises `NotImplementedError`. So this case has no be handled by ember. However when we switch to the new UI, we get `draftnode is not a supported target type`. Also there will be some work for FE because for now ember relies on `node` relationship that draft node/registration don't have. Taking into account Futa's words, it's an unusual flow for ember ## Changes Added redirect to ember, updated `view_map` that referenced to the non-existing view `draft_nodes:node-detail` to use `draft_nodes:draft-node-detail` view ## Notes 1. I'm not confident that `draft-node` key is still used in `view_map`. From the `resolve` method of `TargetField` I see that keys are either model name in lowercase or `referent._name` that I couldn't find how is created (maybe automatically). However if it existed, there would be some errors that this view does not exist. So I left both keys but with the correct view name. In case you know the answer, I can remove the original key and leave only the correct one ## Ticket https://openscience.atlassian.net/jira/software/c/projects/ENG/boards/145?selectedIssue=ENG-5810
This reverts commit 15915b0.
…to fix/ENG-8048-4
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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_addonsattribute 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
Added caching mechanism
Ticket
https://openscience.atlassian.net/browse/ENG-8048?atlOrigin=eyJpIjoiOGE5NDg4N2QzMjU3NGRmYjllNjIxY2I2ZTAwMWE5MDIiLCJwIjoiaiJ9