Share a composite modification nested in another composite - #1089
Share a composite modification nested in another composite#1089flomillot wants to merge 1 commit into
Conversation
The reference left behind by the shared composite belongs to its parent composite when it was nested in one, and to the node otherwise. Also expose whether a composite modification contains a shared modification. Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (6)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change adds an endpoint and service method to detect shared composite modifications. Composite sharing now returns the former container and creates references on either the parent composite or the study node. ChangesNetwork modification sharing
Sequence Diagram(s)sequenceDiagram
participant NetworkModificationController
participant NetworkModificationService
participant NetworkModificationServer
NetworkModificationController->>NetworkModificationService: containsSharedModification(uuid)
NetworkModificationService->>NetworkModificationServer: GET shared-modification status
NetworkModificationServer-->>NetworkModificationService: Boolean result
NetworkModificationService-->>NetworkModificationController: HTTP 200 Boolean response
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change supports nested composite sharing and exposes shared-modification status while preserving the correct ownership reference. Current mergeability risk is minimal. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



Follow-up of #1070.
A composite modification nested in another composite of a node can now be shared. The network modification server returns the container the composite has been taken out of: when it is a parent composite, the reference left behind is registered in the directory server as belonging to that composite (
NETWORK_MODIFICATION).Also adds
GET /v1/network-composite-modifications/{uuid}/contains-shared-modification, relaying to the network modification server whether a composite modification contains a shared modification, so that the front can disable its sharing.Requires gridsuite/network-modification-server#893.