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

[WIP] Supervision controller and service to be used by supervision tools #407

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

klesaulnier
Copy link
Contributor

No description provided.

@klesaulnier klesaulnier changed the title Supervision controller and service to be used by supervision tools [WIP] Supervision controller and service to be used by supervision tools Jul 12, 2023
@@ -0,0 +1,35 @@
package org.gridsuite.study.server;
Copy link
Contributor

Choose a reason for hiding this comment

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

Add licence header


import java.util.List;

@RestController
Copy link
Contributor

Choose a reason for hiding this comment

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

Add author

@@ -0,0 +1,19 @@
package org.gridsuite.study.server.dto.supervision;
Copy link
Contributor

Choose a reason for hiding this comment

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

Add licence header


import java.util.UUID;

@SuperBuilder
Copy link
Contributor

Choose a reason for hiding this comment

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

Add author

@@ -0,0 +1,34 @@
package org.gridsuite.study.server.service;
Copy link
Contributor

Choose a reason for hiding this comment

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

Add licence header

import java.util.List;
import java.util.stream.Collectors;

@Service
Copy link
Contributor

Choose a reason for hiding this comment

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

Add author

this.studyRepository = studyRepository;
}

public List<SupervisionStudyInfos> getStudies() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Add @transactional(readOnly)

.collect(Collectors.toList());
}

private static SupervisionStudyInfos toSupervisionStudyInfos(StudyEntity entity) {
Copy link
Contributor

Choose a reason for hiding this comment

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

toDto ?

Signed-off-by: Slimane AMAR <[email protected]>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 2, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

40.0% 40.0% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@SlimaneAmar
Copy link
Contributor

We need also clean tree nodes (report, modifictions group, calulation results, ....)

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