-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Resurvey for opening_hours:signed=no
(fixes #3130)
#3682
Conversation
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.
I've only looked at the code, but that looks good. I have a few suggestions.
app/src/main/java/de/westnordost/streetcomplete/data/osm/osmquests/OsmElementQuestType.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/de/westnordost/streetcomplete/quests/barrier_type/AddStileType.kt
Outdated
Show resolved
Hide resolved
...in/java/de/westnordost/streetcomplete/quests/opening_hours_signed/CheckOpeningHoursSigned.kt
Outdated
Show resolved
Hide resolved
…ests/OsmElementQuestType.kt Co-authored-by: Flo Edelmann <florian-edelmann@online.de>
…_hours_signed/CheckOpeningHoursSigned.kt Co-authored-by: Flo Edelmann <florian-edelmann@online.de>
Thank you for the review! |
// => properties that refer to the old replaced stile should be removed | ||
tags.deleteIfExistList(STILE_PROPERTIES - "material") | ||
if(newMaterial != null) { | ||
tags["material"] = newMaterial | ||
} else { | ||
tags.remove("material") | ||
} |
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.
Cool, I was going to say this looked like it could be simplified. 🥳
Ask every year whether places that have been tagged with having no opening hours sign (now) have one. This way, implictly, POIs with no (signed) opening hours are checked every year whether they are still there. Also, maybe they have an opening hours sign now. Fixes #3130.
Direct link to the new quest source code: https://github.com/streetcomplete/StreetComplete/compare/opening-hours-signed-resurvey?expand=1#diff-b05845227ebb46097644bc5eab15e1b36ece352cb19d1bc7489cf0f124950c08
Furthermore, typealiased
StringMapChangesBuilder
toTags
, simply because it is shorter.This PR was mentioned in #3680