Skip to content

Conversation

@kai687
Copy link
Contributor

@kai687 kai687 commented Sep 19, 2025

🧭 What and Why

Initializes the :page parameter for Ruby's browse_synonyms and browse_rules parameters to avoid the issue described in #5367.

🎟 GitHub issue:

closes #5367.

Changes included:

  • Initialize :page to 0 if it's nil or false in browse_synonyms and browse_rules
  • Use the same syntax for :hitsPerPage

🧪 Test

I didn't find any tests for these methods, but it would be nice to test. No idea how.

@algolia-bot
Copy link
Collaborator

algolia-bot commented Sep 19, 2025

✔️ Code generated!

Name Link
🪓 Triggered by 66072c289b631674f776542de05f55450c320d91
🍃 Generated commit 166b70b2f420139fe3d9fa7cf0c216cf30138e13
🌲 Generated branch generated/fix/ruby-browse-helpers
📊 Benchmark results

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

Language Req/s
ruby 802

@kai687 kai687 marked this pull request as ready for review September 20, 2025 04:15
@kai687 kai687 requested a review from a team as a code owner September 20, 2025 04:15
@kai687 kai687 requested review from Fluf22 and millotp September 20, 2025 04:15
@Fluf22
Copy link
Collaborator

Fluf22 commented Sep 24, 2025

@kai687 okay to merge?

@kai687
Copy link
Contributor Author

kai687 commented Sep 24, 2025

Yes, I don't have permissions to merge here, so if you would be so kind @Fluf22

@Fluf22 Fluf22 merged commit 8c94c7e into main Sep 24, 2025
13 checks passed
@Fluf22 Fluf22 deleted the fix/ruby-browse-helpers branch September 24, 2025 08:42
@Fluf22
Copy link
Collaborator

Fluf22 commented Sep 24, 2025

I always forget, sorry
It should be deployed by eod, btw

algolia-bot added a commit that referenced this pull request Sep 24, 2025
…ated) [skip ci]

Co-authored-by: Kai Welke <[email protected]>
Co-authored-by: Thomas Raffray <[email protected]>
algolia-bot added a commit to algolia/algoliasearch-client-ruby that referenced this pull request Sep 24, 2025
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.

[bug]: browse_synonyms and browse_rules helpers in Ruby don't work

4 participants