Skip to content

Add an endpoint sharing a composite modification of a node - #1070

Open
flomillot wants to merge 4 commits into
mainfrom
feat/share-composite-modification
Open

Add an endpoint sharing a composite modification of a node#1070
flomillot wants to merge 4 commits into
mainfrom
feat/share-composite-modification

Conversation

@flomillot

Copy link
Copy Markdown
Contributor

Adds POST /v1/studies/{studyUuid}/nodes/{nodeUuid}/network-modifications/{modificationUuid}/share?name=&description=&parentDirectoryUuid=, which moves a composite modification of a node out of the study into a directory of GridExplore, and replaces it in the node by a reference to this now shared modification.

The write permission on the target directory and the uniqueness of the name are checked before anything is moved. The composite is then extracted by the network modification server — keeping its uuid — stored as a MODIFICATION element of the directory server, and referenced from the node.

Since the applied modifications are left unchanged, the node is not invalidated: only the modifications update notifications are emitted, so the front refetches the list.

Requires gridsuite/network-modification-server#874.

The composite modification is moved out of the study into a directory of
GridExplore, where it becomes a shared modification, and is replaced in the
node by a reference to it. Since the applied modifications are left
unchanged, the node does not need to be rebuilt.

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

coderabbitai Bot commented Aug 19, 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: Pro Plus

Run ID: 289f1ad7-d94d-47f4-808f-b8ca20b854b5


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.

@GhilesA GhilesA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just apply the sonar recommandation on QUERY_PARAM_GROUP_UUID

Comment thread src/main/java/org/gridsuite/study/server/service/StudyService.java
Comment thread src/main/java/org/gridsuite/study/server/service/StudyService.java Outdated
Comment thread src/main/java/org/gridsuite/study/server/service/StudyService.java
Comment thread src/main/java/org/gridsuite/study/server/service/StudyService.java Outdated
Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
@flomillot
flomillot requested a review from ghazwarhili August 20, 2026 09:33
Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
Comment thread src/main/java/org/gridsuite/study/server/service/NetworkModificationService.java Outdated
@GhilesA
GhilesA self-requested a review August 20, 2026 12:54
@flomillot
flomillot requested a review from ghazwarhili August 20, 2026 14:50
The network modification server does not return it anymore, the composite
modification keeping its uuid when extracted.

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

Copy link
Copy Markdown

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.

3 participants