-
Notifications
You must be signed in to change notification settings - Fork 403
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
refactor: Config migration sonarlint issues #1910
refactor: Config migration sonarlint issues #1910
Conversation
0baf1bc
to
39fe58c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done - especially thanks to the cleanup of ExecutionProperties!!!
Please have a look at the two comments.
ors-engine/src/main/java/org/heigit/ors/config/profile/ExtendedStorageProperties.java
Show resolved
Hide resolved
ors-engine/src/main/java/org/heigit/ors/config/utils/NonEmptyMapFilter.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the Reflection refactoring, which I don't know about, looks good to me :)
This includes classes, fields, variables, unneeded comments and resolved todos etc.
… for ExtendedStorageProperties.java
We need the wrapped one to properly work with jackson config serialization.
We already throw a custom exception. The signature didn't reflect this.
These if statements are trivial and should be merged.
…sEmpty() Now even the Map.of() check validates to true. Yay!
e028100
to
9e6dbb7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Quality Gate passedIssues Measures |
This PR includes several sonar issues that popped up while working on the config migration. Often times it is not new code, but code that got touched and re-triggered.
This PR avoids bigger code refactors. Some smaller ones were made, where I felt confident to do so.
A bit bigger code refactoring was necessary in ExtendedStorageProperties.java.
I was part of creating that class, so I feel confident in introducing those changes. The class was already at a decent test coverage and now is at 100%.
Pull Request Checklist
have been resolved.
[Unreleased] heading.
along with a short description of what it is for, and documented this in the Pull Request (below).
(at least Germany), and the graphs build without problems (i.e. no out-of-memory errors).
importer etc.), I have generated longer distance routes for the affected profiles with different options
(avoid features, max weight etc.) and compared these with the routes of the same parameters and start/end
points generated from the current live ORS.
If there are differences then the reasoning for these MUST be documented in the pull request.
and why the change was needed.
Fixes # .
Information about the changes
Examples and reasons for differences between live ORS routes, and those generated from this pull request
Required changes to ors config (if applicable)