This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests/fixtures
Martin Brennan e62e93f83a
FEATURE: Introduce personal_message_enabled_groups setting (#18042)
This will replace `enable_personal_messages` and
`min_trust_to_send_messages`, this commit introduces
the setting `personal_message_enabled_groups`
and uses it in all places that `enable_personal_messages`
and `min_trust_to_send_messages` currently apply.

A migration is included to set `personal_message_enabled_groups`
based on the following rules:

* If `enable_personal_messages` was false, then set
  `personal_message_enabled_groups` to `3`, which is
  the staff auto group
* If `min_trust_to_send_messages` is not default (1)
  and the above condition is false, then set the
  `personal_message_enabled_groups` setting to
  the appropriate auto group based on the trust level
* Otherwise just set `personal_message_enabled_groups` to
  11 which is the TL1 auto group

After follow-up PRs to plugins using these old settings, we will be
able to drop the old settings from core, in the meantime I've added
 DEPRECATED notices to their descriptions and added them
to the deprecated site settings list.

This commit also introduces a `_map` shortcut method definition
for all `group_list` site settings, e.g. `SiteSetting.personal_message_enabled_groups`
also has `SiteSetting.personal_message_enabled_groups_map` available,
which automatically splits the setting by `|` and converts it into
an array of integers.
2022-09-26 13:58:40 +10:00
..
concerns DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
about.js FEATURE: Add plugin API to register About stat group (#17442) 2022-07-15 13:16:00 +10:00
badges-fixture.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
category-fixtures.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
dashboard-general.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
dashboard-new-features.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
dashboard.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
directory-fixtures.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
discovery-fixtures.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
drafts.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
group-fixtures.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
groups-fixtures.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
notification-fixtures.js DEV: Apply model transformer API on more models (#18087) 2022-08-26 00:44:06 +03:00
pending-posts.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
poll.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
post.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
private-messages-fixtures.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
problems.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
reports-bulk.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
reports.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
search-fixtures.js REFACTOR: Update fastly URLs in tests to generic example URLs 2022-08-02 14:32:08 -10:00
session-fixtures.js FEATURE: Introduce personal_message_enabled_groups setting (#18042) 2022-09-26 13:58:40 +10:00
site-fixtures.js UX: Make category section link icons consistent with Sidebar's interface (#17922) 2022-08-17 09:40:43 +08:00
site-settings.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
static-fixtures.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
tag-group-fixtures.js FEATURE: Allow multiple required tag groups for a category (#16381) 2022-04-06 14:08:06 +01:00
top-fixtures.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
topic.js DEV: Add tags to a topic fixture (#18162) 2022-09-02 13:48:31 +02:00
user-badges.js DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
user-fixtures.js DEV: Refactor self-delete dialog (#18180) 2022-09-12 09:45:53 -04:00
user-menu.js DEV: Add model transformer plugin API (#18081) 2022-08-25 15:41:58 +03:00
watched-words-fixtures.js FEATURE: Add support for case-sensitive Watched Words (#17445) 2022-08-02 10:06:03 +02:00