Repository navigation
Fix dynamic search rule actions for v1.54 - #1282
Conversation
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (1)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe ChangesSearch rule actions
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~5 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The updated test exercises the keyed actions shape through the client. No concrete merge-blocking issue is established by the available evidence. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The keyed action format matches the intended server update without introducing a new execution path or additional client privileges. Risk is limited to the public contract change: compatibility with older responses and server-side failure behavior remain unverified. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@Strift Please review. Issue is due to compatibility Meilisearch v1.54 changed the actions field in dynamic search rules from a flat array to an object with two optional keys: pin and scale, that's why the tests are failing. The tests pass against v1.53. This fix is good to go for v1.54 but will fail for v1.53. Let me know what you think. |
The documented payload still sent the old selector/action array, which Meilisearch rejects.
Strift
left a comment
There was a problem hiding this comment.
hi @vivek378521 & thanks for your PR 🙌
Pull Request
Related issue
Fixes #1281
What does this PR do?
v1.54 changed
actionsfrom an action list to an object keyed by action type. For pinning, the old selector/action pair becomes{"pin": [{"id", "position", "indexUid"}]}PR checklist
Please check if your PR fulfills the following requirements:
Thank you so much for contributing to Meilisearch!
Summary by CodeRabbit
pinentry, with the applicable product, document, and position specified in its list. This updates the structure used when defining dynamic search rules and examples, keeping action types distinct while preserving the pinning details in the updated format.