discourse/lib/tasks
Martin Brennan edec941a87
FIX: Better tracking of topic visibility changes (#26709)
This commit introduces a few changes as a result of
customer issues with finding why a topic was relisted.
In one case, if a user edited the OP of a topic that was
unlisted and hidden because of too many flags, the topic
would get relisted by directly changing topic.visible,
instead of going via TopicStatusUpdater.

To improve tracking we:

* Introduce a visibility_reason_id to topic which functions
  in a similar way to hidden_reason_id on post, this column is
  set from the various places we change topic visibility
* Fix Post#unhide! which was directly modifying topic.visible,
  instead we use TopicStatusUpdater which sets visibility_reason_id
  and also makes a small action post
* Show the reason topic visibility changed when hovering the
  unlisted icon in topic status on topic titles
2024-04-29 10:34:46 +10:00
..
add_topic_to_quotes.rake
admin.rake
annotate.rake DEV: Extensively use `exception: true` in `system()` (#25911) 2024-02-27 11:33:28 +01:00
api.rake
assets.rake DEV: Drop workbox dependency (#26735) 2024-04-24 10:19:12 +01:00
auto_annotate_models.rake
autospec.rake
avatars.rake
backfill.thor
categories.rake
cdn.rake
compatibility.rake DEV: Introduce rake task to validate discourse-compatibility file (#26158) 2024-03-13 13:57:41 +00:00
db.rake DEV: Extensively use `exception: true` in `system()` (#25911) 2024-02-27 11:33:28 +01:00
destroy.rake
dev.rake
docker.rake
documentation.rake
emails.rake FIX: in EmailSettingsValidator, unset smtp authentication when there's no user and password 2024-04-19 14:02:22 -04:00
emoji.rake DEV: Remove direct minitest dependency to appease ruby-lsp (#26056) 2024-03-06 15:41:14 +00:00
export.rake
groups.rake
hashtags.rake
i18n.rake
images.rake
import.rake DEV: Import script should insert more data into `user_stats` table (#26551) 2024-04-11 14:05:21 +02:00
incoming_emails.rake
integration.rake
javascript.rake FIX: Better tracking of topic visibility changes (#26709) 2024-04-29 10:34:46 +10:00
log.rake
maxminddb.rake FIX: `maxmind:refresh` does not respect `refresh_maxmind_db_during_precompile_days` (#26457) 2024-04-02 14:25:05 +08:00
plugin.rake DEV: Suppress verbose command failure output in plugin:turbo_spec (#25952) 2024-02-29 14:35:31 +10:00
populate.rake
populate.thor
posts.rake DEV: Allow rebakes to generate optimized images at the same time 2024-01-16 14:33:16 +01:00
profile.rake
qunit.rake DEV: Restore qunit 'tap' reporter, but collapse verbose output in CI (#26484) 2024-04-03 10:22:20 +01:00
redis.rake
release_note.rake
revisions.rake
rspec.rake
s3.rake
scheduler.rake FEATURE: call hub API to update Discourse discover enrollment. (#25634) 2024-02-23 11:42:28 +05:30
search.rake
site.rake
site_settings.rake
smoke_test.rake DEV: Extensively use `exception: true` in `system()` (#25911) 2024-02-27 11:33:28 +01:00
svg_icons.rake DEV: Extensively use `exception: true` in `system()` (#25911) 2024-02-27 11:33:28 +01:00
svg_sprites.rake
tags.rake
themes.rake FIX: `themes:update` rake task not rolling back transaction on error (#26750) 2024-04-25 15:19:23 +08:00
topics.rake
turbo.rake
typepad.thor
uploads.rake DEV: Rename with_secure_uploads? to should_secure_uploads? on Post (#26549) 2024-04-09 13:23:11 +10:00
users.rake
version_bump.rake DEV: Don't create backups during version bumps (#25484) 2024-01-30 11:41:15 -07:00