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

Generalize services classes - some proposals #120

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

Conversation

thangqp
Copy link

@thangqp thangqp commented Mar 25, 2024

1/ Load network only once
2/ Check null result before save
3/ Life cycle methods before and after for runAsync
4/ Clean result and publish cancel once in every cases

@thangqp thangqp requested a review from Mathieu-Deharbe March 25, 2024 17:15
@thangqp thangqp changed the title generalize services classes - some proposals Generalize services classes - some proposals Mar 25, 2024
Copy link

Copy link
Contributor

@Mathieu-Deharbe Mathieu-Deharbe left a comment

Choose a reason for hiding this comment

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

I added all your requests to my PRs. They are a bit differently named because they were very similar to what Slimane asked. I let you review them directly :

gridsuite/loadflow-server#94

#115

@@ -122,29 +119,25 @@ public Consumer<Message<String>> consumeRun() {
return message -> {
AbstractResultContext<R> resultContext = fromMessage(message);
try {
runRequests.add(resultContext.getResultUuid());
Copy link
Contributor

Choose a reason for hiding this comment

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

Surprising but to be honest I can't see the point of this runRequests so I kind of agree with you. Was it just a remnant of dead code ?

Base automatically changed from generalize-services-classes to main March 28, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants