-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
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) |
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.
This still needs to happen though. We have to update the minted/updated date
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've reinstated this, but without the variable assignment (so rubocop doesn't get mad)
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
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: