Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add case format to POST explore/studies/STUDY1/cases/ endpoint #73

Merged
merged 6 commits into from
Feb 16, 2024

Conversation

jamal-khey
Copy link
Contributor

No description provided.

@Meklo Meklo self-requested a review February 7, 2024 15:09
@jamal-khey jamal-khey self-assigned this Feb 8, 2024
@jamal-khey jamal-khey requested a review from flomillot February 8, 2024 20:48
@jamal-khey jamal-khey force-pushed the jamal-khey/add-case-format-to-case-import branch from bc00024 to 49a5ad2 Compare February 13, 2024 08:36
@@ -60,9 +60,13 @@ public ExploreService(
this.parametersService = parametersService;
}

public void createStudy(String studyName, UUID caseUuid, String description, String userId, UUID parentDirectoryUuid, Map<String, Object> importParams, Boolean duplicateCase) {
public record CaseInfo(UUID caseUuid, String caseFormat) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not creating a dedicated file for this DTO ? I think that's how we do in gridsuite.

Copy link
Contributor Author

@jamal-khey jamal-khey Feb 14, 2024

Choose a reason for hiding this comment

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

CaseInfo is not a DTO, i created it simply because sonar detected a code smell "Long Parameter List". so i fixed it by introducing a parameter object

Copy link
Contributor

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know what's the best to do, but by coherence it's better to do how it's done elsewhere

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

@jamal-khey jamal-khey requested a review from flomillot February 15, 2024 14:30
Copy link

Copy link
Contributor

@flomillot flomillot 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

@jamal-khey jamal-khey merged commit 3b9d35a into main Feb 16, 2024
3 checks passed
@jamal-khey jamal-khey deleted the jamal-khey/add-case-format-to-case-import branch February 16, 2024 12:25
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.

4 participants