Commit Graph

22 Commits

Author SHA1 Message Date
David Taylor 97534a6ec9
DEV: Promote historic post-deploy migrations (#146) 2021-06-23 17:54:27 +01: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
Joffrey JAFFEUX 9560350108
FEATURE: more dynamic event dates in topic titles (#61)
- always auto updated
- correctly computed, based on past/current/future event
- displays a green indicator when an event is on going
2020-09-27 14:25:27 +02: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 ad57efb6fe REFACTOR: makes reminders to be in raw 2020-08-10 23:38:04 +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
jjaffeux 6754bdfc8b FEATURE: adds support for custom fields on event
Custom fields are create in the site settings of the event plugin. Once at least one custom field is created, a new form will appear in each event UI. These custom fields are passed when DIscourseEvent triggers of the plugin are called, allowing you to pass custom data of the even to other plugins.
2020-08-07 17:50:15 +02:00
David Taylor 4b540f143d
FIX: Redo migrations such that tables are dropped in a safe manner (#56)
This is a reimplementation of 17b0147c which ensures the new table has the correct indexes, defaults and sequences

Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>
Co-authored-by: Daniel Waterworth <me@danielwaterworth.com>
2020-08-06 09:05:17 +08:00
David Taylor b82b80fb22
Revert "FIX: Redo migrations such that tables are dropped in a safe manner. (#55)"
This method of creating a table does not include any indexes, so we need to create them manually. Reverting temporarily.

This reverts commit 17b0147ccb.
2020-08-05 19:21:03 +01:00
Alan Guo Xiang Tan 17b0147ccb
FIX: Redo migrations such that tables are dropped in a safe manner. (#55) 2020-08-05 18:16:23 +01:00
Joffrey JAFFEUX c6b531d741
FEATURE: allows to add a url to an event (#52) 2020-08-03 08:58:52 +02:00
Sam Saffron 97de973eb2
FIX: amend resetting of cache
We need to reset the column info cache for posts so we can run the update
2020-04-30 12:45:02 +10:00
Sam Saffron fcbab7559d
DEV: attempt to work around poison schema cache in migration
Ideally we should not have this code in migrations
2020-04-30 11:36:17 +10:00
Joffrey JAFFEUX 646201d75d
FIX: ensures migration order is correct (#27) 2020-04-09 19:35:20 +02:00
Joffrey JAFFEUX 5665832fe7
REFACTOR: ensures consistent naming with discourse-post-event (#26) 2020-04-09 18:10:45 +02:00
Jarek Radosz 0350f5ce4b
DEV: Add `frozen_string_literal` comment 2020-03-28 14:22:35 +01:00
jjaffeux fe6c2e6102 FEATURE: uses post_event date in op to decorate topic title 2020-03-27 21:37:38 +01:00
Joffrey JAFFEUX 988b066ab5
FEATURE: implements initial support for post events (#24) 2020-03-26 14:11:33 +01:00
Bianca Nenciu 7fe6f8e624 DEV: Print error in migration to STDERR 2020-03-20 16:32:37 +02:00
Bianca Nenciu 536c597ef4
DEV: Migrate from custom fields to tables (#23) 2020-03-20 15:45:24 +02:00
Régis Hanol 517fdbfab7 DEV: fix migration to only remove duplicates
The migration was removing all but one 'on_holiday' user custom field...

Not big deal though since that custom field is being (re)set regularly in the 'update_holiday_usernames' job.
2020-01-21 18:09:46 +01:00
Régis Hanol b1fe4456d0 Various bug fixes and performance improvements
- FIX: update_holiday_usernames wasn't deleting "on_holiday" user custom fields
when no users were on holiday
- FIX: flair wasn't working on mentions when using subfolder
- PERF: only decorateCooked and addPosterIcon if there's at least one user on holiday
- Migration to remove duplicate "on_holiday" user custom fields
- Add unique index for the "on_holiday" user custom field
- Localize the "On Holiday" title
- Add the boolean type to the "on_holiday" user custom field
2019-07-25 18:02:31 +02:00