Skip to content

feat: add marketplace upgrade migration path#532

Closed
dangelo352 wants to merge 1 commit into
Commitlabs-Org:masterfrom
dangelo352:feature/marketplace-upgrade-466
Closed

feat: add marketplace upgrade migration path#532
dangelo352 wants to merge 1 commit into
Commitlabs-Org:masterfrom
dangelo352:feature/marketplace-upgrade-466

Conversation

@dangelo352

Copy link
Copy Markdown

Summary

  • add marketplace CURRENT_VERSION storage plus get_version
  • add admin-gated upgrade and migrate entrypoints with invalid hash/version handling
  • backfill legacy marketplace instance keys during migration and document the procedure

Fixes #466

Tests

  • CARGO_TARGET_DIR=/tmp/commitlabs-marketplace-upgrade-target cargo test -p commitment-marketplace migrate -- --nocapture
  • CARGO_TARGET_DIR=/tmp/commitlabs-marketplace-upgrade-target cargo test -p commitment-marketplace upgrade -- --nocapture
  • CARGO_TARGET_DIR=/tmp/commitlabs-marketplace-upgrade-target cargo test -p commitment-marketplace initialize_marketplace -- --nocapture
  • CARGO_TARGET_DIR=/tmp/commitlabs-marketplace-upgrade-target cargo test -p commitment-marketplace -- --nocapture

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.

Add upgrade/migrate and version storage to commitment_marketplace

2 participants