Commit Graph

571 Commits

Author SHA1 Message Date
Discourse Translator Bot d013d596d4
Update translations (#135) 2021-05-25 15:27:27 +02:00
jjaffeux 8844829a0c FIX: prevents leaking organizer email in ics 2021-05-18 10:43:54 +02:00
Sam 7b654bc1b4
FEATURE: change delete expired post events to default false (#134)
More people seem to want to keep stuff around, less stuff to explain
2021-05-17 10:51:57 +10:00
Penar Musaraj 2b78a65622
DEV: Remove SCSS color vars fallbacks (#133) 2021-05-12 08:55:43 -04:00
dependabot[bot] e9660e49e8
Build(deps): Bump lodash from 4.17.20 to 4.17.21 (#132)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 13:40:14 -04:00
Sam aa7086b14c
DEV: update holiday definitions (#130) 2021-05-05 12:17:00 +10:00
Discourse Translator Bot 1d90680687
Update translations (#131) 2021-05-04 15:17:45 +02:00
Vinoth Kannan 3b1f1ea5ed
FIX: retrieve custom fields from preloaded data to stop N+1 issue. (#128)
All the preloaded custom fields are stored in `TopicView`'s post_custom_fields property. To prevent N+1 we should use that instead of `post.custom_fields` method.
2021-05-03 09:06:25 +02:00
dependabot[bot] 6cc116d15a
Build(deps): Bump rexml from 3.2.4 to 3.2.5 (#127)
Bumps [rexml](https://github.com/ruby/rexml) from 3.2.4 to 3.2.5.
- [Release notes](https://github.com/ruby/rexml/releases)
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md)
- [Commits](https://github.com/ruby/rexml/compare/v3.2.4...v3.2.5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-02 17:10:30 +02:00
dependabot[bot] 082bb3d5b0
Build(deps): Bump y18n from 5.0.2 to 5.0.8 (#126)
Bumps [y18n](https://github.com/yargs/y18n) from 5.0.2 to 5.0.8.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/compare/v5.0.2...v5.0.8)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-29 02:03:17 +02:00
Joffrey JAFFEUX 7d6e1f1a76
FIX: prevents exception when accessing `post.local_dates` (#125)
`post.local_dates` is coming from the core discourse plugin, which has the following implementation:

```
  add_to_class(:post, :local_dates) do
    custom_fields[DiscourseLocalDates::POST_CUSTOM_FIELD] || []
  end
```

Meaning we should always at least get an array, however, if the core local dates plugin is disabled, add_to_class will be called and the method added , however it will return nothing if the plugin is not enabled.

Source location correctly leads to the `add_to_class` block:

```
[9] pry(main)> Post.last.method(:local_dates).source_location
=> ["/discourse/lib/plugin/instance.rb", 260]
```
2021-04-27 21:08:12 +02:00
Joffrey JAFFEUX 227080a2da
SECURITY: prevents arbitrary method call from input (#123) 2021-04-27 15:58:58 +02:00
Discourse Translator Bot d6bee1fcb5
Update translations (#124) 2021-04-27 15:46:54 +02:00
Joffrey JAFFEUX d91d44ca30
UX: makes date time range multiline (#122)
This is due to new native picker taking more inline space than pikaday.
2021-04-27 11:32:24 +02:00
Kris c11debe03c
UX: Update event notification text and markup (#121) 2021-04-26 21:12:17 -04:00
Dan Ungureanu 776e3d1b9d
FIX: Show holiday name only once (#120) 2021-04-23 19:16:29 +03:00
Discourse Translator Bot 15a3ffc653
Update translations (#119) 2021-04-20 15:31:41 +02:00
Dan Ungureanu 4d9d30fe18
FIX: Handle multiple holidays in the same day (#118)
If a user had two holidays in the same day, the calendar would show
only of them, but the username would be shown twice. This ensures the
calendar shows both holidays and the username only once.
2021-04-14 11:42:21 +03:00
Krzysztof Kotlarek ac765a320c
FIX: event serializer start and end date (#117)
When all events are finished (not pending) serializer is not sorting correctly and not taking the lastly updated event_date. That is causing an issue that even though the database is updated correctly, it is not reflected in UI
2021-04-08 10:10:55 +10:00
Discourse Translator Bot ece9fef84f
Update translations (#115) 2021-04-07 11:56:33 +02:00
Joffrey JAFFEUX c382248cdc
FIX: csv-uploader has been removed from core (#116)
For now copy previous component into discourse-calendar plugin
2021-04-06 21:18:34 +02:00
Discourse Translator Bot c13d83555a
Update translations (#114) 2021-03-30 15:13:46 +02:00
Discourse Translator Bot aff34c012a
Update translations (#113) 2021-03-16 15:44:35 +01:00
Penar Musaraj b7b7ff0188
DEV: Rename fullcalendar.min.scss to fullcalendar.min.css (#112) 2021-03-12 11:49:36 -05:00
Discourse Translator Bot 46f9d65863
Update translations (#111) 2021-03-09 15:17:46 +01:00
Roman Rizzi 7f6c122181
FIX: Use Ember's debounce on stable. (#110)
We need to wrap the new debounce function inside a try block to avoid throwing a "module not found" exception.
2021-02-22 12:55:22 -03:00
Discourse Translator Bot 353f8730e9
Update translations (#109) 2021-02-16 15:23:44 +01:00
Osama Sayegh 12ea411cd8
DEV: Remove global Discourse JS reference (#107) 2021-02-16 13:09:53 +03:00
Osama Sayegh c8bbea9496
DEV: Migrate from {{user-selector}} to {{email-group-user-chooser}} (#108) 2021-02-15 21:03:55 +03:00
discoursebot 52e22b9972
DEV: Update CI workflows (#106)
Co-authored-by: CvX <CvX@users.noreply.github.com>
2021-02-11 17:14:55 +01:00
Jarek Radosz cd7a52e131 DEV: Fix template linting issues 2021-02-10 12:15:57 +01:00
CvX 69d32cc1f0 DEV: Update CI workflows 2021-02-10 12:15:57 +01:00
Gerhard Schlager 11397e2910
DEV: Fix flaky spec (#103) 2021-02-09 18:24:26 +01:00
Discourse Translator Bot 275ea09a5a
Update translations (#102) 2021-02-09 14:51:30 +01:00
Discourse Translator Bot bc5d35fc98
Update translations (#101) 2021-02-02 14:37:03 +01:00
Joffrey JAFFEUX 1cea44e1ab
DEV: prettier 2.2.1 (#100) 2021-01-27 10:36:32 +01:00
Discourse Translator Bot 109991de6e
Update translations (#99) 2021-01-26 14:50:56 +01:00
Krzysztof Kotlarek 708916b31a
FIX: reminder job is not erroring when a post is deleted (#98)
We should not error in reminder job when a post is already deleted.

In that case, we should simply skip and don't send any notifications.
2021-01-25 08:52:35 +01:00
Blake Erickson 802d56977a
FIX: Cannot compare nil with less than or equal to (#97)
This commit is to fix this error:

`Job exception: undefined method `<=' for nil:NilClass`

That occurs from the finish method in the monitor_events_dates scheduled
job.

```
app/models/discourse_post_event/event_date.rb:49:in `ended?'
jobs/scheduled/monitor_event_dates.rb:35:in `finish'
jobs/scheduled/monitor_event_dates.rb:11:in `block in execute'
```

This method checks to see if the event has finished and if it has it
will mark it as finished in the database. Some events though don't have
an end date and so this job will throw the above error.

Added a spec file for the event_date model to test for this specific
case.
2021-01-21 13:05:50 -07:00
Discourse Translator Bot 0c54bf17db
Update translations (#96) 2021-01-19 15:46:23 +01:00
Dan Ungureanu 08ddbcc769
FIX: Add 'none' option to region selector (#94) 2021-01-19 11:35:14 +02:00
Discourse Translator Bot db6cab9cf1
Update translations (#93) 2021-01-12 14:28:09 +01:00
Discourse Translator Bot 29177c812c
Update translations (#92) 2021-01-05 14:25:23 +01:00
discoursebot 766910d370
DEV: Update CI workflows (#91)
Co-authored-by: justindirose <justindirose@users.noreply.github.com>
2021-01-04 14:09:57 -06:00
Roman Rizzi 48bf06c55f
REFACTOR: Use the new format for acceptance tests. (#90) 2020-12-30 15:52:13 -03:00
Joffrey JAFFEUX 754d991362
UX: makes timezones tag usage in working _days setting clearer (#89) 2020-12-29 22:28:38 +01:00
Joffrey JAFFEUX 54b76d6b5e
FIX: ensures no conflict when spamming create attendance (#87)
Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2020-12-29 20:10:39 +01:00
Discourse Translator Bot 40dba6d242
Update translations (#88) 2020-12-29 19:44:10 +01:00
Roman Rizzi 224c8ee355
DEV: Use the new discourseDebounce function wrapper. (#85)
We recently merged a Discourse core's PR to replace usages of Ember's debounce and discourseDebounce with a new debounce wrapper. The new wrapper works exactly like Ember's debounce but internally calls "run" when called in test mode.

This PR replaces all usages of other debounce functions with the new wrapper and fallbacks to Ember's debounce for backward-compatibility.
2020-12-22 14:34:31 -03:00
Discourse Translator Bot d8f9dc8151
Update translations (#86) 2020-12-22 14:47:01 +01:00