-
Notifications
You must be signed in to change notification settings - Fork 19
Cancellation part 2: Don't emit failed states on cancellation - #223
Cancellation part 2: Don't emit failed states on cancellation #223msirringhaus wants to merge 2 commits into
Conversation
@iinuwa
iinuwa
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.
Generally looks good. I'll check on that lint
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.
I was going to comment that this should only refer to system cancellation if this is being sent across the wire from credentialsd to credentialsd-ui.
But then I releasized that although is still in common, I think this whole enum belongs in credentialsd/credential_service...
Nothing to do in this PR, but it'd be good to clean this up later.
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.
Actually, I think it's fine to add this to this PR already. Let me quickly move it over.
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.
Thanks :)
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.
Follow up for later: I realized that this is still wrong: NeedsUserVerification can be emitted multiple times in a row with different arguments. I think that we should probably remove my clever discriminant thing and just be explicit.
@iinuwa
iinuwa
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.
This looks good, thank you!
This PR is good to merge, can you go ahead and so if you're at a good stopping point?
Don't emit a failed state, if the transport gets cancelled.
Additionally: Sync'ed some changes in the USB code over to NFC