Fixing identities claim to be in-line with identities discover and identities trust, by introducing a new parser parseGestaltIdentityId#595
Merged
CMCDragonkai merged 1 commit intostagingfrom Oct 21, 2023
Conversation
6 tasks
tegefaulkes
reviewed
Oct 19, 2023
Member
|
@addievo in the future please name your branches a bit more specifically. We actually leave our feature branches around for a while before GCing them and your name is too generic, leaving plenty of opportunity for conflicts. |
ac287fa to
3982544
Compare
…rovider Id:Identity Id` format
3982544 to
bbc662d
Compare
Member
|
@addievo your commit messages are incorrect, see the new format. Also can you re-read the conventional commits specification. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

RELATED TO MatrixAI/Polykey-CLI#29
Description
For the CLI fix, we need a new function to parse the gestalt identity, this introduces
parseGestaltIdentityIdin Polykey to achieve the same.The
pk identities claimcurrently takes two parameters in order to claim an identity.This is not consistent with other two commands
trustanddiscover.These two commands are not using the
ProviderIdentityIdtype.This is because the encoded form of this type is
["github.com", "cmcdragonkai"].Instead we need to use a parser similar to
binParsers.parseGestaltId(which is used by the trust and discover commands), however this parser, parses both node IDs and identities.What we need to do is to extract the identity parsing portion of
binParsers.parseGestaltId.It will be:
This will be called
parseGestaltIdentityId.Issues Fixed
Tasks
parseGestaltIdentityIdFinal checklist