nextcloud / calendar

📆 Calendar app for Nextcloud
https://apps.nextcloud.com/apps/calendar
GNU Affero General Public License v3.0
975 stars 240 forks source link

Update holiday_calendars.json to be in sync with Thunderbird #6014

Closed nclm closed 4 days ago

nclm commented 4 months ago

From conversation in #6011:

Imported content from https://github.com/thunderbird/thunderbird-website/blob/master/media/caldata/autogen/calendars.json (version from Apr 1, 2024, 9:39 PM GMT+2) bringing the number of calendars from about 56 to about 86.

Adds 'locale', 'language', and 'updated' fields that are not used by Nextcloud at the moment but present in Thunderbird’s source file.

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 23.54%. Comparing base (e44de16) to head (c472a85). Report is 379 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #6014 +/- ## ========================================= Coverage 23.54% 23.54% Complexity 455 455 ========================================= Files 246 246 Lines 11707 11707 Branches 2141 2141 ========================================= Hits 2756 2756 Misses 8637 8637 Partials 314 314 ``` | [Flag](https://app.codecov.io/gh/nextcloud/calendar/pull/6014/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nextcloud) | Coverage Δ | | |---|---|---| | [javascript](https://app.codecov.io/gh/nextcloud/calendar/pull/6014/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nextcloud) | `15.18% <ø> (ø)` | | | [php](https://app.codecov.io/gh/nextcloud/calendar/pull/6014/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nextcloud) | `58.46% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nextcloud#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

miaulalala commented 4 months ago

The problem is see is that old subscriptions aren't updated to the new endpoint, which means even if I have a subscription, the button in the subscription calendar list isn't greyed out. Instead I can subscribe to the same holiday calendar twice - in my test case for Germany. That's a bit confusing for the users.

Looks like the subscription is found in \Sabre\CalDAV\Backend\SubscriptionSupport::getSubscriptionsForUser.

I think this will need a bit of a code change in the backend, maybe a migration step that updates the subscriptions to use the new autogen endpoint automatically.

github-actions[bot] commented 4 months ago

Hello there, Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

p4p4j0hn commented 1 month ago

maybe a migration step that updates the subscriptions to use the new autogen endpoint automatically.

A more immediate change that is necessary is the initial subscription url for the holiday calendars should have the autogen endpoint. The Canadian calendar being pulled in does not work for me, since Nextcloud Calendar is pointing to an outdated endpoint. If I subscribe to the updated calendar directly from Thunderbird all the holidays display correctly.

cwerstuik commented 1 week ago

@miaulalala If it's as easy as deleting the old calendar and adding it again, maybe a migration step can be added later...

I also was hoping to rely on the Canadian calendar, but the holidays are all wrong so as it is, no one in Canada is going to be using this calendar. Thanks for considering.

miaulalala commented 4 days ago

Let's get this in, and add a migration or repair step for this separately as this has to be done on the server side anyway.

miaulalala commented 4 days ago

/backport to stable5.0

nclm commented 3 days ago

Great thanks,

Would there be any way to quarterly/biyearly/yearly update the file with the latest from Thunderbird? They seem to update it “quarterly”: https://github.com/thunderbird/thunderbird-website/commits/master/media/caldata/autogen/calendars.json

miaulalala commented 3 days ago

Great thanks,

Would there be any way to quarterly/biyearly/yearly update the file with the latest from Thunderbird? They seem to update it “quarterly”: thunderbird/thunderbird-website@master/media/caldata/autogen/calendars.json (commits)

not automatically yet - maybe there's some script we could run but I'm not sure.

nclm commented 3 days ago

Or maybe some kind of yearly repeating task in Github or whichever project management tool, just to remember to do a manual PR regularly.