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 parser can't parse some "off" cases #1612

Closed
strump opened this issue Nov 24, 2021 · 8 comments · Fixed by #7652 or #8371
Closed

opening_hours parser can't parse some "off" cases #1612

strump opened this issue Nov 24, 2021 · 8 comments · Fixed by #7652 or #8371
Labels
Opening Hours Business Hours, off time, holidays, seasonal

Comments

@strump
Copy link
Sponsor Contributor

strump commented Nov 24, 2021

If "off" day is the first item in opening_hours then it's not parsable by OM.

Case good

E.g. https://www.openstreetmap.org/node/4318534651Tu-Su 11:00-01:00; Mo off
Monday is snown as off day:

mo_off_good

Case bad

With museum https://www.openstreetmap.org/node/6403156110Mo off; Tu-Fr 10:00-19:00; Sa,Su 10:00-14:00
Opening hours are unparsed:
mo_off_bad_2

@biodranik
Copy link
Member

Isn't it a duplicate?

@strump
Copy link
Sponsor Contributor Author

strump commented Nov 24, 2021

I thought about #1575 but can't tell if it duplicates this issue.

@biodranik
Copy link
Member

Interesting, looks like an Android-only bug, because it works on iOS.

@biodranik biodranik added Android Android development UI User interface issues Good first issue Good for newcomers labels Nov 24, 2021
@mehmetozturk-re

This comment was marked as off-topic.

@biodranik

This comment was marked as off-topic.

@strump
Copy link
Sponsor Contributor Author

strump commented Nov 27, 2021

Interesting, looks like an Android-only bug, because it works on iOS.

@biodranik it’s reproducible on my iPad. Probably caused by 3party/opening_hours code. Where this parsing code came from?

1E5D87A7-1BC1-433A-96CF-6BD3867A96D9

@biodranik
Copy link
Member

biodranik commented Nov 27, 2021

You're right, this one reproduces on my iPhone too. That code was written by one of the mailru devs. Despite my strong resistance, he chose boost spirit parser. The current implementation takes a lot of time to compile, has bugs, and doesn't parse everything. We even disabled unit tests for it with a plan to come back and fix it when there will be enough time.

@biodranik biodranik added Core Cross-platform C++ libraries with a core functionality and removed Good first issue Good for newcomers Android Android development UI User interface issues labels Nov 27, 2021
@biodranik biodranik added Opening Hours Business Hours, off time, holidays, seasonal and removed Core Cross-platform C++ libraries with a core functionality labels Sep 19, 2022
@gpesquero
Copy link
Contributor

@strump: Please review PR 7652 and check if we can close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Opening Hours Business Hours, off time, holidays, seasonal
Projects
None yet
4 participants