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

Opening hours check date is updated when marked as not signed #4273

Open
spagy opened this issue Aug 6, 2022 · 3 comments · May be fixed by #5903
Open

Opening hours check date is updated when marked as not signed #4273

spagy opened this issue Aug 6, 2022 · 3 comments · May be fixed by #5903

Comments

@spagy
Copy link

spagy commented Aug 6, 2022

In the 'Are these opening hours still correct?' quest, if the user selects 'No opening hours sign', then two changes are made:

  • opening_hours:signed is set to no, as expected, and
  • check_date:opening_hours is set to the current date.

To me, updating check_date:opening_hours implies that the opening hours are correct at the current time. But the since the opening hours haven't actually been checked, they could be wrong/out of date.

How to Reproduce
Um, find an 'Are these opening hours still correct?' quest, and select 'No opening hours sign'.

Expected Behavior
I'm not sure exactly what the right thing to do here is. Maybe the current behaviour is actually the desired behaviour?

My suggestion would be to use check_date:opening_hours:signed instead, although I don't think this key exists yet and I don't know what the guidance is for when it's alright to introduce new keys.

If I've understood the code, then the opening hours quest isn't shown when opening_hours:signed is no.
And setting check_date:opening_hours:signed to the current date would stop the opening hours signed quest from being shown.

Versions affected

v45.1

@spagy spagy added the bug label Aug 6, 2022
@matkoniecz
Copy link
Member

It is apparently added in 0279378 to prevent immediately asking whether opening hours are signed, but it seems to not be an ideal, and check_date:opening_hours:signed seems better as opening hours itself were not actually verified

@spagy
Copy link
Author

spagy commented Aug 6, 2022

haven't contributed before, but i'd be keen to give this a go since it looks fairly simple :)

@westnordost
Copy link
Member

Note after looking through #4284:

If this gets implemented - when the user answered "has no opening hours sign" in the opening hours quest, then it would only be consistent if in that case also check_date:opening_hours:signed is used.

@kmpoppe kmpoppe linked a pull request Sep 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants