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

Prevent false positives tag typo (rhn_ref etc.) #938

Merged
merged 2 commits into from Aug 2, 2020

Conversation

jdhoek
Copy link
Contributor

@jdhoek jdhoek commented Aug 2, 2020

Excludes a number of tags used in mapping regional hiking/cycling/etc from the typo query. routes from being seen as typos. The lesser used tags, such as rhn_ref (for horse riding routes) got flagged as possible typos of the more common ones (i.e., rwn_ref).

I know of six types of regional routing network that are currently in active use on OSM:

  • rcn (cycling)
  • rhn (horse riding)
  • rin (inline skating)
  • rmn (motorboating)
  • rpn (canoeing/kayaking)
  • rwn (walking/hiking)

This PR takes the most common tags used in these networks, and excludes them from the query following the example of the existing exclusions in sql10.


This issue was spotted in the Dutch OSM community.


I think this PR should properly exclude those tags from the typo analysis, but I couldn't find a place to add a test that verifies this in the pytest suite. Does this analyser have any unit tests?

Could someone confirm that this PR works and perhaps show me how to cover it with a unit test?

@frodrigo
Copy link
Member

frodrigo commented Aug 2, 2020

Analyser based on SQL does not have unit test.

Excludes a number of tags used in mapping regional hiking/cycling/etc
from the typo query. routes from being seen as typos. The lesser used
tags, such as `rhn_ref` (for horse riding routes) got flagged as
possible typos of the more common ones (i.e., `rwn_ref`).
@frodrigo frodrigo merged commit 74726bb into osm-fr:master Aug 2, 2020
@frodrigo
Copy link
Member

frodrigo commented Aug 2, 2020

Thank. Merged, but not deployed, yet.

@jdhoek
Copy link
Contributor Author

jdhoek commented Aug 2, 2020

Thanks.

@frodrigo
Copy link
Member

Deployed

@jdhoek
Copy link
Contributor Author

jdhoek commented Aug 12, 2020

Looks good. This node (rhn_ref) stopped triggering the warning.

This one is still firing, but was reported on August 11th, so it probably predates the deployment. It should vanish after a while I guess?

@frodrigo
Copy link
Member

Probably, cannot tell, you removed it.

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.

None yet

2 participants