-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add new holiday type bank and rename official holiday to public holiday #467
base: main
Are you sure you want to change the base?
Conversation
63196f8
to
013d55d
Compare
56ddf13
to
861addc
Compare
5037476
to
b61f5bc
Compare
8e79a43
to
42535ab
Compare
|
while I do understand the reasoning behind the changes, it results in the loss of some "holidays" (at least based on how the current contents of the PR). I use this library since the early days of its existence and back then it didn't have more detailed options then "Country", I noticed there are now options to specify a "region" like e.g. NY -- maybe something similar needs to happen for Belgium as well? Thoughts? |
eaa0992
to
44b2a7c
Compare
44b2a7c
to
b084d4a
Compare
First of all thanks for your feedback! The loss of the holidays was one of the things why I did not merge this pull requests and thought a lot about this. Are there further holiday types that can be used for the holidays you are talking about? Maybe something like "authority". E.g. for Kings Feast they say
with the new API provided to filter the holidays directly by the holiday type, it would be easy to only return the holidays like "Public Holidays" and so on. In other words, if you would add new holiday types, less is better, than we could still have this holidays that are no public holiday. The only thing we need to do is to have a correct holiday type. |
b084d4a
to
18d9274
Compare
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Manifest Files |
18d9274
to
a262e7b
Compare
|
To further differentiate between 'Public' and 'Bank' holiday types, should this be revised to indicate that 'Public' holidays are statutory holidays (enshrined in local law) mandated to be paid holidays, while 'Bank' holidays are when banks and other businesses may be closed? In the UK, "Bank" holidays are specifically defined as holidays that are defined by statute, while in other countries there are 'optional' or 'de facto' holidays where they may be widely observed by a given country or region as days businesses are closed and/or people are given a paid day off, but are not enshrined in local law as being a paid holiday. There's a larger discussion required (started in #537) about what other holiday types should be supported (including 'school' or 'authorities' as suggested in this PR), but providing further clarity and differentiation between 'public', 'bank', and 'unofficial' holidays would help establish how these types should be used and avoid confusion or re-work later on. |
a262e7b
to
602fcd0
Compare
602fcd0
to
620edfd
Compare
and remove school and authorities holiday
* Countries: be, mx, at
620edfd
to
937dd8c
Compare
closes #462
closes #482
Todo:
https://www.officeholidays.com/about/definitions