Skip to content
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

Update Thailand holidays: extend support year down to 1914 #2166

Merged
merged 7 commits into from
Dec 15, 2024

Conversation

PPsyrius
Copy link
Collaborator

@PPsyrius PPsyrius commented Dec 12, 2024

Proposed change

Extend Thailand holiday support from 1941 to 1914 (The First Public Holidays Act) based on the Royal Gazette (ราชกิจจานุเบกษา) records.

Note

A few key documents are still missing from the internet ever since the Secretariat of the Cabinet (สำนักเลขาธิการคณะรัฐมนตรี) revamped their website and accidentally rendered files older than the last 10 years which isn't included in the Royal Gazette inaccessible, for example:

  • ประกาศสำนักนายกรัฐมนตรี เรื่องกำหนดเวลาทำการและวันหยุดราชการ (ฉบับที่ ๕) พ.ศ. ๒๔๙X
  • ประกาศสำนักนายกรัฐมนตรี เรื่องกำหนดเวลาทำการและวันหยุดราชการ (ฉบับที่ ๑๕) พ.ศ. ๒๕๐๕
  • ประกาศสำนักนายกรัฐมนตรี เรื่องกำหนดเวลาทำการและวันหยุดราชการ (ฉบับที่ ๑๘) พ.ศ. ๒๕๓๒

Once that is fixed, I'll try to get another PR up to get this the final update it needs for any historical date pre-2000.

Another issue is the manual assignment of weekend dates outside of weekdays for Buddhist Sabbath days (วันพระ) which instead relies on the Thai LuniSolar calendar (not that this is required, the whole scheme was thankfully abandoned before the first in-lieu implementation was decreed for Thai holidays in 1961).

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

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (6424db2) to head (91fad97).

Additional details and impacted files
@@            Coverage Diff             @@
##               dev     #2166    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          194       194            
  Lines        11541     11657   +116     
  Branches      1641      1691    +50     
==========================================
+ Hits         11541     11657   +116     

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

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.

@PPsyrius, it's great! I'm more and more fascinated by the history of your country's holidays. I have to try to make Ukrainian translation :)
Just a few small suggestions...

holidays/countries/thailand.py Outdated Show resolved Hide resolved
holidays/countries/thailand.py Outdated Show resolved Hide resolved
holidays/countries/thailand.py Outdated Show resolved Hide resolved
@PPsyrius PPsyrius requested a review from KJhellico December 14, 2024 03:43
Copy link
Collaborator

@arkid15r arkid15r left a comment

Choose a reason for hiding this comment

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

🇹🇭 LGTM, great work!
I love the attention to detail you guys maintain for the calendars extension!

@arkid15r arkid15r enabled auto-merge December 15, 2024 02:58
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 Dec 15, 2024
Merged via the queue into vacanza:dev with commit c2270ce Dec 15, 2024
30 checks passed
@PPsyrius PPsyrius deleted the th_holidays_historic branch December 16, 2024 02:40
@KJhellico KJhellico mentioned this pull request Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants