Skip to content

Share a composite modification nested in another composite - #893

Merged
flomillot merged 5 commits into
mainfrom
feat/share-nested-composite-modification
Sep 15, 2026
Merged

flomillot merged 5 commits into
mainfrom
feat/share-nested-composite-modification

Conversation

@flomillot

@flomillot flomillot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up of #874.

A composite modification nested in other composites of a group can now be shared. The endpoint now returns the reference left in place of the composite as a ModificationReferenceData, so that the caller can register it wherever it stands: in the group or in a parent composite.

A composite contained by an already shared composite does not belong to the group anymore: sharing it is rejected.

A composite containing a shared modification, at any depth, cannot be shared either: it is rejected with the new MODIFICATION_CONTAINS_SHARED business error, relying on the same check as GET /v1/containers/references/exists, which the front uses beforehand to disable the sharing.

The composite modification is taken out of its own container, the group or a parent composite, which is returned to the caller. A composite containing a shared modification cannot be shared, and whether a composite contains one is exposed by a dedicated endpoint.

Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: f291f2c9-cb03-4af3-bec2-7b45508da003


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
flomillot and others added 3 commits September 14, 2026 15:15
The caller needs that reference to register it in the directory server, whether it stands in the group or in a parent composite.

The contains-shared-modification endpoint is removed in favour of /containers/references/exists, on which the sharing check now relies.

Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
…e modification

Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
@sonarqubecloud

Copy link
Copy Markdown

@flomillot
flomillot merged commit 291a2e9 into main Sep 15, 2026
5 checks passed
@flomillot
flomillot deleted the feat/share-nested-composite-modification branch September 15, 2026 13:04
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.

2 participants