discourse/spec/requests
Martin Brennan 56d3e29a69
FIX: Badge and user title interaction fixes (#8282)
* Fix user title logic when badge name customized
* Fix an issue where a user's title was not considered a badge granted title when the user used a badge for their title and the badge name was customized. this affected the effectiveness of revoke_ungranted_titles! which only operates on badge_granted_titles.
* When a user's title is set now it is considered a badge_granted_title if the badge name OR the badge custom name from TranslationOverride is the same as the title
* When a user's badge is revoked we now also revoke their title if the user's title matches the badge name OR the badge custom name from TranslationOverride
* Add a user history log when the title is revoked to remove confusion about why titles are revoked
* Add granted_title_badge_id to user_profile, now when we set badge_granted_title on a user profile when updating a user's title based on a badge, we also remember which badge matched the title
* When badge name (or custom text) changes update titles of users in a background job
* When the name of a badge changes, or in the case of system badges when their custom translation text changes, then we need to update the title of all corresponding users who have a badge_granted_title and matching granted_title_badge_id. In the case of system badges we need to first get the proper badge ID based on the translation key e.g. badges.regular.name
* Add migration to backfill all granted_title_badge_ids for both normal badge name titles and titles using custom badge text.
2019-11-08 15:34:24 +10:00
..
admin FIX: Badge and user title interaction fixes (#8282) 2019-11-08 15:34:24 +10:00
about_controller_spec.rb
application_controller_spec.rb FEATURE: Add site setting to show more detailed 404 errors. (#8014) 2019-10-08 14:15:08 +03:00
associate_accounts_spec.rb SECURITY: Require POST with CSRF token for OmniAuth request phase 2019-08-08 11:58:00 +01:00
badges_controller_spec.rb DEV: Upgrade Discourse to Rails 6 (#8083) 2019-09-12 10:41:50 +10:00
categories_controller_spec.rb FEATURE: categories can require topics have a tag from a tag group 2019-10-31 16:10:19 -04:00
category_hashtags_controller_spec.rb DEV: avoid double sign-in which can lead to flaky tests 2019-06-03 10:15:49 +10:00
clicks_controller_spec.rb
composer_controller_spec.rb
composer_messages_controller_spec.rb
csp_reports_controller_spec.rb
directory_items_controller_spec.rb
draft_controller_spec.rb FIX: under some conditions draft would say it was saving when not 2019-10-31 17:15:58 +11:00
drafts_controller_spec.rb
email_controller_spec.rb
embed_controller_spec.rb FEATURE: Overhaul of admin API key system (#8284) 2019-11-05 14:10:23 +00:00
exceptions_controller_spec.rb
export_csv_controller_spec.rb
extra_locales_controller_spec.rb FEATURE: Load translation overrides without JS `eval` 2019-11-05 19:16:38 +01:00
finish_installation_controller_spec.rb
forums_controller_spec.rb FIX: Don't use DistributedCache to store redis readonly state 2019-06-25 11:20:34 +08:00
groups_controller_spec.rb DEV: Upgrade Discourse to Rails 6 (#8083) 2019-09-12 10:41:50 +10:00
inline_onebox_controller_spec.rb
invites_controller_spec.rb UX: update invite 'not found' message 2019-07-19 16:39:44 +05:30
list_controller_spec.rb FIX: unicode group names encoded for url (#8302) 2019-11-06 14:25:45 -06:00
metadata_controller_spec.rb DEV: Upgrade Discourse to Rails 6 (#8083) 2019-09-12 10:41:50 +10:00
notifications_controller_spec.rb
offline_controller_spec.rb
omniauth_callbacks_controller_spec.rb FEATURE: Use full page redirection for all external auth methods (#8092) 2019-10-08 12:10:43 +01:00
onebox_controller_spec.rb
permalinks_controller_spec.rb
post_action_users_controller_spec.rb
post_actions_controller_spec.rb
post_readers_controller_spec.rb Add spec description 2019-09-13 17:16:35 -03:00
posts_controller_spec.rb FEATURE: Overhaul of admin API key system (#8284) 2019-11-05 14:10:23 +00:00
push_notification_controller_spec.rb
reviewable_claimed_topics_controller_spec.rb
reviewables_controller_spec.rb FEATURE: Adds a pop up that shows a more detailed score for reviewables (#8035) 2019-09-04 09:56:25 -06:00
robots_txt_controller_spec.rb Revert "FEATURE: add Noindex to robots.txt for disallowed routes" 2019-07-30 11:33:38 +10:00
safe_mode_controller_spec.rb
search_controller_spec.rb FIX: Prevent null-byte searches causing 500 error (#8226) 2019-10-22 08:44:52 -06:00
session_controller_spec.rb FEATURE: Webauthn authenticator management with 2FA login (Security Keys) (#8099) 2019-10-01 19:08:41 -07:00
similar_topics_controller_spec.rb
site_controller_spec.rb
static_controller_spec.rb DEV: Upgrade Discourse to Rails 6 (#8083) 2019-09-12 10:41:50 +10:00
steps_controller_spec.rb
stylesheets_controller_spec.rb
svg_sprite_controller_spec.rb
tag_groups_controller_spec.rb
tags_controller_spec.rb FIX: TopicQuery doesn't react well to subcategories without definitions 2019-11-02 08:34:43 +00:00
theme_javascripts_controller_spec.rb
topics_controller_spec.rb FEATURE: Overhaul of admin API key system (#8284) 2019-11-05 14:10:23 +00:00
uploads_controller_spec.rb Revert "FIX: public_file_server.enabled is false in test (#8192)" (#8196) 2019-10-16 10:39:31 +11:00
user_actions_controller_spec.rb
user_api_keys_controller_spec.rb bug: keep query params present in auth_redirect (#7923) 2019-07-23 12:16:03 -04:00
user_avatars_controller_spec.rb
user_badges_controller_spec.rb FEATURE: Overhaul of admin API key system (#8284) 2019-11-05 14:10:23 +00:00
users_controller_spec.rb FIX: Badge and user title interaction fixes (#8282) 2019-11-08 15:34:24 +10:00
users_email_controller_spec.rb
webhooks_controller_spec.rb
wizard_controller_spec.rb