Skip to content

Conversation

@ben-kalmus
Copy link
Contributor

@ben-kalmus ben-kalmus commented Nov 27, 2025

🧭 What and Why

🎟 JIRA Ticket: https://algolia.atlassian.net/browse/CMP-608

Changes included:

  • Added new runtime query parameter to compositions run endpoint: "sortBy"
  • Added new setting to Composition schema "sortingStrategy" which allows defining new sorting indices.

Stacked PRs

🧪 Test

Added test for:

  • Upsert composition with sorting strategy
  • Run a composition with a sortBy runtime query param

@algolia-bot
Copy link
Collaborator

algolia-bot commented Nov 27, 2025

✔️ Code generated!

Name Link
🪓 Triggered by 273133a38123f12b5631a034324149ea4c094f0e
🍃 Generated commit 340f18baafe4fe6ec38a69faafc77f941ec31af7
🌲 Generated branch generated/benk/sortby
📊 Benchmark results

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

Language Req/s
javascript 2610
go 2229
php 1982
csharp 1508
python 1389
java 1201
ruby 941
swift 317
scala 23

@ben-kalmus ben-kalmus changed the title feat: add sortBy query param and sortingStrategy feat(clients): add sortBy query param and sortingStrategy Nov 27, 2025
@ben-kalmus ben-kalmus changed the title feat(clients): add sortBy query param and sortingStrategy feat(specs): add sortBy query param and sortingStrategy Nov 27, 2025
@ben-kalmus ben-kalmus marked this pull request as ready for review November 27, 2025 15:19
@ben-kalmus ben-kalmus requested a review from a team as a code owner November 27, 2025 15:19
@ben-kalmus ben-kalmus requested review from Fluf22 and millotp November 27, 2025 15:19
@ClaraMuller
Copy link
Contributor

Can you wait for this PR #5683 to be merged make sure it works ?

Copy link
Contributor

@ClaraMuller ClaraMuller left a comment

Choose a reason for hiding this comment

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

Remark about the documentation.
Let's keep it minimal at this point.
Feel free to put a better phrasing is there is one

@ClaraMuller ClaraMuller requested a review from a team November 28, 2025 10:55
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.

4 participants