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

RATYK-18: Make parent determination conditions less strict #65

Merged
merged 3 commits into from
May 8, 2024

Conversation

danipran
Copy link
Contributor

Currently, the import fails if an area doesn't have a parent ID and doesn't overlap almost precisely 100% with any other area (<0.000001 whatever units this is using), i.e. the error margin is very, very strict. The source data can be a bit inaccurate with the areas. Using relative values rather than absolute values for determining whether an area has enough overlap with a parent area makes the importer work again while still being reasonably accurate (the areas must overlap at least by 99.99%).

No unit tests, unfortunately. This library has a single unit test, so adding tests for this would be a pretty big task.

@danipran danipran requested a review from a team April 16, 2024 10:37
Use relative values rather than absolute values.
Copy link

sonarcloud bot commented May 6, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

@charn charn left a comment

Choose a reason for hiding this comment

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

LGTM! 👍 :shipit:

@danipran danipran merged commit 41aa1ca into master May 8, 2024
6 checks passed
@danipran danipran deleted the RATYK-18/fix-import branch May 8, 2024 06:17
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