Skip to content

remove unused POST /nad-positions-config endpoint and update test#993

Merged
khouadrired merged 2 commits into
mainfrom
remove-nad-positions-create-endpoint
May 20, 2026
Merged

remove unused POST /nad-positions-config endpoint and update test#993
khouadrired merged 2 commits into
mainfrom
remove-nad-positions-create-endpoint

Conversation

@khouadrired
Copy link
Copy Markdown
Contributor

No description provided.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 16, 2026

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1a0ca7f7-60cc-49ca-959e-3e5372f64c4d

📥 Commits

Reviewing files that changed from the base of the PR and between 3dfb2d7 and 95ece73.

📒 Files selected for processing (5)
  • src/main/java/org/gridsuite/study/server/controller/StudyController.java
  • src/main/java/org/gridsuite/study/server/service/SingleLineDiagramService.java
  • src/main/java/org/gridsuite/study/server/service/StudyService.java
  • src/test/java/org/gridsuite/study/server/StudyServiceTest.java
  • src/test/java/org/gridsuite/study/server/utils/wiremock/WireMockStubs.java
💤 Files with no reviewable changes (3)
  • src/test/java/org/gridsuite/study/server/utils/wiremock/WireMockStubs.java
  • src/main/java/org/gridsuite/study/server/service/StudyService.java
  • src/main/java/org/gridsuite/study/server/controller/StudyController.java

📝 Walkthrough

Walkthrough

This PR removes the NAD positions CSV upload flow: it deletes controller endpoint, service methods and constants, and corresponding tests and WireMock helpers.

Changes

NAD CSV Upload Feature Removal

Layer / File(s) Summary
Service layer method and constant removal
src/main/java/org/gridsuite/study/server/service/SingleLineDiagramService.java, src/main/java/org/gridsuite/study/server/service/StudyService.java
SingleLineDiagramService switches to explicit HTTP imports, removes unused constants and deletes addParameters and createNadPositionsConfigFromCsv. StudyService deletes createNadPositionsConfigFromCsv.
Controller endpoint removal
src/main/java/org/gridsuite/study/server/controller/StudyController.java
Removes the POST /studies/network-visualizations/nad-positions-config endpoint and the MultipartFile import.
Test and WireMock stub cleanup
src/test/java/org/gridsuite/study/server/StudyServiceTest.java, src/test/java/org/gridsuite/study/server/utils/wiremock/WireMockStubs.java
StudyServiceTest drops MockMvc/WireMock setup, testImportCsv, and lifecycle methods; WireMockStubs removes URI_NETWORK_AREA_DIAGRAM and CSV stub/verification helpers.

Suggested reviewers

  • antoinebhs
  • SlimaneAmar
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ❓ Inconclusive No pull request description was provided by the author, making it impossible to evaluate relevance to the changeset. Add a description explaining the rationale for removing the endpoint, any deprecation period, and migration guidance for dependent services if applicable.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: removal of the unused POST /nad-positions-config endpoint and associated test updates across multiple files.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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 and usage tips.

@khouadrired khouadrired force-pushed the remove-nad-positions-create-endpoint branch 2 times, most recently from 3dfb2d7 to bdfb5b2 Compare May 18, 2026 07:10
Signed-off-by: Radouane Khouadri <redouane.khouadri_externe@rte-france.com>
@khouadrired khouadrired force-pushed the remove-nad-positions-create-endpoint branch from bdfb5b2 to 3fdeb2b Compare May 18, 2026 07:47
Copy link
Copy Markdown
Contributor

@antoinebhs antoinebhs left a comment

Choose a reason for hiding this comment

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

very nice to clean this

@sonarqubecloud
Copy link
Copy Markdown

@khouadrired khouadrired merged commit b07c75b into main May 20, 2026
4 of 5 checks passed
@khouadrired khouadrired deleted the remove-nad-positions-create-endpoint branch May 20, 2026 09:06
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