-
Notifications
You must be signed in to change notification settings - Fork 8
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
upgrade OSHDB to version 0.6 #86
Conversation
@tyrasd you could update the ohsome parent as well ;) |
@bonaparten @FabiKo117 I quickly checked the failing assertations from https://jenkins.ohsome.org/job/ohsome-api/view/change-requests/job/PR-86/3/consoleFull and found all "new" results to be within a 0.35% (relative) margin of the "old" test-values. Which is what I would have expected from the changes in GIScience/oshdb#193. Did I overlook some cases where the discrepancy is larger? |
@tyrasd No, it seems like this is the maximum discrepancy then. Probably I was thinking of the higher differences in bigger values, when I was referring to differenes in the lower percentage area when mentioning it in the meeting. I'd suggest to use a delta of 0.5 in the tests + adapting the current values to the more accurate ones. What do you think about that? Another thing: all the /contribution tests are now failing for the following reason: |
that sound good 👍
oh, true. let me debug that. |
Quick update: I run into the following bug while trying to fix this: GIScience/oshdb#321 😬 |
this should now hopefully be fixed with oshdb version 0.6.1 (updated this PR with 6e66a5e) 🤞 |
This way, the geometry will only be build, if the filter actually needs to check it.
Tests are now updated with new values and delta. |
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.
Please look at the detailled review comments. There are several unused import statements from removed code parts, make sure to check again the changed classes and organize the imports there again (think mostly in classed edited by @tyrasd).
About the tests: I did not check every single test, but individual ones without the delta and they worked fine and all tests are running through of course. Please check the review comment about commenting @bonaparten.
src/main/lombok/org/heigit/ohsome/ohsomeapi/executor/DataExtractionTransformer.java
Show resolved
Hide resolved
src/main/lombok/org/heigit/ohsome/ohsomeapi/executor/DataRequestExecutor.java
Outdated
Show resolved
Hide resolved
src/main/lombok/org/heigit/ohsome/ohsomeapi/inputprocessing/InputProcessor.java
Outdated
Show resolved
Hide resolved
src/main/lombok/org/heigit/ohsome/ohsomeapi/executor/ElementsRequestExecutor.java
Show resolved
Hide resolved
src/main/lombok/org/heigit/ohsome/ohsomeapi/executor/AggregateRequestExecutor.java
Show resolved
Hide resolved
src/test/java/org/heigit/ohsome/ohsomeapi/controller/TestProperties.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Johannes Visintini <[email protected]>
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.
See inline comments.
src/main/lombok/org/heigit/ohsome/ohsomeapi/executor/ElementsRequestExecutor.java
Show resolved
Hide resolved
src/main/lombok/org/heigit/ohsome/ohsomeapi/executor/UsersRequestExecutor.java
Show resolved
Hide resolved
src/main/lombok/org/heigit/ohsome/ohsomeapi/executor/AggregateRequestExecutor.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.
Looks good now. Marking the test values as 'final' also makes sense here.
I checked 3d3ec09 against a test cluster with oshdb version 0.6.1 using our usual tools and couldn't find anything suspicious. |
see https://github.com/GIScience/oshdb/blob/master/CHANGELOG.md#060