-
-
Notifications
You must be signed in to change notification settings - Fork 397
Proposal to change elementFilter for AddBabyChangingTable.kt #6115
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
Conversation
Summarized my new proposal is:
ask for all restaurants and toilets
ask for fuel stations or shops which have toilets
ask for cafés and fast_food which have toilets or seating
...c/main/java/de/westnordost/streetcomplete/quests/baby_changing_table/AddBabyChangingTable.kt
Outdated
Show resolved
Hide resolved
Thanks for the Feedback. Remove Comments in the element filter, as the syntax does not allow comment.s Also, some parentheses are nowavoided because and has higher precedence than or. And the last condition is simplified by using a regex in the key. Co-authored-by: Flo Edelmann <git@flo-edelmann.de>
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.
Few points (some mentioned in the issue but this implementation is slightly different):
amenity=cafeis defined as "generally informal place with sit-down facilities selling beverages and light meals and/or snacks", so there should be not much point in checking if it has seating places (i.e. it would mostly be asked on all cafes; so it might be clearer if it joinedrestaurantas the amenity where quest is unconditionally asked on, as the result would be mostly the same).- the PR would of course ask the quest on much more places (which is kind of whole point I guess). Whether that would still fullfill quest guidelines ("💤 No spam" and "🕵️ Publicly accessible on foot") might be a consideration.
(also I've edited original text of this PR by adding "magic text" so issue would close automatically if this PR is merged)
...c/main/java/de/westnordost/streetcomplete/quests/baby_changing_table/AddBabyChangingTable.kt
Outdated
Show resolved
Hide resolved
On that subject - if you prefer, you can test if your PR compiles (and how well does resulting Such debug |
…Table.kt Co-authored-by: Matija Nalis <mnalis-github@voyager.hr>
amenity=cafe is defined as "generally informal place with sit-down facilities selling beverages and light meals and/or snacks", so there should be not much point in checking if it has seating places
Thanks. I moved the cafe into first line without preconditions to join the restaurants.
Thanks for that feedback. I reverted the shops to mall and department_store to be less spammy. My biggest intention is to ask for restaruants (also fast_food) and cafés. Regarding the "🕵️ Publicly accessible on foot". This quest will probably never fulfill this requirement and that is the reason why this quest is deactivated by default. Perhaps there needs to be bigger discussion how indoor survey quests are handled in StreetComplete. This would also concern other deactivated quests like wheelchair_access, toilets_fee, air_conditioning, internet_access, accepts_card and accepts_cash. |
|
Thanks to @mnalis for the hint of Github Actions to build a debug APK. I built this change with Github Actions to test the changes: I updated also the initial comment of this Pull Request to match the changes EDIT: wrong links! Do not use theses |
Yeah, the guidelines have some wiggle room; and for deactivated-by-default quests it is often because one has to enter the place. As you note, this one is already deactivated by default, so that looks fine to me.
So, have you installed that debug Because unless I'm wrong that compiled 8e6fea3 is just vanilla StreetComplete
|
thanks for pointing that out. I ran the workflow from branch Here is the correct link from first workflow from branch https://github.com/agent-redd/StreetComplete/actions/runs/13088443571 I will now download again and test it thoroughly. |
|
I dont understand the
Could this be a syntax error? |
|
But putting an - –toilets|indoor_seating|outdoor_seating = yes
+ –toilets|indoor_seating|outdoor_seating ~ yes |
Probably. Or just expand it, as not much is gained by that key regex and simple value... e.g. - or amenity = fast_food and ~toilets|indoor_seating|outdoor_seating = yes
+ or amenity = fast_food and (toilets = yes or indoor_seating = yes or outdoor_seating = yes)
If you click to report crash by composing mail, it should open in your mail client (well at least it does in my K-9) so you can preview it (and abort sending). |
Indeed, it shows some hintful message: |
fix bad regex syntax in AddBabyChangingTable.kt
Thanks. I took over your suggestion in a testing branch, rebuilt a dev version and testet my use cases before i merged it back into this branch:
I assume this Pull Request is now technically ready to merge. |
...c/main/java/de/westnordost/streetcomplete/quests/baby_changing_table/AddBabyChangingTable.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Matija Nalis <mnalis-github@voyager.hr>
|
I applied the proposal from @mnalis to revert the unintended change regarding fuel stations. I then rebuilt a dev version with Github Actions: https://github.com/agent-redd/StreetComplete/actions/runs/13097378940 And then tested that its only asking for fuel stations which have toilets=yes. And additinally tested that its asking in all cafes ans restarants, and for fast-food only if toilets or seating is tagged. Thanks everybody for the helpful feedback! I hope that this Pull Request is now ready to merge. |
|
Without having followed the massive discussion here, I think @agent-redd 's proposal makes sense. The toilets quest is not asked for every restaurant etc. because the assumption is that many/most do have toilets, so asking for it specifically would be spammy. The baby changing table quest is already disabled by default (because the mapper would need to go inside and check/ask), I don't think it is necessary to require Regarding the PR in its current state:
I understand why in the current state of the PR, 2 and 3 were made the way they are now: Because the toilets quests is asked for malls and department stores plus there's also a (deactivated by default) seating quest. But IMO that's not necessary. It is enough to check that they are not tagged like (We don't want to coerce users who are interested in mapping baby changing tables to also enable and answer the toilets and seating quests - without telling them, to boot. These quests should just be sorted further up in the quest hierarchy, so when these are activated, they are asked first.) |
|
Thank you @westnordost for your helpful feedback. Your suggestion to always ask unless toilets=no would simplify the filter and be more intuitiv. The seating precondition could be eliminated again. I will rework and test my Pull Request and give an update then. Edit: fix typos |
new simpler filter for AddBabyChangingTable.kt
|
I now simplified the Pull Request to the logic as @westnordost suggested. Built a dev apk with Github Actions and tested it against some A) Here is the dev build if anybody wants to do further tests: I guess if this Pull Request gets merged the commit history should be squashed to hide the back and forth. Not sure if Github can do this, or if I should prepare this by creating a new cleaner branch? Edit: wording |

Hello everybody,
this is my first Pull Request, please give me Feedback if something is wrong.
I created an Issue #6113 earlier to discuss the changes. I am still waiting for more feedback on it.
This Pull Request should resolve the problem, that the precondition toilets=yes for the BabyChangingTable Quest could not be fulfilled by StreetComplete itself.
Edit: see comments, the filter was now changed several times
Fixes #6113