discourse/spec
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
..
components FEATURE: support to mute all categories by default. (#8295) 2019-11-08 08:28:11 +05:30
fabricators FEATURE: Webauthn authenticator management with 2FA login (Security Keys) (#8099) 2019-10-01 19:08:41 -07:00
fixtures FEATURE: add SES spam header to recognised spam headers (#8254) 2019-10-28 12:46:53 -04:00
helpers FEATURE: Load translation overrides without JS eval 2019-11-05 19:16:38 +01:00
import_export DEV: clean up dependencies in spec 2019-10-02 14:50:54 +10:00
integration UX: tag input suggests required tags if none have been selected 2019-11-04 16:51:54 -05:00
integrity DEV: Update markdown-it from 8.4.1 to 10.0.0 (#8164) 2019-10-08 13:00:22 +02:00
jobs FIX: Badge and user title interaction fixes (#8282) 2019-11-08 15:34:24 +10:00
lib FIX: skip invalid URLs when checking for audio/video in search blurbs 2019-11-06 10:32:15 -05:00
mailers PERF: cache new users counts in summary emails 2019-10-25 16:33:36 -04:00
models FIX: Badge and user title interaction fixes (#8282) 2019-11-08 15:34:24 +10:00
multisite DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
requests FIX: Badge and user title interaction fixes (#8282) 2019-11-08 15:34:24 +10:00
serializers FIX: Ensure enforce 2FA for staff satisfied by security keys (#8316) 2019-11-08 15:11:53 +10:00
services FIX: Badge and user title interaction fixes (#8282) 2019-11-08 15:34:24 +10:00
support FIX: DistributedMutex (#7953) 2019-08-01 09:12:05 +01:00
tasks FEATURE: Remove attachments and truncate raw field for incoming emails (#8253) 2019-10-30 16:54:35 +11:00
views/omniauth_callbacks FEATURE: Use full page redirection for all external auth methods (#8092) 2019-10-08 12:10:43 +01:00
rails_helper.rb DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00