Repository navigation
feat(catalog): seed and auto-import default blueprint and module catalog sources on release/2.4.1 - #6
Merged
Conversation
…log sources on release/2.4.1
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.
Summary
Ensures every new and upgraded BNK Forge installation automatically receives and imports the default external Blueprint Catalog sources, Module Catalog sources, and module packs out-of-the-box on
release/2.4.1:backend/services/defaults_service.py):module_library.git_refsystem default fromrelease/2.2torelease/2.4.1.release/2.2rows torelease/2.4.1duringseed_defaults(db).backend/services/blueprint_default_source_service.py):DEFAULT_CATALOG_BLUEPRINT_SOURCES(bnk-forge-modules-sharedandbnk-forge-modules-aws-eksonrelease/2.4.1) andensure_default_catalog_blueprint_sources(db).DEFAULT_CATALOG_MODULE_SOURCES(bnk-forge-modules-aws-eks modules,bnk-forge-modules-shared modules, andofficial-bnk-forge-modulesonrelease/2.4.1) andensure_default_catalog_module_sources(db).is_active=False) sources and normalizes URLs for idempotent matching.backend/services/blueprint_sync_service.py):auto_import: bool = FalsetoBlueprintSyncService.sync_git_source(...).release_state="imported",is_active=True, and promotes existingdiscovered+validreleases with matching SHA256 toimported+is_active=True.backend/startup_steps.py):seed_defaults_step()and syncs active default blueprint sources withauto_import=True(which also auto-syncs their linked module packs intomodule_library).