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 bus id in SLD legend #126

Merged
merged 5 commits into from
Nov 18, 2024
Merged

Add bus id in SLD legend #126

merged 5 commits into from
Nov 18, 2024

Conversation

klesaulnier
Copy link
Contributor

@klesaulnier klesaulnier commented Nov 14, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?
Feature

What is the current behavior?
Returned SVG legend does not contain bus id

What is the new behavior (if this is a feature change)?
Returned SVG legend does contain bus id

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

LE SAULNIER Kevin added 2 commits November 14, 2024 09:57
Signed-off-by: LE SAULNIER Kevin <[email protected]>
Signed-off-by: LE SAULNIER Kevin <[email protected]>
Copy link
Contributor

@YenguiSeddik YenguiSeddik left a comment

Choose a reason for hiding this comment

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

Test & code : ok

@YenguiSeddik YenguiSeddik self-requested a review November 14, 2024 15:37
Copy link
Contributor

@YenguiSeddik YenguiSeddik left a comment

Choose a reason for hiding this comment

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

test & code: ok

@@ -0,0 +1,31 @@
package com.powsybl.sld.server;
Copy link
Contributor

Choose a reason for hiding this comment

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

license header

@@ -32,7 +29,7 @@
/**
* @author Ben Daamer ahmed<ahmed.bendaamer at rte-france.com>
*/
public class PositionDiagramLabelProvider extends DefaultLabelProvider {
public class PositionDiagramLabelProvider extends CommonLabelProvider {
Copy link
Contributor

Choose a reason for hiding this comment

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

De we need this ? because we call svgParameters.setBusesLegendAdded(false); when we use this PositionDiagramLabelProvider, which will mask BusesLegend ...

Copy link
Contributor

Choose a reason for hiding this comment

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

not a big deal

Copy link
Contributor

@sBouzols sBouzols left a comment

Choose a reason for hiding this comment

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

Code Review OK

@klesaulnier klesaulnier merged commit f9e6df8 into main Nov 18, 2024
4 checks passed
@klesaulnier klesaulnier deleted the bus-id-sld-legend branch November 18, 2024 08:31
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.

3 participants