Skip to content

Conversation

@ihorsokhanexoft
Copy link
Contributor

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

Added caching mechanism

Ticket

https://openscience.atlassian.net/browse/ENG-8048?atlOrigin=eyJpIjoiOGE5NDg4N2QzMjU3NGRmYjllNjIxY2I2ZTAwMWE5MDIiLCJwIjoiaiJ9

ihorsokhanexoft and others added 18 commits September 29, 2025 21:34
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants