Commit Graph

8 Commits

Author SHA1 Message Date
David Taylor 3e9ab14bcd
DEV: Introduce syntax_tree for ruby formatting (#363) 2022-12-29 13:30:41 +01:00
Andrei Prigorshnev ccb4993e57
FEATURE: when user is on holiday set user status in core (#333)
Before, the calendar plugin was setting this custom holiday flair in many places in Discourse. Starting from this PR, the calendar plugin will be setting user status in core instead.

Note that from now we start to show holiday's end date. If a user has several holiday events simultaneously (this can happen easily, for example, if a user is on vacation and today is a public holiday in their country), the date will be taken from the longest event.

Note also that there is an edge case that's not handled in this PR - if a user has several holidays one after another (let's say they are sick this week and has a vacation on the next week), it would be nice to show as the end date of the holiday the ending date of the second holiday. For now, the plugin uses the end date of the current holiday in such cases, but I'll improve it in one of the next PRs.

Also, in this PR, I directly use methods of the user model from Core. We definitely need API calls instead. This fix is also coming soon.
2022-10-24 16:57:53 +04:00
Jarek Radosz 4cc79a2543
FIX: Expired/non-expired events logic (#165)
Previously, an edited event could be returned in both expired and non-expired event queries.
2021-09-01 14:42:48 +02:00
Krzysztof Kotlarek 9f69f273ad
FIX: move post events into separate tables (#70)
* FIX: correctly destroys standalone calendar events (#66)

Standalone events are mostly created for holidays where we create a calendar event not associated to any post of of the topic, before this change, the loop was exited before collecting the ID of the calendar event to be destroyed.
2020-11-25 09:32:51 +11:00
jjaffeux 019847948c FEATURE: intoduces recurrence support
For now: every_week/every_day/every_month/every_weekday (monday to friday)
2020-08-13 10:19:13 +02:00
jjaffeux da91f7417d FEATURE: allows to set reminder
Note that reminders; as custom fields, are only editable on created event and not when creating it.
2020-08-10 16:02:12 +02:00
Joffrey JAFFEUX 5665832fe7
REFACTOR: ensures consistent naming with discourse-post-event (#26) 2020-04-09 18:10:45 +02:00
Joffrey JAFFEUX 988b066ab5
FEATURE: implements initial support for post events (#24) 2020-03-26 14:11:33 +01:00