-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Denormalize Status Message to that Entry Look Up Can Be Fast #913
Conversation
…. Today is the day
@@ -0,0 +1,7 @@ | |||
class DenormalizeStatusMessage < ActiveRecord::Migration[5.2] | |||
def change | |||
add_column :bulkrax_entries, :status_message, :string, default: 'Pending' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need the conditional to not run if we already have it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
100%
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I submitted the guard clause and things look good.
…_them_one_table_to_bring_them_all * main: Denormalize Status Message to that Entry Look Up Can Be Fast (#913) ⚙️ Adding dry-monads as development dependency
* main: Denormalize Status Message to that Entry Look Up Can Be Fast (#913) ⚙️ Adding dry-monads as development dependency
* main: Denormalize Status Message to that Entry Look Up Can Be Fast (#913) ⚙️ Adding dry-monads as development dependency
* main: ♻️ Favor member_ids_ssim over file_set_ids_ssim (#929) 🐛 Fix exporter page for Bootstrap 3 applications (#928) ♻️ Favor configuration over hard-coding (#927) Fix exporters show page - 2 (#926) Redo records with the remove_and_rerun property in the data, move individual remove and rerun to a background job (#923) Mark records as skipped if we do not see them during an import run (#922) For every importer / record combo there should be exactly one entry (#921) Add Skip to the datatabels (#920) Update Importer Index and Show Entries With Search, Filtering, Sort and More (#914) Restore rails5 support (#919) Strip out all special characters from csv headers (#918) Need to Include dry/monads in sample app to get generators working (#917) Found another place we need to include the monad lib. This time so that generators work Denormalize Status Message to that Entry Look Up Can Be Fast (#913)
Storing the status_message on the entry will do a lot of good. It is so hard to sort and search by status right now and it just doesn't have to be. The status of an Entry is especially important. This PR also makes way for the new datatables work.
When deploying this change all objects will have the status_message "Pending" until the
bulkrax:update_status_messages
rake task is run. Callrails bulkrax:update_status_messages
to do so. It touches every entry, so it could take a little while ☕These should be kept in sync pretty faithully, but we're providing a rake task for setup and just in case.