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

move common stuff from the messages crate to shared_vcx #826

Merged
merged 3 commits into from
May 8, 2023

Conversation

swaptr
Copy link
Contributor

@swaptr swaptr commented May 3, 2023

Fixes #821

@Patrik-Stas
Copy link
Contributor

hi @swaptr note that some of the commits in the PR are missing DCO signoff

@swaptr
Copy link
Contributor Author

swaptr commented May 3, 2023

Yes, I am fixing that.

Copy link
Contributor

@bobozaur bobozaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a small thing, and it is my fault for not mentioning this in the issue (I'll add it now).
The NoDecorators name was more contextual to the messages crate.

The type is really more of a Nothing type from a serde standpoint (at least serde_json, which is what we care about), meaning that it's deserialized from thin air and serialized into no additional data (which is what we want in the way we use it as a dummy decorator placeholder).

So I suggest to rename it, maybe something like SerdeIgnored and perhaps add an alias in the messages crate to maintain the NoDecorators naming as it's clearer in that context what it is for.

Signed-off-by: Swapnil Tripathi <swapnil06.st@gmail.com>
Signed-off-by: Swapnil Tripathi <swapnil06.st@gmail.com>
@swaptr
Copy link
Contributor Author

swaptr commented May 3, 2023

Done. I added some comments, lmk if you feel its unnecessary or verbose.

@bobozaur
Copy link
Contributor

bobozaur commented May 3, 2023

Done. I added some comments, lmk if you feel its unnecessary or verbose.

Not at all! Comments are my spirit animal (??? 😆 ).

@codecov-commenter
Copy link

codecov-commenter commented May 3, 2023

Codecov Report

Merging #826 (3c71eca) into main (81e1487) will increase coverage by 0.00%.
The diff coverage is 50.00%.

@@           Coverage Diff           @@
##             main     #826   +/-   ##
=======================================
  Coverage   45.16%   45.17%           
=======================================
  Files         408      409    +1     
  Lines       33468    33468           
  Branches     7437     7439    +2     
=======================================
+ Hits        15117    15119    +2     
+ Misses      13583    13580    -3     
- Partials     4768     4769    +1     
Flag Coverage Δ
unittests-aries-vcx 45.17% <50.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
messages/src/decorators/localization.rs 0.00% <ø> (ø)
messages/src/lib.rs 74.19% <ø> (ø)
messages/src/misc/utils.rs 70.58% <ø> (+2.16%) ⬆️
...g_fields/protocols/connection/invitation/public.rs 57.14% <ø> (ø)
...es/src/msg_fields/protocols/connection/response.rs 68.42% <ø> (ø)
...ages/src/msg_fields/protocols/cred_issuance/mod.rs 67.85% <ø> (ø)
...ages/src/msg_fields/protocols/out_of_band/reuse.rs 66.66% <ø> (ø)
...msg_fields/protocols/out_of_band/reuse_accepted.rs 66.66% <ø> (ø)
.../src/msg_fields/protocols/present_proof/propose.rs 48.43% <ø> (ø)
...essages/src/msg_fields/protocols/report_problem.rs 30.26% <ø> (ø)
... and 5 more

... and 2 files with indirect coverage changes

@bobozaur bobozaur self-requested a review May 8, 2023 09:12
@bobozaur bobozaur merged commit 1509327 into hyperledger:main May 8, 2023
41 checks passed
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.

Move non-messages/common stuff from the messages
4 participants