Commit Graph

4 Commits

Author SHA1 Message Date
Jorge Manrubia dd42f0a098 Add script to reindex stale search records (#2843)
The data import path (Account::DataTransfer) uses insert_all! which
bypasses ActiveRecord callbacks, so imported cards and comments never
get search records created and are invisible to search and card-table
filtering.

This script reindexes all published cards and comments created before
a cutoff date (default 2026-04-01). The reindex method is an upsert
so already-indexed records get a harmless update.

Usage:
  bin/rails runner script/maintenance/reindex_stale_search_records.rb
  bin/rails runner script/maintenance/reindex_stale_search_records.rb 2026-01-01
2026-04-14 18:37:52 +02:00
Jorge Manrubia 9cf223aea1 Fix path 2025-12-03 23:53:18 +01:00
Jorge Manrubia efc809c23e Script to fix misassigned tags
See https://github.com/basecamp/fizzy/pull/1879
2025-12-03 23:46:08 +01:00
Mike Dalessio db6b700da8 Clean up the /scripts directory
Not removing anything, just organizing scripts into subdirectories to
make it a bit more readable.
2025-07-21 09:07:15 -04:00