Skip to content
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

Merged
merged 4 commits into from
Feb 8, 2024

Conversation

orangewolf
Copy link
Member

@orangewolf orangewolf commented Feb 8, 2024

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. Call rails 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.

@orangewolf orangewolf added the breaking-change for release notes label Feb 8, 2024
@orangewolf orangewolf added the major-ver for release notes label Feb 8, 2024
@@ -0,0 +1,7 @@
class DenormalizeStatusMessage < ActiveRecord::Migration[5.2]
def change
add_column :bulkrax_entries, :status_message, :string, default: 'Pending'
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

100%

Copy link
Contributor

@jeremyf jeremyf left a 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.

@jeremyf jeremyf merged commit 8ce15d9 into main Feb 8, 2024
6 checks passed
@jeremyf jeremyf deleted the denomalize_status_message branch February 8, 2024 14:32
jeremyf added a commit that referenced this pull request Feb 8, 2024
…_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
jeremyf added a commit that referenced this pull request Feb 8, 2024
* main:
  Denormalize Status Message to that Entry Look Up Can Be Fast (#913)
  ⚙️ Adding dry-monads as development dependency
jeremyf added a commit that referenced this pull request Feb 8, 2024
* main:
  Denormalize Status Message to that Entry Look Up Can Be Fast (#913)
  ⚙️ Adding dry-monads as development dependency
jeremyf added a commit that referenced this pull request Feb 23, 2024
* 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change for release notes major-ver for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants