Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: keys migration (document deserialization error) #624

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mikeplotean
Copy link
Contributor

@mikeplotean mikeplotean commented Jul 16, 2024

Description

Introduces keys migration to convert jwk keys documents to new format.

Fixes #625

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • I have performed a self-review of my code
  • If it is a core feature, I have added thorough tests
  • Do we need to implement analytics?
  • Will this be part of a product update? If yes, please write one phrase about this update.
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link

@waltkb
Copy link
Contributor

waltkb commented Jul 18, 2024

Shouldn't it maybe only be executed on demand?

@mikeplotean
Copy link
Contributor Author

Shouldn't it maybe only be executed on demand?

it's executed only on data matching the criteria (in this case, jwk keyType having the jwk field as a string). what do you mean by demand?

@mikeplotean mikeplotean force-pushed the fix/keys-migration branch 2 times, most recently from ee19728 to bdcbb99 Compare August 5, 2024 18:42
@waltkb
Copy link
Contributor

waltkb commented Aug 7, 2024

WalletKeys.selectAll(), each of which it will do some JSON operation on to check if it's JWK document or JWK object

Copy link

sonarcloud bot commented Sep 20, 2024

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.

Can't use the default onboarding did to claim credentials
2 participants