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

Resurvey for opening_hours:signed=no (fixes #3130) #3682

Merged
merged 9 commits into from
Jan 27, 2022

Conversation

westnordost
Copy link
Member

@westnordost westnordost commented Jan 27, 2022

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 to Tags, simply because it is shorter.

This PR was mentioned in #3680

Copy link
Member

@FloEdelmann FloEdelmann left a 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.

westnordost and others added 3 commits January 27, 2022 20:16
…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>
@westnordost
Copy link
Member Author

Thank you for the review!

@westnordost westnordost merged commit c134919 into master Jan 27, 2022
@westnordost westnordost deleted the opening-hours-signed-resurvey branch January 27, 2022 19:37
Comment on lines -64 to -70
// => 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")
}
Copy link
Collaborator

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. 🥳

peternewman added a commit to peternewman/StreetComplete that referenced this pull request Jan 27, 2022
peternewman added a commit to peternewman/StreetComplete that referenced this pull request Jan 28, 2022
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.

Ask if the opening hours here still not signed
4 participants