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(specs): built-in ops accept also int #3450

Merged
merged 5 commits into from
Jul 31, 2024
Merged

Conversation

kai687
Copy link
Contributor

@kai687 kai687 commented Jul 30, 2024

🧭 What and Why

Make search.BuiltInOperation accept also integers for values.
All built-in operations accept integers, only some also accept strings (Add, Remove, AddUnique). Currently, value only accepts strings, which makes partial updates with Increment, etc. fail.

@algolia-bot
Copy link
Collaborator

algolia-bot commented Jul 30, 2024

✔️ Code generated!

Name Link
🪓 Triggered by 5b7fd3210be6b042dd380fb526c5db39ff9bbfa9
🍃 Generated commit 31d1dbd22f52793f77603b95e3470bd0887b0af9
🌲 Generated branch generated/fix/partial-update-ops
📊 Benchmark results

Benchmarks performed on the method using a mock server, the results might not reflect the real-world performance.

Language Rate
javascript 1373
php 1358
csharp 1137
java 932
ruby 866
swift 745
python 727
go 461
kotlin 398

Copy link

@kai687 kai687 marked this pull request as ready for review July 31, 2024 09:33
@kai687 kai687 requested a review from a team as a code owner July 31, 2024 09:33
@millotp millotp merged commit e982ddf into main Jul 31, 2024
21 checks passed
@millotp millotp deleted the fix/partial-update-ops branch July 31, 2024 09:34
algolia-bot added a commit that referenced this pull request Jul 31, 2024
Co-authored-by: Kai Welke <kai.welke@algolia.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
algolia-bot added a commit to algolia/algoliasearch-client-csharp that referenced this pull request Jul 31, 2024
algolia/api-clients-automation#3450

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Kai Welke <kai.welke@algolia.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
algolia-bot added a commit to algolia/algoliasearch-client-dart that referenced this pull request Jul 31, 2024
algolia/api-clients-automation#3450

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Kai Welke <kai.welke@algolia.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
algolia-bot added a commit to algolia/algoliasearch-client-go that referenced this pull request Jul 31, 2024
algolia/api-clients-automation#3450

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Kai Welke <kai.welke@algolia.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
algolia-bot added a commit to algolia/algoliasearch-client-java that referenced this pull request Jul 31, 2024
algolia/api-clients-automation#3450

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Kai Welke <kai.welke@algolia.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
algolia-bot added a commit to algolia/algoliasearch-client-javascript that referenced this pull request Jul 31, 2024
algolia/api-clients-automation#3450

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Kai Welke <kai.welke@algolia.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
algolia-bot added a commit to algolia/algoliasearch-client-kotlin that referenced this pull request Jul 31, 2024
algolia/api-clients-automation#3450

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Kai Welke <kai.welke@algolia.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
algolia-bot added a commit to algolia/algoliasearch-client-php that referenced this pull request Jul 31, 2024
algolia/api-clients-automation#3450

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Kai Welke <kai.welke@algolia.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
algolia-bot added a commit to algolia/algoliasearch-client-python that referenced this pull request Jul 31, 2024
algolia/api-clients-automation#3450

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Kai Welke <kai.welke@algolia.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
algolia-bot added a commit to algolia/algoliasearch-client-ruby that referenced this pull request Jul 31, 2024
algolia/api-clients-automation#3450

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Kai Welke <kai.welke@algolia.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
algolia-bot added a commit to algolia/algoliasearch-client-scala that referenced this pull request Jul 31, 2024
algolia/api-clients-automation#3450

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Kai Welke <kai.welke@algolia.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
algolia-bot added a commit to algolia/algoliasearch-client-swift that referenced this pull request Jul 31, 2024
algolia/api-clients-automation#3450

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Kai Welke <kai.welke@algolia.com>
Co-authored-by: Pierre Millot <pierre.millot@algolia.com>
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.

3 participants