Skip to content

Create subject counts on collection#4625

Open
yuenmichelle1 wants to merge 6 commits into
masterfrom
create-subject-counts-on-collection
Open

Create subject counts on collection#4625
yuenmichelle1 wants to merge 6 commits into
masterfrom
create-subject-counts-on-collection

Conversation

@yuenmichelle1
Copy link
Copy Markdown
Collaborator

@yuenmichelle1 yuenmichelle1 commented May 20, 2026

Create a counter_cache column (subjects_count) in order to filter out collections by number of subjects.

TODO after merge, deploy, migration

Review checklist

  • First, the most important one: is this PR small enough that you can actually review it? Feel free to just reject a branch if the changes are hard to review due to the length of the diff.
  • If there are any migrations, will they the previous version of the app work correctly after they've been run (e.g. the don't remove columns still known about by ActiveRecord).
  • If anything changed with regards to the public API, are those changes also documented in the apiary.apib file?
  • Are all the changes covered by tests? Think about any possible edge cases that might be left untested.

Comment thread db/migrate/20260520193213_add_subjects_count_to_collections.rb
Comment thread lib/tasks/collections.rake
@yuenmichelle1 yuenmichelle1 marked this pull request as ready for review June 2, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant