Title: Holiday API instead of (or in addition to) the iCalendar feed
- What is your original issue/pain point you want to solve?
- A better solution for holiday management
- Which are one or two concrete situations where this problem hurts the most?
- Holidays must constantly be maintained manually
- Why is it not solvable with the Zammad standard?
- iCalendar is not a useful way to manage holidays because the topic is too specific. But there are very good libraries for this.
- What is your expectation/what do you want to achieve?
- Implement the following library as a replacement or in addition to iCalendar.
Your Zammad environment:
- Average concurrent agent count: 5
- Average tickets a day: 20
- What roles/people are involved: admins
Anything else which you think is useful to understand your use case:
It’s just a suggestion for improvement, not a particularly urgent one.
As example, if you want all holidays for Bavaria in predominantly Catholic communities, it would look like:
from = Date.new(2024, 1, 1)
to = Date.new(2024, 12, 31)
bayern_holidays = Holidays.between(from, to, :de_by_cath)
bayern_holidays.each do |holiday|
puts "#{holiday[:date]}: #{holiday[:name]}"
end
And the output would look this:
2024-01-01: Neujahrstag
2024-01-06: Heilige Drei Könige
2024-03-29: Karfreitag
2024-04-01: Ostermontag
2024-05-01: Tag der Arbeit
2024-05-09: Christi Himmelfahrt
2024-05-20: Pfingstmontag
2024-05-30: Fronleichnam
2024-08-08: Friedensfest
2024-08-15: Mariä Himmelfahrt
2024-10-03: Tag der Deutschen Einheit
2024-11-01: Allerheiligen
2024-12-25: 1. Weihnachtstag
2024-12-26: 2. Weihnachtstag
Or for Hawaii:
from = Date.new(2024, 1, 1)
to = Date.new(2024, 12, 31)
hawaiian_holidays = Holidays.between(from, to, :us_hi)
hawaiian_holidays.each do |holiday|
puts "#{holiday[:date]}: #{holiday[:name]}"
end
2024-01-01: New Year's Day
2024-01-15: Martin Luther King, Jr. Day
2024-02-19: Presidents' Day
2024-03-26: Prince Jonah Kuhio Kalanianaole Day
2024-03-29: Good Friday
2024-05-27: Memorial Day
2024-06-11: King Kamehameha I Day
2024-06-19: Juneteenth National Independence Day
2024-07-04: Independence Day
2024-08-16: Statehood Day
2024-09-02: Labor Day
2024-11-05: Election Day
2024-11-11: Veterans Day
2024-11-28: Thanksgiving
2024-12-25: Christmas Day
It’s just a challenge to implement this nicely into the GUI.