-
Notifications
You must be signed in to change notification settings - Fork 136
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
Discuss AU holidays #37
Comments
You say that any (I haven't been following this closely over the last two weeks so forgive me if this has already been answered.) |
Ignore the above, just read #35 and the attached code and now I better understand. In ANZAC Day's case we are adding additional dates for particular regions, whereas for NYD we want to remove a date from applying for a particular region. Looking at Adam's original commit, how about this as an API:
I should learn more about the Most importantly (to me) this wouldn't require upstream code changes, unlike the Thoughts? |
I merged a PR that removed a test from
:au_tas
here: #35I laid out why I did this and what we need to discuss. In short: any
:au
holiday will also apply to:au_tas
. Since we haveNew Year's Day
specified here with :au when you call:au_tas
it will pick it up.This is not what we have specified that we want. We want to call
:au_tas
and have it pick up ONLY the:au_tas
holiday.One solution that I just thought of: what if a subregion has the exact same holiday definition? If it does, could it just replace the 'parent' region's definition automatically? I think that would give us what we want.
Another solution is to add some kind of flag to not apply parent region holidays when querying a subregion. I'm not sure what users will want more.
Tagging @ghiculescu and @adamlyons2 for this discussion.
The text was updated successfully, but these errors were encountered: