-
-
Notifications
You must be signed in to change notification settings - Fork 561
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
Noyez vis change hist identity show #3699
Noyez vis change hist identity show #3699
Conversation
@noyez this looks great. I'll read in more detail soon and leave some feedback. In the meantime, before we can merge please
The easiest way to do this is to edit the CONTRIBUTORS.csv file in the github web UI and create a PR, this will make the commit as verified. |
Hello @mrinalwadhwa -- I had added my details here: Perhaps i missed something else? Maybe i need to update/change my email? |
@noyez ah yes, sorry I missed it in my quick check, you're all set no update needed. |
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.
@mrinalwadhwa tested and reviewed!
@noyez it would be awesome if you could add a test in the ockam_command/tests.commands.bats
file. You could do something similar to the create a node and show its identity
test.
@adrianbenavides Sure I can do this. It appears that the purpose of testing Another possible test would be to test that a specific long identity string deserialized correctly into components with expected values. This test would be a typical rust test denoted w/ |
That's right!
We don't have a clear strategy for writing rust tests on the |
@adrianbenavides bat tests added. This leads me to another question. When writing the test i realized i am assuming that an |
cad1310
to
5b47d8e
Compare
No, it looks great as it is. The identity is always initialized with a IdentitySignedChange. |
39d34c5
to
04ecf0b
Compare
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.
Awesome contribution @noyez , thank you so much! 🥳
…w --full` command
04ecf0b
to
8d95a5a
Compare
Current Behavior
The
ockam identity show --full
command just shows a hex string representing many pieces of information.Example before output:
Proposed Changes
Decompose the hex string and display the data in a more human friendly format.
After:
This was implemented by de-serializing the original identity hex string using
serde_bare
and by adding thefmt::Display
trait to the underlying types in theIdentityChangeHistory
struct. There was a visibility change related to theIdentityChangeHistory
struct, it went topub
frompub(crate)
so that it can be de-serialized and used by theockam_command
crate.Related Issue: #3258
Checks