-
Notifications
You must be signed in to change notification settings - Fork 83
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
Declutter issuance&presentation protocols #945
Conversation
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Codecov Report
@@ Coverage Diff @@
## main #945 +/- ##
==========================================
+ Coverage 44.25% 44.44% +0.19%
==========================================
Files 418 417 -1
Lines 29311 28974 -337
Branches 6262 6177 -85
==========================================
- Hits 12972 12878 -94
+ Misses 12513 12297 -216
+ Partials 3826 3799 -27
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
a4b87f5
to
abbfb57
Compare
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
i'm not too familar with the usage of the actions flows to fully review... so consider this as a half-review. but lgtm other than above comments |
@gmulhearn okay, just for extra context, those "actions" were an obscure way to interact with state machines. For both processing incoming messages and also triggering "local actions" - for example sending response to counterparty. So where previous you would have
(in fact now we simply have every "action" replaced by a appropriate method on both handler and state machine level. There's no more universal |
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
pub fn issuer_find_messages_to_handle( | ||
sm: &Issuer, | ||
messages: HashMap<String, AriesMessage>, | ||
) -> Option<(String, AriesMessage)> { |
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.
Are there any plans regarding removing stuff like this? IMO the protocol should have nothing to do with finding messages and even if we don't remove the mediated connection stuff, perhaps we can separate concerns a bit better?
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.
Definitely, it's only exists because:
update_state
functions inlibvcx_core
, and these are also relied on in NodeJS tests- integration tests for
aries-vcx
itself - as soon as IO removal is completed, and tests are not using mediated connection anymore (which will be possible with Remove msg-sending IO for issuer and holder #946 merged) we can get back to this, and at very least lift these*_find_messages_to_handle
code-smells a level up tolibvcx_core
, where it can be (or not) dealt with separately.
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Thanks for reviews, everything has been addressed, please approve if all looks good |
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Signed-off-by: Patrik Stas <patrik.stas@absa.africa>
Changes
mediated_holder.rs
,mediated_issuer.rs
etc. out of state machine/handlers code itselfNext steps: