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

FIX Add default batch size when creating IndexJob #74

Merged
merged 1 commit into from
Jul 20, 2022

Conversation

ssmarco
Copy link
Contributor

@ssmarco ssmarco commented Jul 15, 2022

Apply a similar strategy from ReindexJob where it uses the default batch size from configuration for null values.

This solves recent issue when publishing a single page does not send the document to Elastic endpoint due to $batch_size being null as a 3rd param of array_splice and returns an empty array as a result

Apply a similar strategy from ReindexJob where it uses the default
batch size from configuration for null values.
This solves recent issue when publishing a single page does not
send the document to Elastic endpoint due to $batch_size being null
as a 3rd param of array_splice returns an empty array as a result
Copy link
Contributor

@andrewandante andrewandante left a comment

Choose a reason for hiding this comment

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

Looks simple enough and also looks important ✅

@maxime-rainville maxime-rainville merged commit 06832e8 into silverstripe:1 Jul 20, 2022
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