Skip to content

feat(catalog): seed and auto-import default blueprint and module catalog sources on release/2.4.1 - #6

Merged
JLCode-tech merged 1 commit into
mainfrom
feat/default-catalog-sources-seed
Oct 29, 2026
Merged

JLCode-tech merged 1 commit into
mainfrom
feat/default-catalog-sources-seed

Conversation

@JLCode-tech

Copy link
Copy Markdown
Owner

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:

  1. Default Module Library Ref (backend/services/defaults_service.py):
    • Updates module_library.git_ref system default from release/2.2 to release/2.4.1.
    • Migrates existing release/2.2 rows to release/2.4.1 during seed_defaults(db).
  2. Default Catalog Blueprint & Module Sources (backend/services/blueprint_default_source_service.py):
    • Adds DEFAULT_CATALOG_BLUEPRINT_SOURCES (bnk-forge-modules-shared and bnk-forge-modules-aws-eks on release/2.4.1) and ensure_default_catalog_blueprint_sources(db).
    • Adds DEFAULT_CATALOG_MODULE_SOURCES (bnk-forge-modules-aws-eks modules, bnk-forge-modules-shared modules, and official-bnk-forge-modules on release/2.4.1) and ensure_default_catalog_module_sources(db).
    • Preserves user-deactivated (is_active=False) sources and normalizes URLs for idempotent matching.
  3. Auto-Import Valid Default Blueprints (backend/services/blueprint_sync_service.py):
    • Adds auto_import: bool = False to BlueprintSyncService.sync_git_source(...).
    • Creates valid discovered manifests with release_state="imported", is_active=True, and promotes existing discovered + valid releases with matching SHA256 to imported + is_active=True.
  4. Startup Seeding (backend/startup_steps.py):
    • Ensures default catalog blueprint and module sources in seed_defaults_step() and syncs active default blueprint sources with auto_import=True (which also auto-syncs their linked module packs into module_library).

@JLCode-tech
JLCode-tech merged commit 1363ee4 into main Oct 29, 2026
29 checks passed
@JLCode-tech
JLCode-tech deleted the feat/default-catalog-sources-seed branch October 29, 2026 01:56
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.

1 participant