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

Adds Id to Credential Description #94

Merged
merged 3 commits into from
Sep 7, 2023
Merged

Adds Id to Credential Description #94

merged 3 commits into from
Sep 7, 2023

Conversation

sruke
Copy link
Contributor

@sruke sruke commented Sep 6, 2023

Introduces a new property on CredentialDescription

Summary of the changes
Introduces a unique identifier for a CredenentialDescription object

@sruke sruke self-assigned this Sep 6, 2023
@sruke sruke requested review from jennyf19 and jmprieur September 6, 2023 20:52
@sruke sruke marked this pull request as ready for review September 6, 2023 20:52
Copy link
Contributor

@jmprieur jmprieur left a comment

Choose a reason for hiding this comment

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

LGTM
I've asked to 2 comment

get
{
if (_cachedId == null)
_cachedId = $"{SourceType}_{ReferenceOrValue}";
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it enough? or does it require $"{SourceType}_{Container}_{ReferenceOrValue}" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ReferenceOrValue can be null, Container can also be null. SourceType will not be null.
Adding Container to the Id will make it stronger. Will update the PR.

Copy link
Contributor Author

@sruke sruke Sep 6, 2023

Choose a reason for hiding this comment

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

Updated the Id to use Container.
Today, Id property doesn't throw an exception if Container and/or ReferenceOrValue is null. It proceeds to generate a string that Id.Web will use to maintain a semaphore for that Id. Any concerns with this?

Copy link
Collaborator

@jennyf19 jennyf19 left a comment

Choose a reason for hiding this comment

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

:shipit:

can you open an issue as well for easier tracking? thx.

@jennyf19 jennyf19 added this to the 4.0.1 milestone Sep 7, 2023
@sruke
Copy link
Contributor Author

sruke commented Sep 7, 2023

can you open an issue as well for easier tracking? thx.

Done

Copy link
Contributor

@jmprieur jmprieur left a comment

Choose a reason for hiding this comment

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

LGTM
Thanks @sruke

@sruke sruke merged commit faf6927 into main Sep 7, 2023
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.

[Feature Request] Add a new property that uniquely identifies a CredentialDescription
3 participants