Skip to content

[DVD-111818] Add op_type and conflicts kwargs to reindex_from_local / reindex_from_remote - #82

Merged
olly-chadwick-carwow merged 4 commits into
masterfrom
DVD-111818-add-rake-task-for-reindexing
May 5, 2026
Merged

[DVD-111818] Add op_type and conflicts kwargs to reindex_from_local / reindex_from_remote#82
olly-chadwick-carwow merged 4 commits into
masterfrom
DVD-111818-add-rake-task-for-reindexing

Conversation

@olly-chadwick-carwow

@olly-chadwick-carwow olly-chadwick-carwow commented May 1, 2026

Copy link
Copy Markdown
Contributor

Kanban Card

The reindex_from_local / reindex_from_remote methods added in #79 hard-coded the request body to Elasticsearch's defaults: op_type: 'index' (overwrite) and conflicts: 'abort'.

We want to use different values for these (op_type: 'create' and conflicts: 'proceed'), so adding optional kwargs to allow for this. Both kwargs default to nil and are omitted from the request body when nil, so existing callers see no behaviour change.

@olly-chadwick-carwow olly-chadwick-carwow changed the title Add optional arguments to reindexing methods for op_type and conflicts [DVD-111818] Add op_type and conflicts kwargs to reindex_from_local / reindex_from_remote May 1, 2026
Comment thread lib/zelastic/indexer.rb
@@ -23,18 +23,18 @@ def initialize(config)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Changes in this file are just rubocop fixes.

@@ -5,9 +5,9 @@
RSpec.describe Zelastic::Indexer do

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Changes in this file are just rubocop fixes.

Comment thread .github/workflows/ci.yml
@@ -14,10 +14,10 @@ jobs:
strategy:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There was a conflict between the latest version of the ubuntu-runner on CI and the ES versions we had pinned in the CI test config.

I have bumped to later versions of ES that have a fix for this conflict.

@olly-chadwick-carwow
olly-chadwick-carwow marked this pull request as ready for review May 1, 2026 15:40
@olly-chadwick-carwow
olly-chadwick-carwow requested a review from a team as a code owner May 1, 2026 15:40
@olly-chadwick-carwow
olly-chadwick-carwow merged commit 44db2b2 into master May 5, 2026
3 checks passed
@olly-chadwick-carwow
olly-chadwick-carwow deleted the DVD-111818-add-rake-task-for-reindexing branch May 5, 2026 08:22
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.

2 participants