issue-6: add is_special to products sortableAttributes #7
No reviewers
Labels
No labels
bug
chore
documentation
enhancement
feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
shoppy/shoppy-index-configuration!7
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/issue-6/add-is_special-to-products-sortableattributes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
is_specialtosortableAttributesinshoppy-products.json.Meilisearch's
sortableAttributesis an explicit allow-list — a sort on an attribute outside it is rejected with400 invalid_search_sort. The BFF'sspecials_firstcategory sort sendsis_special:desc, which against the live index currently fails:Also syncs the README products-settings table with the file: it gains the
is_specialrow, and picks up theattributeranking rule that #3 added but the table never reflected.Verified on a scratch index: with this file applied,
sort: ["is_special:desc"]returns200ordered2 → 1 → 0.Note the file alone is not sufficient for the existing index —
product-syncapplies settings only on index creation, so it needs a one-off settingsPATCH(product-sync#16).Closes #6
is_specialmissing from sortable-attributes — breaks BFF category browse (400 invalid_search_sort) #9