Repository navigation
Scope OpenSearch/Elasticsearch index prefix to project name - #111
Merged
Merged
Conversation
Multiple MageBox projects share one Docker search engine instance, so a hardcoded 'magento2' prefix causes index collisions across projects. - new.go: pass projectName as index prefix in both the interactive wizard (displayed setup:install command) and the quick-install execution path - docs: replace 'magento2' prefix with project-name placeholders in opensearch.md, search.md, and quick-start.md; add warning callout explaining why a project-scoped prefix is required
Contributor
|
@peterjaap I'm fine with merging it |
Collaborator
|
Great stuff |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Multiple MageBox projects share a single OpenSearch/Elasticsearch Docker instance (port 9200). The docs and
magebox newwere hardcodingmagento2as the index prefix everywhere. When two projects use the same prefix, a reindex on one project overwrites the indices of the other.Changes
cmd/magebox/new.gosetup:installcommand now uses the project name as--opensearch-index-prefix/--elasticsearch-index-prefix--quickflag): the actualsetup:installexecution now passes the project name as the index prefixDocs
vitepress/services/opensearch.md— replacedmagento2withmyprojectin all prefix examples; added:::warningcallout explaining the shared-instance problemvitepress/guide/search.md— same warning callout + replacedmagento2withmyprojectin all Magento configuration examplesvitepress/guide/quick-start.md— replaced--opensearch-index-prefix=magento2withmystore(matching the example project name used throughout that page)