-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate credential and parameter sets to have schemaVersion (#1218)
* Migrate credentials Migrate credentials during porter storage migrate: * Track credential-set schema in schema.json under the "credentials", e.g. "credentials": "cnab-credentialsets-1.0.0-DRAFT-b6c701f" * A migration will upgrade everything that is out of date, if claims fail, it will keep migrating credentials then report all failures. * Removed unused credential set migration from yaml to json. We haven't used it for months and it isn't possible anymore with the filesystem store / crud.Store interface. * Renamed mybuns testdata to mybun for consistency and decency. * Removed extra exclamation points in the migration logs. Now that we are logging to a file, and using a dedicated command, grabbing people's attention isn't as critical. * Tweak when we log Migration Complete/Failed and the log file path so that it is captured appropriately in the console and in the log file without duplication. * Aggregate errors from migration so that we continue on error but report that an error occurred during migration. * Implement interface methods in storage.Manager so that our custom HandleConnect is called exactly when we want it, instead of the HandleConnect of our datastore. * Set schemaVersion on new credential sets * Set schemaVersion on new parameter sets * Migrate parameter sets during porter storage migrate * Incorporate review feedback
- Loading branch information
Showing
46 changed files
with
864 additions
and
512 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
{"claims":"cnab-claim-1.0.0-DRAFT+b5ed2f3","credentials":"cnab-credentials-1.0.0-DRAFT-b6c701f"} | ||
{ | ||
"claims": "cnab-claim-1.0.0-DRAFT+b5ed2f3", | ||
"credentials": "cnab-credentialsets-1.0.0-DRAFT+b6c701f", | ||
"parameters": "cnab-parametersets-1.0.0-DRAFT+TODO" | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.