-
-
Notifications
You must be signed in to change notification settings - Fork 22
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_holiday" and "observance" - rename official holiday to public holiday #467
Conversation
63196f8
to
013d55d
Compare
56ddf13
to
861addc
Compare
5037476
to
b61f5bc
Compare
8e79a43
to
42535ab
Compare
Quality Gate failedFailed conditions |
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
Quality Gate failedFailed conditions |
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
620edfd
to
937dd8c
Compare
0b750f0
to
933f7bb
Compare
bac43d9
to
5958428
Compare
* Rename Official_Holiday to Public_Holiday * Add Bank_Holiday * Add Observance Add new holiday types: bank holiday, observance
5958428
to
d5cfef3
Compare
Quality Gate failedFailed conditions |
closes #462
closes #482
closes #537
Todo:
https://www.officeholidays.com/about/definitions
as described in #537 we will change the holiday types so the following:
Public: Public holiday
Description: Public holidays are days when most of the public enjoys a paid non-working days. These days are determined by local laws and regulations. Countries use various names for these official non-working days, such as:
We will declare all of these as Public Holiday
Bank: Bank holiday, banks and offices are closed
Description: Bank holidays are days when financial institutions and government offices (and government-regulated businesses) are closed as determined by local laws and regulations. Other businesses, such as offices and retail stores, may also be closed on these days, though are not mandated to by local laws and regulations.
Observance Observance, is a celebration or commemoration that doesn't include a day off from work.
Description: When people celebrate or commemorate something, but do not have a day off from work for that reason, we call it an observance.
There are different types of observance like Religious, Secular, Awareness, International or National observance. We will declare all of these as Observance
Unofficial: Holidays which are not public or bank holidays (Deprecated)
Description: Unofficial holidays are deprecated and will be replaced by the other types over time.