-
-
Notifications
You must be signed in to change notification settings - Fork 138
Mark Keysets as Deleted. #797
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
base: main
Are you sure you want to change the base?
Conversation
callebtc
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but one outstanding question regarding the removed line await self.load_keysets_from_db()
what's the justification for that?
@callebtc I replaced "await self.load_keysets_from_db()" because we now build self.keysets inline with the already-fetched list (keysets_in_db) filtered by k.unit == self.unit and k.active. |
|
Hi @KvngMikey, sorry for getting back to you late. We have a crud called |
hi @callebtc , thanks for checking my work, I have addressed your request now. |
|
we talked about this off band: there should probably be a boolean |
yes, i remember and i'm working on it. |
9a9688c to
dfd79ed
Compare
|
@callebtc PR updated, ready for re-review, thank you. |
Fixes #731
Summary
This PR fixes the wallet behavior when a keyset disappears from a mint's
/keysetsresponse.Changes
load_mint_keysetsto mark missing keysets as inactive.update_keyset_activeincrud.pyto use named SQL parameters for SQLAlchemy async compatibility.pytest tests/wallet/test_wallet.py -k keyset(all keyset tests now pass).