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

Remove request-time indexing to ES #1147

Merged
merged 5 commits into from
Mar 8, 2024

Conversation

digitaldogsbody
Copy link
Member

Purpose

Stops DOI objects being reindexed during the request, and leaves the work to the existing SQS queue based index job triggered by indexable concern.

closes: Add github issue that originated this PR

Approach

Open Questions and Pre-Merge TODOs

Learning

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

  • New feature (non-breaking change which adds functionality)

  • Breaking change (fix or feature that would cause existing functionality to change)

Reviewer, please remember our guidelines:

  • Be humble in the language and feedback you give, ask don't tell.
  • Consider using positive language as opposed to neutral when offering feedback. This is to avoid the negative bias that can occur with neutral language appearing negative.
  • Offer suggestions on how to improve code e.g. simplification or expanding clarity.
  • Ensure you give reasons for the changes you are proposing.

@digitaldogsbody digitaldogsbody requested a review from a team March 5, 2024 18:21
Remove now-unused variable so Rubocop is happy - and delete the other code rather than commenting it out, to reduce the risk of accidentally re-enabling it with the variable no longer in place
@@ -65,18 +65,12 @@ def register_url
# update minted column after first successful registration in handle system

if [200, 201].include?(response.status)
success = true
if minted.blank?
success = update(minted: Time.zone.now, updated: Time.zone.now)
Copy link
Contributor

Choose a reason for hiding this comment

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

This still needs to happen though. We have to update the minted/updated date

Copy link
Member Author

@digitaldogsbody digitaldogsbody Mar 7, 2024

Choose a reason for hiding this comment

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

I've reinstated this, but without the variable assignment (so rubocop doesn't get mad)

@digitaldogsbody digitaldogsbody requested review from a team and richardhallett March 7, 2024 12:11
@digitaldogsbody digitaldogsbody merged commit 3903012 into master Mar 8, 2024
13 checks passed
@digitaldogsbody digitaldogsbody deleted the remove-request-time-indexing branch March 8, 2024 11:27
Copy link

sentry-io bot commented Mar 12, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ ActiveRecord::Deadlocked: Mysql2::Error: Deadlock found when trying to get lock; try restarting transaction DataciteDoisController#update View Issue
  • ‼️ ActiveRecord::Deadlocked: Mysql2::Error: Deadlock found when trying to get lock; try restarting transaction DataciteDoisController#create View Issue

Did you find this useful? React with a 👍 or 👎

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.

None yet

3 participants