Skip to content

Conversation

@Prateekshit73
Copy link
Contributor

Proposed change

Added Afghanistan holidays, based on Public holidays in Afghanistan on wikipedia, Today's and Upcoming Holidays in Afghanistan

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
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.

@Prateekshit73, it's a good start! But I have some issues about the holidays.

@KJhellico KJhellico changed the title Added Afghanistan holidays Add Afghanistan holidays Dec 28, 2024
@KJhellico KJhellico linked an issue Dec 28, 2024 that may be closed by this pull request
@Prateekshit73
Copy link
Contributor Author

I tried my best, but I apologize for the inconvenience caused. I think that rather than helping, I am making it worse.

@KJhellico
Copy link
Collaborator

@Prateekshit73 , you don't need to apologize, it's a work process. We will discuss everything and eventually achieve a result. ✌️

@arkid15r
Copy link
Collaborator

I tried my best, but I apologize for the inconvenience caused. I think that rather than helping, I am making it worse.

@Prateekshit73 you're doing great. Don't take the review process as a critique of your work. It's a standard way to achieve a greater goal of having accurate holidays calendar for AF. We can't appreciate more your willingness to implement it. Thank you for this!

Copy link
Collaborator

@PPsyrius PPsyrius left a comment

Choose a reason for hiding this comment

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

Glad to see new contributors 😊

Let me know once you've nailed down all date assignments debate with @KJhellico so that I can help out with the test suites.

@PPsyrius PPsyrius self-assigned this Dec 31, 2024
@PPsyrius
Copy link
Collaborator

PPsyrius commented Jan 1, 2025

@Prateekshit73 Hi - I've created a code review suggestion PR on your forked branch which includes the following changes:

  • Sets 1919 as Afghanistan's start date (Afghanistan's regaining of full independence from British influence).
  • Sets International Worker's Day observance in Afghanistan start date as 1968 instead of 1889.
  • Removes duplicate Prophet's Birthday (Mawlid) date assignment.
  • Make sure the English (en_US) localization matches the comments and sources used elsewhere.
  • Switches < and > instances to <= and >= instead for easier maintenance.
  • Refractors and fixes Afghanistan test cases to 100% coverage.
  • Adds Adghanistan's holiday snapshot.

@PPsyrius PPsyrius requested a review from KJhellico January 1, 2025 15:21
@Prateekshit73 Prateekshit73 requested a review from PPsyrius January 3, 2025 10:47
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 👍

PPsyrius
PPsyrius previously approved these changes Jan 4, 2025
Copy link
Collaborator

@PPsyrius PPsyrius left a comment

Choose a reason for hiding this comment

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

LGTM 🇦🇫

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 5, 2025

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.

@Prateekshit73 thank you for your hard work on this clean PR!
A new country support is one of the best contribution in terms of impact.

LGTM!

@KJhellico @PPsyrius I've changed fa to fa_AF -- please review one more time.

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 Jan 5, 2025
Merged via the queue into vacanza:dev with commit 512ad34 Jan 5, 2025
32 checks passed
@Prateekshit73 Prateekshit73 deleted the add-afghanistan branch January 5, 2025 11:15
@arkid15r arkid15r mentioned this pull request Jan 6, 2025
@KJhellico KJhellico mentioned this pull request Jan 7, 2025
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.

Add Afghanistan holidays

4 participants