Skip to content

Conversation

ghazwarhili
Copy link
Collaborator

No description provided.

@ghazwarhili ghazwarhili self-assigned this Jul 16, 2025
@gridsuite gridsuite deleted a comment from github-advanced-security bot Jul 17, 2025
README.md Outdated
[![Coverage Status](https://sonarcloud.io/api/project_badges/measure?project=org.gridsuite%computation&metric=coverage)](https://sonarcloud.io/component_measures?id=org.gridsuite%computation&metric=coverage)
[![MPL-2.0 License](https://img.shields.io/badge/license-MPL_2.0-blue.svg)](https://www.mozilla.org/en-US/MPL/2.0/)

Shared library for common computation and filter classes.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Shared library for common computation and filter classes.
Common library for computation and result filtering.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

or just Library for computation and result filtering ( I mean without Common ) ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

but it is okey for Common
done

pom.xml Outdated

<packaging>jar</packaging>
<name>Computation library</name>
<description>A shared library for common computation and filter classes</description>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<description>A shared library for common computation and filter classes</description>
<description>Common library for computation and result filtering.</description>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

okey

pom.xml Outdated
Comment on lines 45 to 58
<spring-boot.version>3.3.3</spring-boot.version>
<spring-cloud.version>2023.0.1</spring-cloud.version>

<powsybl-dependencies.version>2025.0.2</powsybl-dependencies.version>
<powsybl-network-store-client.version>1.27.2</powsybl-network-store-client.version>

<lombok.version>1.18.34</lombok.version>
<org-apache-commons.version>4.4</org-apache-commons.version>
<org.hamcrest.version>2.2</org.hamcrest.version>

<gridsuite-filter.version>1.4.0</gridsuite-filter.version>

<sonar.organization>gridsuite</sonar.organization>
<sonar.projectKey>org.gridsuite:computation</sonar.projectKey>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<spring-boot.version>3.3.3</spring-boot.version>
<spring-cloud.version>2023.0.1</spring-cloud.version>
<powsybl-dependencies.version>2025.0.2</powsybl-dependencies.version>
<powsybl-network-store-client.version>1.27.2</powsybl-network-store-client.version>
<lombok.version>1.18.34</lombok.version>
<org-apache-commons.version>4.4</org-apache-commons.version>
<org.hamcrest.version>2.2</org.hamcrest.version>
<gridsuite-filter.version>1.4.0</gridsuite-filter.version>
<sonar.organization>gridsuite</sonar.organization>
<sonar.projectKey>org.gridsuite:computation</sonar.projectKey>
<powsybl-ws-dependencies.version>2.22.0</powsybl-ws-dependencies.version>
<powsybl-network-store.version>1.28.0</powsybl-network-store.version>
<gridsuite-filter.version>1.5.0</gridsuite-filter.version>
<spring-boot.version>3.3.3</spring-boot.version>
<spring-cloud.version>2023.0.1</spring-cloud.version>
<lombok.version>1.18.34</lombok.version>
<org-apache-commons.version>4.4</org-apache-commons.version>
<org.hamcrest.version>2.2</org.hamcrest.version>
<sonar.organization>gridsuite</sonar.organization>
<sonar.projectKey>org.gridsuite:computation</sonar.projectKey>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

<powsybl-network-store-client.version>1.28.0</powsybl-network-store-client.version> and not <powsybl-network-store.version>1.28.0</powsybl-network-store.version>

Copy link
Contributor

Choose a reason for hiding this comment

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

In my opinion, powsybl-network-store-client always matches the powsybl-network-store.version. Therefore, when overriding the client, it's more appropriate to use powsybl-network-store.version

However, it should include a TODO: To be removed comment for the next powsybl-ws-dependencies migration.

Choose a reason for hiding this comment

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

powsybl-network-store-client always matches the powsybl-network-store.version

@EtienneLt
Copy link

have you checked sonar issues ?

@ghazwarhili ghazwarhili requested a review from thangqp July 17, 2025 09:37
@ghazwarhili
Copy link
Collaborator Author

@EtienneLt #1 (comment)
This is out of scope for this PR because I didn’t modify the code (it is about moving code), and the sonar errors come from code that isn’t mine. I’m also intentionally not changing the moved code to keep traceability, but I can still fix the errors.
@etiennehomer what do you think ?

@etiennehomer
Copy link
Collaborator

@EtienneLt #1 (comment) This is out of scope for this PR because I didn’t modify the code (it is about moving code), and the sonar errors come from code that isn’t mine. I’m also intentionally not changing the moved code to keep traceability, but I can still fix the errors. @etiennehomer what do you think ?

As it is minor changes, it is ok to fix them in this PR. But it's also a good thing to keep the code the same when we move a lot of code as you do here. So up to you

pom.xml Outdated
<dependency>
<groupId>com.powsybl</groupId>
<artifactId>powsybl-network-store-client</artifactId>
<version>${powsybl-network-store-client.version}</version>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<version>${powsybl-network-store-client.version}</version>

we do not need version except override but we use ${powsybl-network-store}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@ghazwarhili ghazwarhili requested a review from thangqp July 18, 2025 11:13
@ghazwarhili ghazwarhili requested a review from EtienneLt July 18, 2025 11:35
@ghazwarhili
Copy link
Collaborator Author

#1 (comment)
sonar issues fixed in 13ab75e

pom.xml Outdated
Comment on lines 45 to 46
<powsybl-ws-dependencies.version>2.22.0</powsybl-ws-dependencies.version>
<gridsuite-filter.version>1.5.0</gridsuite-filter.version>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<powsybl-ws-dependencies.version>2.22.0</powsybl-ws-dependencies.version>
<gridsuite-filter.version>1.5.0</gridsuite-filter.version>
<powsybl-ws-dependencies.version>2.23.0</powsybl-ws-dependencies.version>
<gridsuite-filter.version>1.6.0</gridsuite-filter.version>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@thangqp thangqp self-requested a review July 18, 2025 14:29
Copy link

@ghazwarhili ghazwarhili merged commit 258b6b2 into main Jul 18, 2025
4 checks passed
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