2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-03-03 22:05:52 +08:00
discourse/db/post_migrate
Krzysztof Kotlarek 53d799eb8b
DEV: Remove reviewable_ui_refresh feature flag and legacy code (#36752)
Following PR #36711 which enabled the refreshed review UI for all users, this commit removes the old feature flag infrastructure and cleans up legacy code that is no longer needed.

Backend Changes:
  - Removed ReviewableActionLog model and its spec entirely
  - Removed CalculateFinalStatusFromLogs service and spec
  - Removed site settings: force_old_reviewable_ui, reviewable_old_moderator_actions
  - Simplified ReviewableActionBuilder — stripped out legacy action-building methods (build_user_actions_bundle, build_post_actions_bundle, build_new_separated_actions)
  - Cleaned up reviewable models (ReviewableFlaggedPost, ReviewablePost, ReviewableQueuedPost, ReviewableUser, Chat::ReviewableMessage, ReviewablePostVotingComment) — removed unused/legacy action definitions
  - Removed legacy specs for action builder, action logs, flagged post actions, post actions, user actions, and status-from-logs
  - Updated system tests and page objects to reflect the new UI structure

  Frontend Changes:

  - Deleted legacy components: reviewable-item.gjs, reviewable-user.gjs, review-index-legacy.gjs
  - Renamed reviewable-refresh/ → reviewable/ — moved all sub-components (created-by, flagged-post, item, post, queued-post, topic-link, user, etc.) out of the refresh directory into the canonical reviewable/ namespace
  - Simplified reviewable/item.gjs — removed feature flag conditionals and legacy code paths
  - Cleaned up review/index.gjs and review/show.gjs templates — removed branching between old/new UI
  - Updated plugin components (chat, AI, post-voting) to import from reviewable/ instead of reviewable-refresh/
  - Removed acceptance tests (review-test.js) replaced by system tests
  - Renamed and updated integration tests from reviewable-refresh/* to reviewable/*

Plan for next PRs:
- Move plugins from Pages::RefreshedReview to Pages::Review 
- Move plugins to import from `reviewable/` and not `refreshed-reviewable/`
- Move reviewable-user.js import in plugin to use `reviewable/user.js`
- Remove unused settings like `reviewable_old_moderator_actions` from plugins
- Delete `Pages::RefreshedReview`
- Delete `reviewable-refresh/` directory
- Delete `reviewable-user.js` component
- Delete `reviewable_old_moderator_actions` site setting

Plugins PRs:
- https://github.com/discourse/discourse-akismet/pull/203
- https://github.com/discourse/discourse-antivirus/pull/98
- https://github.com/discourse/discourse-category-experts/pull/223
2026-02-23 10:45:36 +08:00
..
20250304074934_backfill_api_key_scope_modes.rb DEV: Backfill API key scope modes (#31606) 2025-03-11 10:00:27 +08:00
20250305233449_populate_type_source_in_reviewable.rb FIX: Ensure the reviewable.type_source migration is run post-deploy. (#31663) 2025-03-06 12:12:46 +11:00
20250513161753_rename_by_id_group.rb FEATURE: Add the group show endpoint to search groups by id instead of only the slug name (#32442) 2025-05-13 14:22:06 -05:00
20250526063633_copy_add_groups_to_about_component_settings.rb FIX: latest duplicated groups to about components (#33003) 2025-06-04 09:48:18 +08:00
20250702082232_deprecate_external_system_avatars_enabled.rb DEV: Deprecate external_system_avatars_enabled (#33436) 2025-07-04 16:02:04 +08:00
20250708031631_remove_flush_timings_secs_setting.rb DEV: Remove flush_timings_secs setting (#33505) 2025-07-08 11:56:33 +08:00
20250709051949_disable_gravatar_enabled_if_unconfigured.rb DEV: Add a Gravatar enable/disable toggle (#33533) 2025-07-10 15:09:32 +08:00
20250710074447_clear_backup_frequency_if_disabled.rb DEV: Remove automatic_backups_enabled setting (#33558) 2025-08-11 14:56:38 +08:00
20250804021210_drop_enable_experimental_sidebar_user_option.rb DEV: Drop old enable_experimental_sidebar user option (#34052) 2025-08-04 13:48:57 +10:00
20250812033430_replace_null_with_zero_in_backup_frequency.rb FIX: Use a valid value for disabling backups using backup_frequency (#34245) 2025-08-12 13:19:56 +08:00
20250821150220_remove_use_overhauled_theme_color_palette_setting.rb DEV: Remove dual mode support for palettes and drop theme-owned palettes (#34467) 2025-08-26 06:24:11 +03:00
20250821155127_drop_dark_hex_from_color_scheme_color.rb DEV: Remove dual mode support for palettes and drop theme-owned palettes (#34467) 2025-08-26 06:24:11 +03:00
20250821155615_drop_theme_color_scheme.rb DEV: Remove dual mode support for palettes and drop theme-owned palettes (#34467) 2025-08-26 06:24:11 +03:00
20251029072625_delete_old_watched_precedence_setting.rb FIX: Possible null column for watched precedence over muted migration (#35815) 2025-11-05 10:12:21 +10:00
20251127001422_remove_orphaned_reviewable_claimed_topics.rb FIX: UserDestroyer should unclaim any claimed reviewables. (#36277) 2025-11-27 13:54:48 +11:00
20260108044513_drop_imap_sync_logs.rb DEV: Remove IMAP support in Discourse (#37002) 2026-01-12 10:07:26 +10:00
20260112082200_drop_reviewable_action_logs.rb DEV: Remove reviewable_ui_refresh feature flag and legacy code (#36752) 2026-02-23 10:45:36 +08:00