Skip to content

add userId header to duplicateSensitivityAnalysisParameters request#962

Merged
khouadrired merged 3 commits intomainfrom
add-userid-header-to-sensi-requests
Mar 10, 2026
Merged

add userId header to duplicateSensitivityAnalysisParameters request#962
khouadrired merged 3 commits intomainfrom
add-userid-header-to-sensi-requests

Conversation

@khouadrired
Copy link
Contributor

@khouadrired khouadrired commented Mar 9, 2026

sensitivity-server required a userID passed in the header for duplicateParameters , but not for createParameters

@khouadrired khouadrired requested a review from antoinebhs March 9, 2026 10:31
Signed-off-by: Radouane Khouadri <redouane.khouadri_externe@rte-france.com>
Signed-off-by: Radouane Khouadri <redouane.khouadri_externe@rte-france.com>
// try to access/duplicate the user profile sensitivity analysis parameters
try {
return sensitivityAnalysisService.duplicateSensitivityAnalysisParameters(userProfileInfos.getSensitivityAnalysisParameterId());
return sensitivityAnalysisService.duplicateSensitivityAnalysisParameters(userProfileInfos.getSensitivityAnalysisParameterId(), userId);
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
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.

In my opinion this is the quick fix, we should fix it another way:
in security-analysis/sensi we should not have to pass userId for duplication (it's not logic as we don't really use it).
I will create a separate issue for that

Signed-off-by: Radouane Khouadri <redouane.khouadri_externe@rte-france.com>
Copy link
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.

Code OK

@sonarqubecloud
Copy link

@khouadrired khouadrired merged commit a80a368 into main Mar 10, 2026
3 checks passed
@khouadrired khouadrired deleted the add-userid-header-to-sensi-requests branch March 10, 2026 08:56
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