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/acceptance
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
..
about-test.js FEATURE: Add plugin API to register About stat group (#17442) 2022-07-15 13:16:00 +10:00
account-created-test.js UX: better account-created page (#17452) 2022-07-14 20:43:00 +05:30
admin-badges-award-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
admin-badges-show-test.js FIX: Immediately show sql options when badge query is supplied 2022-09-01 09:59:14 +01:00
admin-emails-test.js DEV: Add A11Y-friendly dialog addon (#18028) 2022-08-29 13:59:57 -04:00
admin-install-theme-modal-test.js FIX: Allow .git end to miss from Git repo URL (#18092) 2022-08-30 22:05:43 +03:00
admin-search-log-term-test.js DEV: updates chart.js to 3.5.1 (#14107) 2021-08-23 13:49:49 +02:00
admin-search-logs-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
admin-silence-user-test.js DEV: improve timezone API on the client (#16660) 2022-05-13 13:21:56 +04:00
admin-site-settings-test.js DEV: Use key names in triggerKeyEvent (#17535) 2022-07-17 20:15:28 +02:00
admin-site-text-test.js DEV: Add A11Y-friendly dialog addon (#18028) 2022-08-29 13:59:57 -04:00
admin-suspend-user-test.js DEV: improve timezone API on the client (#16660) 2022-05-13 13:21:56 +04:00
admin-user-badges-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
admin-user-emails-test.js DEV: Reduce jQuery usage in acceptance tests (#17406) 2022-07-10 10:52:02 +02:00
admin-user-index-test.js FIX: Regression with admin user delete dialog buttons (#18179) 2022-09-05 09:31:17 +02:00
admin-users-list-test.js DEV: Reduce jQuery usage in acceptance tests (#17406) 2022-07-10 10:52:02 +02:00
admin-watched-words-test.js DEV: Await for async helpers (#17942) 2022-08-16 10:48:17 +02:00
auth-complete-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
badges-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
bookmarks-test.js DEV: update yes/no confirmation dialogs (#18181) 2022-09-14 11:06:56 -04:00
bootstrap-mode-notice-test.js FIX: show hide bootstrap mode notice in real time (#17981) 2022-08-18 17:09:33 +05:30
categories-test.js FIX: Ensure discovery-categories always clears PreloadStore (#18157) 2022-09-01 16:11:13 +01:00
category-banner-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
category-chooser-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
category-edit-security-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
category-edit-test.js DEV: update yes/no confirmation dialogs (#18181) 2022-09-14 11:06:56 -04:00
category-new-test.js DEV: Reduce jQuery usage in acceptance tests (#17406) 2022-07-10 10:52:02 +02:00
click-track-test.js DEV: Revisit skipped tests (#15769) 2022-02-02 12:09:03 -05:00
composer-actions-test.js DEV: Rework two composer actions tests (#18008) 2022-08-21 09:19:39 +02:00
composer-draft-saving-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
composer-edit-conflict-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
composer-editor-mentions-test.js FEATURE: show user status description on the mention popup (#18110) 2022-08-29 21:16:48 +04:00
composer-hyperlink-test.js A11Y: Keep composer as focused element when dismissing Link modal via keyboard (#17893) 2022-08-15 09:37:19 +08:00
composer-image-preview-test.js FEATURE: add image delete button in preview. (#17624) 2022-08-04 16:33:23 -04:00
composer-onebox-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
composer-tags-test.js FIX: Show tag chooser if can_tag_pms (#18107) 2022-08-29 15:52:19 +03:00
composer-test.js DEV: Refactor composer and logout dialogs (#18156) 2022-09-13 12:30:52 -04:00
composer-topic-links-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
composer-uncategorized-test.js DEV: Refactor Site creation in tests (#15707) 2022-02-03 10:02:47 +00:00
composer-uploads-uppy-test.js FIX: Ensure uploads work when the user's browser rewrites ellipsis (#17671) 2022-07-26 21:43:39 +01:00
create-account-external-test.js DEV: Deprecate assert.not() (#15595) 2022-02-09 18:49:05 +01:00
create-account-user-fields-test.js DEV: Use key names in triggerKeyEvent (#17535) 2022-07-17 20:15:28 +02:00
create-invite-modal-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
custom-html-set-test.js DEV: Reduce jQuery usage in acceptance tests (#17406) 2022-07-10 10:52:02 +02:00
custom-html-template-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
dashboard-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
dismiss-notification-modal-test.js DEV: Add bookmarks tab to the new user menu (#17814) 2022-08-08 17:24:04 +03:00
do-not-disturb-test.js UX: Close the revamped user menu when opening modals (#18148) 2022-09-01 15:22:41 +04:00
edit-notification-click-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
email-notice-test.js UX: Differentiate 'emails disabled' notice for 'yes' and 'non-staff' (#16096) 2022-03-03 15:49:20 +00:00
emoji-picker-test.js DEV: Emoji picker keyboard accessibility updates (#18331) 2022-09-22 15:21:34 -07:00
emoji-test.js DEV: Use key names in triggerKeyEvent (#17535) 2022-07-17 20:15:28 +02:00
encoded-category-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
enforce-second-factor-test.js DEV: Reduce jQuery usage in acceptance tests (#17406) 2022-07-10 10:52:02 +02:00
fast-edit-test.js DEV: Use key names in triggerKeyEvent (#17535) 2022-07-17 20:15:28 +02:00
flag-post-test.js DEV: Make settled() work in the legacy env (#16122) 2022-03-07 20:00:09 +01:00
forgot-password-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
group-index-test.js FIX: Make group members bulk operations consistent (#17561) 2022-07-20 16:54:21 +03:00
group-manage-categories-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
group-manage-email-settings-test.js FEATURE: Allow sending group SMTP emails with from alias (#15687) 2022-02-07 13:52:01 +10:00
group-manage-interaction-test.js DEV: Avoid using globals (#14909) 2021-11-13 13:10:13 +01:00
group-manage-logs-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
group-manage-membership-test.js FEATURE: Experimental support for group membership via google auth (#14835) 2021-12-09 12:30:27 +00:00
group-manage-profile-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
group-manage-tags-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
group-requests-test.js DEV: Reduce jQuery usage in acceptance tests (#17406) 2022-07-10 10:52:02 +02:00
group-test.js DEV: update yes/no confirmation dialogs (#18181) 2022-09-14 11:06:56 -04:00
groups-index-test.js DEV: Reduce jQuery usage in acceptance tests (#17406) 2022-07-10 10:52:02 +02:00
groups-new-test.js DEV: Reduce jQuery usage in acceptance tests (#17406) 2022-07-10 10:52:02 +02:00
hamburger-menu-test.js DEV: Reduce jQuery usage in acceptance tests (#17406) 2022-07-10 10:52:02 +02:00
hashtags-test.js DEV: Reduce jQuery usage in acceptance tests (#17406) 2022-07-10 10:52:02 +02:00
image-aspect-ratio-test.js FIX: Ensure images do not change height when loading is complete (#16368) 2022-04-05 13:43:17 +01:00
invite-accept-test.js DEV: Reduce jQuery usage in acceptance tests (#17406) 2022-07-10 10:52:02 +02:00
invite-show-user-fields-test.js DEV: Deprecate assert.not() (#15595) 2022-02-09 18:49:05 +01:00
jump-to-test.js DEV: Remove flaky acceptance test (#17045) 2022-06-09 09:56:05 +08:00
keyboard-shortcuts-test.js DEV: Use key names in triggerKeyEvent (#17535) 2022-07-17 20:15:28 +02:00
last-visited-topic-focus-test.js A11Y: Focus last viewed topic in topic lists (take 3) (#16257) 2022-03-23 13:03:56 +03:00
lightbox-test.js DEV: Avoid triggering 404 errors in tests (#17404) 2022-07-10 11:09:13 +02:00
login-redirect-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
login-required-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
login-with-email-and-hide-email-address-taken-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
login-with-email-and-no-social-logins-test.js UX: add link for email login below username, remove button (#12118) 2021-02-24 16:30:08 -05:00
login-with-email-disabled-test.js UX: add link for email login below username, remove button (#12118) 2021-02-24 16:30:08 -05:00
login-with-email-test.js FEATURE: Add safe-mode toggle to /u/admin-login (#17930) 2022-08-15 15:30:07 +01:00
mobile-discovery-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
mobile-pan-test.js DEV: zoom isn't used anymore (#18016) 2022-08-21 09:18:19 +02:00
mobile-sign-in-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
mobile-topic-bulk-actions-test.js UX: add bulk-select to mobile topic lists (#15386) 2022-07-26 15:36:35 -04:00
mobile-users-test.js FEATURE: Add user custom fields to user directory (#13238) 2021-06-07 12:34:01 -05:00
modal-test.js DEV: Use key names in triggerKeyEvent (#17535) 2022-07-17 20:15:28 +02:00
new-message-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
new-topic-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
notifications-filter-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
notifications-test.js DEV: Remove yet another jQ use in tests (#17628) 2022-07-25 02:32:04 +02:00
opengraph-tag-updater-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
page-publishing-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
password-reset-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
pending-posts-test.js DEV: Fix pending posts page, make tests work in legacy env (#15132) 2021-11-30 13:01:39 +01:00
personal-message-test.js DEV: Reduce jQuery usage in acceptance tests (#17406) 2022-07-10 10:52:02 +02:00
plugin-keyboard-shortcut-test.js DEV: Remove unnecessary visit() calls (#17536) 2022-07-17 20:15:44 +02:00
plugin-outlet-connector-class-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
plugin-outlet-decorator-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
plugin-outlet-multi-template-test.js DEV: Keep global state reset in a single place (#18049) 2022-08-23 21:09:37 +02:00
plugin-outlet-single-template-test.js DEV: Switch from htmlbars-inline-precompile to ember-cli-htmlbars (#17424) 2022-07-11 15:25:40 +01:00
post-admin-menu-test.js DEV: Sort imports alphabetically (#11382) 2020-12-01 15:31:26 -03:00
post-controls-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
post-history-test.js DEV: Revisit skipped tests (#15769) 2022-02-02 12:09:03 -05:00
preferences-test.js DEV: Add another missing await (#18226) 2022-09-12 14:03:39 +02:00
raw-plugin-outlet-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
redirect-to-top-test.js DEV: Remove invalid pretender calls (#18341) 2022-09-23 12:07:23 +01:00
reports-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
review-test.js DEV: Always await for publishToMessageBus (#17626) 2022-07-24 19:55:58 +02:00
search-full-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
search-mobile-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
search-test.js DEV: Use key names in triggerKeyEvent (#17535) 2022-07-17 20:15:28 +02:00
second-factor-auth-test.js DEV: Consistently use response helper (#17627) 2022-07-25 02:31:52 +02:00
share-topic-test.js FEATURE: site setting to disable usernames in share links. (#18315) 2022-09-22 23:12:39 +05:30
shared-drafts-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
sidebar-anonymous-categories-section-test.js FIX: Sidebar categories for anonymous not being sorted by name (#18339) 2022-09-23 12:17:42 +08:00
sidebar-anonymous-community-section-test.js FIX: Respect site settings for sidebar users, groups and badges link (#18325) 2022-09-23 10:19:59 +08:00
sidebar-anonymous-tags-section-test.js UX: Use the same text for linking to more categories and tags in sidebar (#18275) 2022-09-19 12:01:08 +08:00
sidebar-anonymous-user-test.js FIX: Sidebar hamburger panel dropdown not working for anonymous (#18085) 2022-08-25 16:29:06 +08:00
sidebar-mobile-test.js UX: Clicking on a button in sidebar on mobile should collapse it (#18305) 2022-09-21 11:25:54 +08:00
sidebar-plugin-api-test.js DEV: Keep global state reset in a single place (#18049) 2022-08-23 21:09:37 +02:00
sidebar-user-categories-section-test.js FIX: Skip uncategorized category in sidebar when disabled (#18324) 2022-09-23 10:20:30 +08:00
sidebar-user-community-section-test.js FIX: Respect site settings for sidebar users, groups and badges link (#18325) 2022-09-23 10:19:59 +08:00
sidebar-user-messages-section-test.js FEATURE: Introduce personal_message_enabled_groups setting (#18042) 2022-09-26 13:58:40 +10:00
sidebar-user-tags-section-test.js UX: Use the same text for linking to more categories and tags in sidebar (#18275) 2022-09-19 12:01:08 +08:00
sidebar-user-test.js DEV: De-jQ sidebar tests (#18050) 2022-08-23 18:30:07 +02:00
sign-in-test.js DEV: Reduce jQuery usage in acceptance tests (#17406) 2022-07-10 10:52:02 +02:00
static-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
tag-groups-test.js DEV: select-kit third major update with focus on accessibility (#13303) 2021-08-23 10:44:19 +02:00
tags-intersection-test.js DEV: Reduce jQuery usage in acceptance tests (#17406) 2022-07-10 10:52:02 +02:00
tags-test.js DEV: Remove commented-out code (#17945) 2022-08-16 10:46:26 +02:00
themes-test.js FEATURE: Allow private themes to be partially installed (#17644) 2022-08-10 13:30:18 +03:00
topic-admin-menu-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
topic-anonymous-test.js DEV: Clean up QUnit tests (#13328) 2021-06-08 17:54:12 +02:00
topic-bulk-actions-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
topic-discovery-test.js DEV: Remove invalid pretender calls (#18341) 2022-09-23 12:07:23 +01:00
topic-discovery-tracked-test.js FIX: Regression with Categories nav item (#17885) 2022-08-12 11:30:39 -04:00
topic-edit-timer-test.js FEATURE: show default custom date on time-shortcut-pickers (#17867) 2022-08-18 14:55:54 +04:00
topic-entrance-test.js DEV: Use key names in triggerKeyEvent (#17535) 2022-07-17 20:15:28 +02:00
topic-footer-button-api-mobile-test.js DEV: adds a new topic footer dropdown api (#14747) 2021-11-12 10:21:34 +01:00
topic-footer-button-api-test.js DEV: Avoid using globals (#14909) 2021-11-13 13:10:13 +01:00
topic-footer-dropdown-api-test.js DEV: adds a new topic footer dropdown api (#14747) 2021-11-12 10:21:34 +01:00
topic-list-plugin-api-test.js DEV: Fix "overridden" typos (#16399) 2022-04-06 23:17:20 +02:00
topic-list-tracker-test.js DEV: Fix state leak in QUnit acceptance tests (#17507) 2022-07-15 16:51:15 +10:00
topic-move-posts-test.js DEV: Reduce jQuery usage in acceptance tests (#17406) 2022-07-10 10:52:02 +02:00
topic-notifications-button-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
topic-quote-button-test.js FIX: Allow users to quote in closed topics (#17645) 2022-07-26 15:45:34 -04:00
topic-set-slow-mode-test.js DEV: improve timezone API on the client (#16660) 2022-05-13 13:21:56 +04:00
topic-slow-mode-test.js DEV: use the only source for time shortcut options on all date pickers (#16366) 2022-04-21 15:49:11 +04:00
topic-test.js DEV: Always await for publishToMessageBus (#17626) 2022-07-24 19:55:58 +02:00
topic-timeline-test.js DEV: Replace equal() with strictEqual() (#14827) 2021-11-08 10:26:28 +01:00
topic-user-status-test.js FEATURE: make user status on post streams live (#17903) 2022-08-29 19:33:50 +04:00
unknown-test.js DEV: Silence one more test (#17375) 2022-07-08 09:15:09 +08:00
user-activity-all-test.js UX: show blank page placeholder instead of the blue panel that says "No Activity" (#16293) 2022-08-18 17:24:52 +04:00
user-activity-drafts-test.js FEATURE: improve blank page syndrome on the user activity pages (#14311) 2021-09-16 21:35:34 +04:00
user-activity-likes-test.js UX: show blank page placeholder instead of the blue panel that says "No Activity" (#16293) 2022-08-18 17:24:52 +04:00
user-activity-read-test.js FIX: This was causing a flaky test in Ember CLI 2022-01-26 14:53:25 -05:00
user-activity-replies-test.js DEV: Add A11Y-friendly dialog addon (#18028) 2022-08-29 13:59:57 -04:00
user-activity-topic-test.js UX: cleaner messages for empty state on the user activity topics page (#16267) 2022-03-25 00:20:55 +04:00
user-anonymous-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
user-bookmarks-test.js DEV: Remove most of jQuery usage from tests (#17474) 2022-07-13 19:29:19 +02:00
user-card-test.js FEATURE: user status (#16875) 2022-05-27 13:15:14 +04:00
user-drafts-stream-test.js DEV: update yes/no confirmation dialogs (#18181) 2022-09-14 11:06:56 -04:00
user-menu-test.js DEV: Various A11Y improvements for the new user menu (#18288) 2022-09-20 19:31:56 +03:00
user-preferences-account-test.js DEV: Refactor self-delete dialog (#18180) 2022-09-12 09:45:53 -04:00
user-preferences-interface-test.js FIX: don't preview color scheme if it's not current user's profile. (#17855) 2022-08-11 19:47:49 +05:30
user-preferences-notifications-test.js DEV: improve timezone API on the client (#16660) 2022-05-13 13:21:56 +04:00
user-preferences-profile-test.js A11Y: ensures featured topic btn is focused when modal closes (#17898) 2022-08-13 14:21:58 +02:00
user-preferences-sidebar-test.js DEV: Route PM only tags to PM tags show route (#17870) 2022-08-12 11:26:56 +08:00
user-private-messages-test.js DEV: Always await for publishToMessageBus (#17626) 2022-07-24 19:55:58 +02:00
user-profile-summary-test.js FIX: Regression with admin user delete dialog buttons (#18179) 2022-09-05 09:31:17 +02:00
user-status-test.js UX: Close the revamped user menu when opening modals (#18148) 2022-09-01 15:22:41 +04:00
user-test.js DEV: Refactor composer and logout dialogs (#18156) 2022-09-13 12:30:52 -04:00
users-test.js DEV: Use key names in triggerKeyEvent (#17535) 2022-07-17 20:15:28 +02:00
welcome-topic-banner-test.js UX: Welcome topic CTA adjustments (#18168) 2022-09-19 16:40:44 -05:00
wizard-test.js FIX: "Exit setup" link should exit the wizard and take user to homepage (#18182) 2022-09-05 17:21:41 +05:30