enterprise-commerce icon indicating copy to clipboard operation
enterprise-commerce copied to clipboard

refactor(web): extract categories into separate index

Open ddaoxuan opened this issue 1 year ago • 1 comments

Resolves

https://github.com/orgs/Blazity/projects/3/views/3?pane=issue&itemId=61443612

Description

  • Extracts categories into its own categories index & adds as env variable MELISEARCH_CATEGORIES_INDEX

  • refactor MEILISEARCH_INDEX to env variable MEILISEARCH_PRODUCTS_INDEX

  • refactor sync api route to only include handle and id for collection

  • refactor faceting logic to work with collection.handle rather than collection.title

  • refactor types to only pick handle and id for collections on PlatformProduct

  • adds scripts for categories bulk push / products index cleanup

  • adds slugToName and nameToSlug utils to work with collection.handle

  • This needs to run the bulk cleanup against products index once happy with CR

  • Once done update env variable in vercel for products index for preview/deployment

ddaoxuan avatar Apr 30 '24 22:04 ddaoxuan

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
enterprise-commerce-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 30, 2024 10:50pm

vercel[bot] avatar Apr 30 '24 22:04 vercel[bot]