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

[nad] Improve diagram metadata #452

Merged
merged 7 commits into from
Nov 25, 2022
Merged

[nad] Improve diagram metadata #452

merged 7 commits into from
Nov 25, 2022

Conversation

flo-dup
Copy link
Contributor

@flo-dup flo-dup commented Nov 25, 2022

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines

Does this PR already have an issue describing the problem ?
No

What kind of change does this PR introduce?
Code simplification

What is the current behavior?
Metadata formats coordinates according to default locale Locale.
Metadata objects are the same for BusNode and Node, whereas they may contain different attributes.
When writing metadata objects, one needs to know whether they have already been prefixed or not.
metadata package has a dependence on other packages

What is the new behavior (if this is a feature change)?
Metadata coordinates are String, hence already formatted.
One NodeMetadata object, one BusNodeMetadata object
Metadata objects contain the svgId, not the diagramId, hence not wondering what's in prefix.
metadata package has no dependence on other packages

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

Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
@flo-dup flo-dup added the NAD label Nov 25, 2022
@flo-dup flo-dup requested a review from zamarrenolm November 25, 2022 12:58
Copy link
Member

@zamarrenolm zamarrenolm left a comment

Choose a reason for hiding this comment

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

the changes left the code much cleaner and easier to read

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@flo-dup flo-dup merged commit 133e9a9 into main Nov 25, 2022
@flo-dup flo-dup deleted the improve_metadata branch November 25, 2022 18:43
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