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.
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
Read ECID from IdentityDirect on Boot when registered #40
Read ECID from IdentityDirect on Boot when registered #40
Changes from 10 commits
00bb0d4
9d3e88f
116361c
d2ad1b4
85bd3f1
35a3aca
368b9f6
31ef3a4
a49bca3
dd6c2b3
d4940ad
3bb01ce
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I would suggest not generating a new ECID here, just return null so the caller knows the ECID didn't exist in the shared state. In the code where this API is called, you check if
legacyEcid == null
and if not you set the Edge Identity ECID to this returned ECID and log something to the effectECID migrated from direct Identity
. However, if the shared state contains no ECID and you generate on here, then the log message is inaccurate as the ECID wasn't migrated.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.
this would return null if the legacyEcidString is null or unable to cast
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.
Yes, I see that now. Sorry, I misread the code. This looks good. 👍
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.
Made some cleanup on these constants