-
Notifications
You must be signed in to change notification settings - Fork 42
new calendar endpoints | part 4/4 | endpoint implementations #955
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
base: develop
Are you sure you want to change the base?
new calendar endpoints | part 4/4 | endpoint implementations #955
Conversation
|
Hello @mauteri , can you please help me getting this finished? Would be nice to get your feedback or help or both! |
|
Thank you @carstingaxion // acknowledging this is ready for review. |
|
Seeing this here makes me feel sad. After a lot of work I did, I asked for help, tried to do better, asked for help another time and after month this contribution is still on hold. Excuse me @mauteri, @MervinHernandez, @patriciabt and all others but …. 👀 |
|
Hi @carstingaxion I'm sorry you felt you didn't get the support you needed. Without a project manager it is very hard and I'm sorry for that. I'm in the process of recruiting one, but there was a shakeup at my company recently, so I'm not sure what the status is of the person I had in mind to help prioritize tasks and rally people around issues. This current task was lined up to be worked on for next release but the person who knows a bit about this and was interested in working on is another coworker of mine, and is effected by the same shakeup I mentioned before, so not sure when/if he'll get back to it. If you're interested in joining back up with us, we'd love to have you. Hope you're well. |
|
@JordanPak mind working with @carstingaxion on this one? Thx! |
(... to avoid the never ending rebase merge conflicts, that apperaed when I tried to update the aged PR#955 to "develop" after months of commits happened.) Included were 18 commits: --- commit 3d2dfe6 Author: Carsten Bach <mail@carsten-bach.de> Date: Fri Oct 25 02:11:52 2024 +0200 Fix: MD049/emphasis-style Emphasis style should be consistent commit 65f00a9 Author: Carsten Bach <mail@carsten-bach.de> Date: Fri Oct 25 02:07:32 2024 +0200 Ignore phpstan error (probably introduced with GatherPress#928) commit 48244f6 Author: Carsten Bach <mail@carsten-bach.de> Date: Tue Oct 22 10:24:29 2024 +0200 Fix: Parameter #1 $string of function str_pad expects string, int given commit b70ef88 Author: Carsten Bach <mail@carsten-bach.de> Date: Tue Oct 22 10:21:56 2024 +0200 Fix: Access to undefined constant GatherPress\Core\Calendars::DATETIME_FORMAT. commit a0dfc36 Author: Carsten Bach <mail@carsten-bach.de> Date: Tue Oct 22 10:20:03 2024 +0200 Fix: PHPDoc tag @throws with type GatherPress\Core\Exception is not subtype of Throwable commit acd837b Author: Carsten Bach <mail@carsten-bach.de> Date: Tue Oct 22 10:18:55 2024 +0200 Fix: Offset 'type' on array{url: string|false, attr: string} in isset() does not exist. commit 6ddf147 Author: Carsten Bach <mail@carsten-bach.de> Date: Tue Oct 22 10:14:51 2024 +0200 Fix: Parameter #1 $object_type of function get_object_taxonomies expects array<string>|string|WP_Post, int given. commit 0ffbcba Author: Carsten Bach <mail@carsten-bach.de> Date: Tue Oct 22 10:11:42 2024 +0200 BUGFIX: Remove superflous file commit b028af0 Author: Carsten Bach <mail@carsten-bach.de> Date: Tue Oct 22 10:03:47 2024 +0200 Fix: Function is_archive invoked with 1 parameter, 0 required. commit 8f33582 Merge: 34ad38e 6478e00 Author: Carsten Bach <mail@carsten-bach.de> Date: Tue Oct 22 01:47:58 2024 +0200 Merge branch 'develop' into feature/fragment-of-pr-831-endpoint-implementations commit 34ad38e Author: Carsten Bach <mail@carsten-bach.de> Date: Tue Oct 22 01:42:12 2024 +0200 Fix for CS commit 13aaf22 Author: Carsten Bach <mail@carsten-bach.de> Date: Tue Oct 22 01:39:56 2024 +0200 NEW '.../topic/123/ical' endpoint commit 878159f Author: Carsten Bach <mail@carsten-bach.de> Date: Tue Oct 22 01:39:25 2024 +0200 NEW '.../venue/abc/ical' endpoint commit 6633ec5 Author: Carsten Bach <mail@carsten-bach.de> Date: Tue Oct 22 01:38:57 2024 +0200 NEW '.../event/xyz/ical' endpoint commit 883a819 Author: Carsten Bach <mail@carsten-bach.de> Date: Tue Oct 22 01:38:20 2024 +0200 NEW '.../event/ical' endpoint commit 29a39b1 Author: Carsten Bach <mail@carsten-bach.de> Date: Tue Oct 22 01:26:49 2024 +0200 Add overrideable-templates , like described in GatherPress#929 commit 3eb3d6c Author: Carsten Bach <mail@carsten-bach.de> Date: Tue Oct 22 01:18:25 2024 +0200 Add 'Add-to-calendar' to feature list commit fe58c49 Author: Carsten Bach <mail@carsten-bach.de> Date: Tue Oct 22 00:13:39 2024 +0200 New class responsible for managing calendar-related endpoints in GatherPress.
3d2dfe6 to
e5813a4
Compare
|
To be able to go on here, I do need especially your help @mauteri! Because it was you who prepared & merged #1068 , which includes some of the same functionality of this PR. How should I - for example - handle all your code related to .ics file downloads, which is also included here, too? (EDIT) And I absolutely do not understand, why you create new solutions beside the working ones I provided months ago, without even leaving a comment. |
Preview changes with PlaygroundYou can preview the recent changes for PR#955 with the following PHP versions: PHP Version 8.3
PHP Version 7.4
Download Made with 💙 from GatherPress & a little bit of WordPress Playground. Changes will not persist between sessions. |
@carstingaxion you were gone for about 10 months and didn’t respond to any of the messages I tagged you in during that time. Eventually, I had to move forward. I needed to update the Add to Calendar block and also fix the downloadable .ics functionality. The current implementation matches what sites like meetup.com offer (single downloadable events rather than a subscribable feed). I saw the subscribable feature as something we could layer in later. Your approach here feels quite complex and heavily abstracted. I’m not sure how I feel about it yet, and I’d appreciate you looping in @JordanPak, since he’s worked on subscribable calendar links in some of his own work. |
Pull Request Review for PR #955: New Calendar EndpointsOverviewThis PR introduces new calendar-related endpoints and enhances the "Add to Calendar" block for GatherPress, enabling users to easily add events to Google, Yahoo, iCal, and Outlook calendars. The implementation is modular, extensible, and aligns with WordPress and plugin coding best practices. File-by-File Summary
General Feedback
Suggestions
Conclusion: |
This PR is the final part of the fragmentation of #831, which was way too big to review or merge.
I try to do better in the future.
Finally closes #603
Description of the Change
This PR introduces the following of new endpoints:
example.org/event/my-sample-event/icalprovides a download-able .ics file in ical format.
example.org/event/my-sample-event/outlookprovides the same download-able file as an alias.
example.org/event/my-sample-event/google-calendarredirects to create a new event in Google Calendar.
example.org/event/my-sample-event/yahoo-calendarredirects to create a new event in Yahoo Calendar.
example.org/event/feed/icalprovides a subscribe-able event feed in ical format with all events of the site.
example.org/venue/my-sample-venue/feed/icalprovides a subscribe-able event feed in ical format with all events at that venue.
example.org/topic/my-sample-topic/feed/icalprovides a subscribe-able event feed in ical format with all events grouped into that topic.
How to test the Change
echo ‚hello themed iCal world‘;into itChangelog Entry
Credits
Props @carstingaxion
Checklist:
Related PRs that can be reviewed & merged after this:
To get the new endpoints into the block-editor, one of the following would be required:
OR