-
Notifications
You must be signed in to change notification settings - Fork 8
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
Ddfform 802 sort openning hours #1247
Conversation
This value is not used anywhere and is the same as `dateTime`
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.
Good catch with the date and the sorting.
It is definitely a nice addition with the sorting.
You could consider implementing another sorting, for the end_time if the start_time of two entries are the same.
so in this example :
The second "Åbent" would be before "Med betjening" since it ends sooner than "Åbent".
I think that would could be nice also to do if it doesn't take a lot of time. 🚀
Ensure that opening hours are sorted in the correct chronological order based on `start_time` and `end_time` when `start_time` is identical: - Åbent 06:00 - 22:00 - Åbent 10:00 - 15:00 - Åbent 10:00 - 17:00 - Åbent 12:00 - 13:00
fad2e73
to
0324e47
Compare
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.
Very nice, and 👍 for the comments 🚀
Link to issue
https://reload.atlassian.net/browse/DDFFORM-802
Description
This pull request implements sorting for opening hours.
Ensure that opening hours are sorted in the correct chronological order based on
start_time
andend_time
whenstart_time
is identical:Additionally, I identified a redundant date value from
groupOpeningHoursByWeekday
that was duplicated by thedateTime
value.Test on:
http://varnish.pr-1211.dpl-cms.dplplat01.dpl.reload.dk/test-raekkefolge-af-abningstider
Screenshot of the result