Skip to content

Conversation

@keyvankhademi
Copy link
Contributor

@keyvankhademi keyvankhademi commented Apr 8, 2024

This add marker_schedule module and renames the old schedule to legacy_schedule.
It uses a new metadata key schedule and it is backward compatible by falling back to weekly_schedule metadata key.

@keyvankhademi keyvankhademi self-assigned this Apr 8, 2024
Copy link
Contributor

@Reisen Reisen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I might be missing context, but is the string format for these holiday schedules defined anywhere or is it being introduced by this PR? I think it would be worth using a parsing library here to make the parsing a bit more robust. While FromStr is the right place to put this code I think handling parsing more robustly via something like winnow might be the right thing to do to define this format more concretely.

@keyvankhademi keyvankhademi changed the title feat: add holiday_hours module feat: add market_schedule module Apr 11, 2024
Copy link
Collaborator

@ali-behjati ali-behjati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

@keyvankhademi keyvankhademi merged commit 920df19 into main Apr 12, 2024
@keyvankhademi keyvankhademi deleted the holiday_hours branch April 12, 2024 17:55
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.

6 participants