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 #28997

Merged
merged 15 commits into from
Jun 30, 2022

Conversation

iaulakh
Copy link
Member

@iaulakh iaulakh commented May 20, 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 C# 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.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@ghost ghost added the Communication label May 20, 2022
@azure-sdk
Copy link
Collaborator

azure-sdk commented May 20, 2022

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-communication-common
azure-communication-identity

@iaulakh
Copy link
Member Author

iaulakh commented May 20, 2022

Work in progress

@iaulakh iaulakh marked this pull request as ready for review May 22, 2022 22:10
@iaulakh iaulakh requested review from petrsvihlik, DominikMe and prprabhu-ms and removed request for a team, JianpingChen, minnieliu and ankitarorabit May 22, 2022 22:11
@petrsvihlik petrsvihlik requested a review from AikoBB May 23, 2022 11:33
@petrsvihlik
Copy link
Contributor

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

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