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

[CommunicationIdentifier] Added support for rawId ⟷ CommunicationIdentifier conversion #1116

Merged
merged 9 commits into from
Jun 30, 2022

Conversation

iaulakh
Copy link
Member

@iaulakh iaulakh commented May 22, 2022

Description

The CommunicationIdentifier design provides a good abstraction of Azure Communication Services internal id format with better type safety, auto-complete and hides internal knowledge.

However, it doesn't lend well to storing identifiers in a database or using them as keys because there is no clear canonical way how to encode them. This PR introduces translation functions that lets developers use the underlying raw ID for these purposes.

Details Internal wiki

This PR closely follows the Java PR.

No REST changes.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.

@ghost ghost added the Communication label May 22, 2022
@iaulakh iaulakh marked this pull request as ready for review May 22, 2022 22:05
@iaulakh iaulakh requested review from JianpingChen and a team as code owners May 22, 2022 22:05
@iaulakh iaulakh marked this pull request as draft May 22, 2022 22:05
@iaulakh iaulakh marked this pull request as ready for review May 22, 2022 22:10
@petrsvihlik petrsvihlik requested a review from AikoBB May 23, 2022 11:33
@petrsvihlik
Copy link

I'm off. @AikoBB can you pls take a look? :)

Copy link
Member

@vcolin7 vcolin7 left a comment

Choose a reason for hiding this comment

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

LGTM :)

Copy link

@petrsvihlik petrsvihlik left a comment

Choose a reason for hiding this comment

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

approved with the same comment/question as for java - Azure/azure-sdk-for-java#28997 (comment)

@iaulakh
Copy link
Member Author

iaulakh commented Jun 16, 2022

approved with the same comment/question as for java - Azure/azure-sdk-for-java#28997 (comment)

As per discussion, we will keep this as check style enforce this rule.

@iaulakh
Copy link
Member Author

iaulakh commented Jun 24, 2022

@petrsvihlik please find PR for doc #1139

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants