[GRDM-57695] プロジェクト・コンポーネントの作成・フォーク時に所属機関を付与する#9
Draft
tma-ntphat wants to merge 5 commits into
Draft
Conversation
…omponents in overwriting flow
…e cases to ensure proper behavior and parameter passing
yacchin1205
approved these changes
Apr 16, 2026
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
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
Changes
grdmcli/grdm_client/users.py_users_institutions()function to retrieve the list of institutions for the current user viaGET users/{user_id}/relationships/institutions/.ignore_error=True(log a warning and return an empty list).grdmcli/grdm_client/projects.py_prepare_institutions_relationship_data()to normalize the institutions' payload._add_node_institutions()to callPOST nodes/{node_id}/relationships/institutions/using a best-effort policy (log a warning and do not block the flow ifignore_error=True).projects_create(), fetch institutions once using_users_institutions()and pass the context throughout the flow.affiliated_institutionsparameter across recursive/branch creation functions:_create_or_update_project()_add_project_components()_projects_add_component()_overwrite_node_link_update_component()_update_project_component()_add_node_institutions()to attach institutions.PUT), do not add an “overwrite institutions” step; only ensure that newly created nodes within the update branch still receive the institutions' context.grdmcli/constants.pyMAX_THREADS_CALL_API(remove the redundant declaration).QA Notes
None.
Documentation
None.
Side Effects
None.
Ticket