Skip to content

Conversation

@PPsyrius
Copy link
Collaborator

@PPsyrius PPsyrius commented Oct 11, 2024

Proposed change

This updates Johor (Malaysia) weekend observance from FRI-SAT back to SAT-SUN as previously used between 1995-2013, starting Jan 1, 2025 next year as decreed on Oct 8, 2024.

The same goes for the United Arab Emirates's weekend observance change from FRI-SAT to SAT-SUN starting Jan 1, 2022 (we missed this somehow in the last library-wide special weekend implementations).

I've also standardised the weekend observance code a bit for other countries to match the existing format used by Saudi Arabia.

Type of change

  • New country/market holidays support (thank you!)
  • Supported country/market holidays update (calendar discrepancy fix, localization)
  • Existing code/documentation/test/process quality improvement (best practice, cleanup, refactoring, optimization)
  • Dependency update (version deprecation/pin/upgrade)
  • Bugfix (non-breaking change which fixes an issue)
  • Breaking change (a code change causing existing functionality to break)
  • New feature (new holidays functionality in general)

Checklist

  • I've followed the contributing guidelines
  • I've run make pre-commit, it didn't generate any changes
  • I've run make test, all tests passed locally

@KJhellico
Copy link
Collaborator

Need to add here:

        else:
            self._observed_rule = SUN_TO_NEXT_WORKDAY
            self.weekend = {SAT, SUN}

Then it will work correctly when years includes years with different rules (as in snapshots).

Co-Authored-By: ~Jhellico <[email protected]>
@codecov
Copy link

codecov bot commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (1f3170f) to head (7145eff).
Report is 12 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff            @@
##               dev     #2048   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          190       190           
  Lines        11522     11519    -3     
  Branches      1798      1738   -60     
=========================================
- Hits         11522     11519    -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@PPsyrius PPsyrius requested a review from KJhellico October 12, 2024 02:23
@sonarqubecloud
Copy link

Copy link
Collaborator

@KJhellico KJhellico left a comment

Choose a reason for hiding this comment

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

LGTM.

@arkid15r arkid15r added this pull request to the merge queue Oct 12, 2024
Merged via the queue into vacanza:dev with commit ebe2ca0 Oct 12, 2024
28 checks passed
@PPsyrius PPsyrius deleted the johor_UAE_weekend branch October 12, 2024 14:34
@KJhellico KJhellico mentioned this pull request Oct 21, 2024
mstuttgart pushed a commit to multidadosti-erp/python-holidays that referenced this pull request Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants