-
Notifications
You must be signed in to change notification settings - Fork 21
feat(php): waitForTasks param for various SearchClient methods #3565
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
feat(php): waitForTasks param for various SearchClient methods #3565
Conversation
added $waitForTasks param for various methods in SearchClient
…ods-for-SearchClient
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.
all good for the other helpers, but I don't think its possible for replaceAllObjects
templates/php/api.mustache
Outdated
*/ | ||
public function replaceAllObjects($indexName, $objects, $batchSize = 1000, $requestOptions = []) | ||
public function replaceAllObjects($indexName, $objects, $batchSize = 1000, $requestOptions = [], $waitForTasks = true) |
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.
The waitForTask is required for this helper to work properly, without this it might end up in a infinite loop so I would recommend to leave it as is.
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.
Reverted! Thanks for your comment and reviewing this 🙌
…rchClient' of github.com:aykutersoy/api-clients-automation into feat/php-waitForTasks-param-for-various-methods-for-SearchClient
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.
all good :)
@millotp Amazing! Thank you very much for speedy review and approval 🙌 |
you're welcome ! I will merge both of your PR once the CI on main is finished |
…ods-for-SearchClient
… (generated) [skip ci] Co-authored-by: Aykut Ersoy <[email protected]>
…ated) algolia/api-clients-automation#3565 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Aykut Ersoy <[email protected]>
🧭 What and Why
waitForTask()
for some SearchClient method calls (ie.deleteObjects
) I thought sincechuckedBatch
is already doing this, why not add a parameter to hand over waitForTasks to Algolia client instead of us doing it manually.🎟 JIRA Ticket: -
Changes included:
$waitForTasks
paramchunkedBatch()
🧪 Test