Skip to content

Check root network tags on pasted and imported modifications - #937

Open
flomillot wants to merge 29 commits into
mainfrom
feat/guard-root-network-tags-on-pasted-shared-modifications
Open

flomillot wants to merge 29 commits into
mainfrom
feat/guard-root-network-tags-on-pasted-shared-modifications

Conversation

@flomillot

@flomillot flomillot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

POST /containers/root-network-tags/authorized also checks the shared modifications referred to by modificationUuids and their content, and the sharedUuids themselves along with their content. The body gets containerUuids, modificationUuids and sharedUuids, a missing list being an empty one.

Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
…not write on

Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
…t-network-applicabilities

Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
…rk-tags-on-shared-modifications

Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
…at/guard-root-network-tags-on-shared-modifications

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

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

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

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: da551f3e-5fe4-4bbb-b727-5ce946596728
  • 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.

…difications

Signed-off-by: Florent MILLOT <75525996+flomillot@users.noreply.github.com>
Comment on lines +355 to +360
@Parameter(description = "Container UUIDs (groups or composites), whose content is checked")
@RequestParam(value = "containerUuids", required = false, defaultValue = "") List<UUID> containerUuids,
@Parameter(description = "Modification UUIDs, checked with their content")
@RequestParam(value = "modificationUuids", required = false, defaultValue = "") List<UUID> modificationUuids,
@Parameter(description = "Shared modification UUIDs, checked themselves and with their content")
@RequestParam(value = "sharedUuids", required = false, defaultValue = "") List<UUID> sharedUuids,

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.

These ids will be transmitted through the url, we sure it won't break because of url size limit ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Indeed maybe it was slightly optimistic :) I switch to POST with body and DTO

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>
…pplicabilities' into HEAD

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

# Conflicts:
#	src/main/java/org/gridsuite/modification/server/repositories/NetworkModificationRepository.java
…pplicabilities' into HEAD

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

Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
…shared-modifications' into feat/guard-root-network-tags-on-pasted-shared-modifications

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

# Conflicts:
#	src/main/java/org/gridsuite/modification/server/repositories/NetworkModificationRepository.java
#	src/test/java/org/gridsuite/modification/server/CompositeControllerTest.java
@flomillot
flomillot requested a review from EtienneLt as a code owner October 22, 2026 08:19
Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
…shared-modifications' into feat/guard-root-network-tags-on-pasted-shared-modifications

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

# Conflicts:
#	src/main/java/org/gridsuite/modification/server/NetworkModificationController.java
#	src/main/java/org/gridsuite/modification/server/dto/RootNetworkTagsCheckInfos.java
#	src/test/java/org/gridsuite/modification/server/CompositeControllerTest.java
@flomillot
flomillot requested a review from Meklo October 22, 2026 10:15
Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
…pplicabilities' into feat/guard-root-network-tags-on-shared-modifications

Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
…shared-modifications' into feat/guard-root-network-tags-on-pasted-shared-modifications

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

# Conflicts:
#	src/main/java/org/gridsuite/modification/server/dto/RootNetworkTagsCheckInfos.java
#	src/main/java/org/gridsuite/modification/server/repositories/NetworkModificationRepository.java
#	src/main/java/org/gridsuite/modification/server/service/NetworkModificationService.java
flomillot and others added 6 commits October 22, 2026 15:57
Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
…nto feat/guard-root-network-tags-on-pasted-shared-modifications
…rk-tags-on-pasted-shared-modifications

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

# Conflicts:
#	src/test/java/org/gridsuite/modification/server/CompositeControllerTest.java
…rk-tags-on-pasted-shared-modifications

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

# Conflicts:
#	src/main/java/org/gridsuite/modification/server/NetworkModificationController.java
#	src/main/java/org/gridsuite/modification/server/repositories/NetworkModificationRepository.java
#	src/main/java/org/gridsuite/modification/server/service/NetworkModificationService.java
…l helpers

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

# Conflicts:
#	src/main/java/org/gridsuite/modification/server/NetworkModificationController.java
#	src/main/java/org/gridsuite/modification/server/dto/RootNetworkTagsCheckInfos.java
#	src/main/java/org/gridsuite/modification/server/repositories/NetworkModificationRepository.java
#	src/main/java/org/gridsuite/modification/server/service/NetworkModificationService.java
#	src/test/java/org/gridsuite/modification/server/CompositeControllerTest.java
@flomillot
flomillot changed the base branch from feat/guard-root-network-tags-on-shared-modifications to main October 26, 2026 17:10
…ions

Signed-off-by: Florent MILLOT <florent.millot_externe@rte-france.com>
…rk-tags-on-pasted-shared-modifications

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.

2 participants