Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(web): extract categories into separate index #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ddaoxuan
Copy link
Collaborator

@ddaoxuan ddaoxuan commented Apr 30, 2024

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

Copy link

vercel bot commented Apr 30, 2024

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

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.

None yet

1 participant