Commit Graph

1164 Commits

Author SHA1 Message Date
Natalie Tay 84ef46a38c
SECURITY: Hide invitees from users who are not allowed to see the event post (#544) 2024-02-22 11:32:47 +08:00
Natalie Tay dfc4fa15f3
SECURITY: Disallow self invite to private events (#543) 2024-02-21 15:36:36 +08:00
Ahmed Gagan 22c85b66de
Update Gujarat Holidays 2024 (#534) 2024-02-09 15:18:14 +01:00
Martin Brennan 35d93e65f9
DEV: Add auto group refresh to specs (#542)
This is needed for the change in the core PR
https://github.com/discourse/discourse/pull/25602
2024-02-08 12:32:04 +10:00
Discourse Translator Bot ca03c8e4ee
Update translations (#539) 2024-02-06 22:35:26 +01:00
Kris 2cf2c7b482
FIX: update test for holiday adjustments (#541) 2024-02-06 22:29:46 +01:00
Joshua Rosenfeld bfd7f63b1d
Remove Lee-Jackson Day - generated definitions (#540)
Followup to 7f4b174aa9

Also updates README with proper command to generate holiday definitions
2024-02-06 12:51:31 -05:00
Joshua Rosenfeld 7f4b174aa9
Remove Lee Jackson Day (#538)
No longer observed: https://www.nbcwashington.com/news/local/va-lawmakers-pass-bill-ending-lee-jackson-holiday/2223440
2024-02-06 14:09:20 +10:00
Discourse Translator Bot 9f04d5e9f1
Update translations (#537) 2024-01-30 17:03:16 +01:00
Renato Atilio dea70ab377
FIX: convert emoji to unicode on event title (#530) 2024-01-29 11:50:50 -03:00
Ted Johansson b49e327f5c
DEV: Fix some TL group loading for admins in tests (#536) 2024-01-25 17:50:22 +10:00
Ted Johansson ee6ad02d0b
DEV: Exclude system users when serializing group timezones (#533)
The post_serializer_spec was calling Group.refresh_automatic_groups!(:admins), relying on that call booting system users from the group.

This change makes it so the implementation excludes any system users instead.
2024-01-25 07:42:46 +08:00
David Taylor 1dc990a4ea
FIX: SafeString conversion under latest Ember (#535) 2024-01-24 15:04:13 +00:00
Discourse Translator Bot ade02b28c1
Update translations (#532) 2024-01-23 18:29:24 +01:00
Alan Guo Xiang Tan f970701965
DEV: Update public holiday for Singapore 2024 (#531) 2024-01-22 11:21:39 +08:00
Renato Atilio 189846f980
DEV: fix another time dependent flaky test (#529) 2024-01-18 11:24:43 -03:00
Ted Johansson 82689c51bf
DEV: Fix time dependent flaky test (#528)
If event1 and event2 are fabricated in different second increments, this will flake. This PR provides explicit timestamps to the fabricated events.
2024-01-18 15:27:58 +08:00
Renato Atilio b622e0f200
FEATURE: support upcomingDays parameter on the upcoming events list (#524)
Adds a before parameter to the events endpoint and uses it through a upcomingDays parameter to the upcoming events list component – which can be used when adding it to the right sidebar blocks theme component.
2024-01-17 21:54:39 -03:00
David Battersby b6c03863a2
FIX: update Malaysia holidays for 2024 (#527)
Adds and updates various national holidays that are based on the Lunar calendar.
2024-01-17 20:11:08 +08:00
Discourse Translator Bot be3cf2307f
Update translations (#526) 2024-01-16 14:54:28 +01:00
Jarek Radosz 2201b254ff
DEV: Update linting (#503) 2024-01-15 11:24:00 +00:00
Renato Atilio 521df5e313
FIX: expired events from PM not visible in upcoming events calendar (#525) 2024-01-10 14:53:00 -03:00
Vinoth Kannan 5e77d77239
FIX: include year in holiday identifier to differentiate yearly recurring events. (#523)
We must include the year identifier since now we can use same topic to track holidays for multiple years. Also, we don't need to load old public holiday events for more than 6 months.
2024-01-10 01:44:17 +05:30
Vinoth Kannan 9522a9dd54
DEV: definitions generated for updated indian holidays. (#521)
Follow-up to: d006fba678 ef547b0448 5715c09c41
2024-01-09 20:02:56 +05:30
Discourse Translator Bot 3e5bc8cac1
Update translations (#522) 2024-01-09 15:09:31 +01:00
Vinoth Kannan 5715c09c41
Update Tamil Nadu (in_tn) holidays for 2024 (#520)
https://www.tn.gov.in/holiday/2024
2024-01-09 16:50:10 +05:30
Daniel Waterworth 3ec9411234
Backport custom field limit security fix (#519) 2024-01-08 16:20:21 -06:00
Daniel Waterworth 0dc75a1ccb
Merge pull request from GHSA-65f2-9ghp-x8h8 2024-01-08 16:43:14 -05:00
Renato Atilio d973787036
UX: "view all" link on upcoming events list (#518)
* UX: "view all" link on upcoming events list

* DEV: tests for view-all link

* UX: footer style

* DEV: fix linting
2024-01-08 16:59:51 -03:00
Renato Atilio 9fe3eb2583
FEATURE: support count parameter on the events list component (#513)
* FEATURE: support count parameter on the events list component

* DEV: fix linting
2024-01-08 15:09:47 -03:00
Rishabh ef547b0448
Add Mahashivratri (in_mh, 2024) to in.yaml (#517) 2024-01-03 11:49:32 +05:30
Discourse Translator Bot 255ee601a2
Update translations (#516) 2024-01-02 15:25:54 +01:00
Arpit Jalan d006fba678
FEATURE: add 'in_ka' region for India (#514)
Update India holidays for 2024
2024-01-02 09:06:57 +05:30
Neil Lalonde a0af35fca8
Fix holidays not showing in group timezones (#512) 2023-12-22 13:59:46 -05:00
Discourse Translator Bot 8e5d3574d6
Update translations (#510) 2023-12-19 22:45:22 +01:00
David Taylor c7c7eaf4d7
DEV: Remove use of private routeAction function (#508)
We know exactly which route this action exists on, so it's cleaner to lookup the route directly. (routeAction iterates through all active routes). Ideally this should be possible via a function on the composer service, but that would require a larger core change.
2023-12-19 12:47:12 +00:00
Kelv 1f69079454
FIX: only render event-date-container for topics with event date (#509) 2023-12-19 10:58:29 +08:00
Renato Atilio 11452f0eaf
FIX: events endpoint extension (#507)
Removes all `.json` extension occurrences from `/discourse-post-event/events` calls.
2023-12-15 14:02:41 -03:00
Mark VanLandingham cbd4c327e8
DEV: Remove old widget notification widgets (#506) 2023-12-14 13:40:08 -06:00
Juan David Martínez Cubillos ffe812b2a9
FIX: Event sorting shows oldest events first (#429)
* FIX: Event sorting shows oldest events first

---------

Co-authored-by: Jean Perez <jmperez127@gmail.com>
2023-12-14 11:31:37 -04:00
Krzysztof Kotlarek d873057af6
DEV: Replace deprecated min_trust_to_create_post (#505)
In https://github.com/discourse/discourse/pull/24740, `min_trust_to_create_topic` site setting was replaced by `create_topic_allowed_groups`. This PR replaces the former, deprecated one, with the latter.
2023-12-14 14:37:41 +11:00
Renato Atilio b55e394ba8
UX: fix past events bg color (#504) 2023-12-12 20:31:25 -03:00
Renato Atilio becfe9b2ad
FEATURE: site setting to include expired events on calendar views (#499)
* FEATURE: site setting to include expired events on calendar views

Adds a new site setting to include expired events on calendar views (Upcoming Events and Category Calendar).

Past events are displayed with the configured color (from the category or from the "Map events to color" site setting) as text and border colors instead of the background.
2023-12-12 19:10:54 -03:00
Discourse Translator Bot f69229a88d
Update translations (#502) 2023-12-12 14:23:46 +01:00
Osama Sayegh 7f603a44be
FIX: Migrate legacy hamburger menu links to sidebar (#497)
The legacy hamburger menu, which is implemented using the hamburger-menu widget, is being removed from core, so we need to migrate all customizations that currently target the legacy hamburger menu to the new sidebar.

This commit migrates the Upcoming Events link that the plugin adds to the legacy hamburger menu to the new sidebar.

Internal topic: t/113137.
2023-12-11 12:58:27 +03:00
Meghna bf6bee8200
FEATURE: add holiday flair on timezones view if the user is on holiday (#500) 2023-12-11 12:22:23 +05:30
Renato Atilio b9188c4c16
DEV: optional include_details param for events' list (#496) 2023-12-08 22:01:04 -03:00
Isaac Janzen 68a62b1265
FIX: Updating custom fields with new value (#495)
We were incorrectly access the input value from `setCustomField`. Additionally, we can only call `.set` on a `EmberObject`, which we were initializing the `custom_fields` with a empty hash (`{}`) causing the `set` call to fail.
2023-12-07 15:36:02 -07:00
Krzysztof Kotlarek 1c5beb4432
DEV: merge discourse post event settings to calendar (#490)
Before, site settings were divided into `discourse calendar` and `discourse events`.

This PR is merging them. Also, translation were moved under `discourse_calendar` key.
2023-12-07 08:59:08 +11:00
Jarek Radosz d072e05344
DEV: Fix a test hbs typo (#493) 2023-12-06 13:19:32 +01:00