Skip to content

Delete modification references instead of stashing them - #944

Open
flomillot wants to merge 15 commits into
refactor/delete-modifications-by-listfrom
feat/delete-modification-references-instead-of-stashing
Open

flomillot wants to merge 15 commits into
refactor/delete-modifications-by-listfrom
feat/delete-modification-references-instead-of-stashing

Conversation

@flomillot

@flomillot flomillot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Stashing a modification reference now deletes it, and unlinks it from its shared modification in directory-server through the deletion of #943. This also applies to the references nested in a stashed composite, which goes to the trash without them, and to a reference stashed from inside a shared composite. The trash therefore never holds a reference, and restoring modifications no longer links references back: the nodeContainerUuid and studyRootContainerUuid parameters are removed.

Node trash: DELETE /groups/{groupUuid}/references deletes the references of a group, those nested in its composites included, and DELETE /groups/stashed-modifications no longer unlinks the references of the groups.

A migration deletes the references already stashed and those nested in stashed composites.

Based on #943. To deploy with gridsuite/study-server#1141.

A stashed modification reference, or one nested in a stashed composite, is
unlinked from its shared modification and deleted: the trash no longer holds
any reference, so restoring no longer links them back.

Add DELETE /groups/{groupUuid}/references, called when a node is stashed, and
stop unlinking references when deleting the stashed modifications of groups.
A migration deletes the references already stashed.

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

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2036d689-2f94-4b89-85c7-bdd032f8598c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

…-list' into feat/delete-modification-references-instead-of-stashing

Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
Put it next to the deletion of the references of a group.

Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
Both now return the uuids of the deleted references.

Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
…-list' into feat/delete-modification-references-instead-of-stashing

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

# Conflicts:
#	src/main/java/org/gridsuite/modification/server/NetworkModificationController.java
Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
…-list' into feat/delete-modification-references-instead-of-stashing

Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
…-list' into feat/delete-modification-references-instead-of-stashing

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

# Conflicts:
#	src/test/java/org/gridsuite/modification/server/service/NetworkModificationServiceTest.java
…-list' into feat/delete-modification-references-instead-of-stashing

Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
…-list' into feat/delete-modification-references-instead-of-stashing

Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
…-list' into feat/delete-modification-references-instead-of-stashing

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

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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.

1 participant