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

[Communication] - Phone Number - Redesigned API #16671

Merged
merged 32 commits into from
Mar 6, 2021

Conversation

jbeauregardb
Copy link
Contributor

@jbeauregardb jbeauregardb commented Feb 10, 2021

This PR has the new redesign for the PNM package.

  • The code was regenerated using the new swagger file
  • Both, sync and async clients were rewritten from the ground up
  • Tests were also rewritten from the ground up
  • README and Changelog were modified to document the new functions
  • New samples were created to match with the new implementation

Copy link
Member

@annatisch annatisch left a comment

Choose a reason for hiding this comment

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

Could we please get an updated APIview for these changes? :)

Copy link
Contributor

@turalf turalf left a comment

Choose a reason for hiding this comment

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

Please remove whl file

from azure.core.tracing.decorator import distributed_trace
from azure.core.paging import ItemPaged
from azure.core.polling import LROPoller
from ._generated._phone_numbers_client import PhoneNumbersClient as PhoneNumbersClientGen
Copy link
Member

Choose a reason for hiding this comment

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

Is this common practice to have import class from generated code as XXXGen?

from azure.core.tracing.decorator_async import distributed_trace_async
from azure.core.paging import ItemPaged
from azure.core.polling import LROPoller
from .._generated.aio._phone_numbers_client import PhoneNumbersClient as PhoneNumbersClientGen
Copy link
Member

Choose a reason for hiding this comment

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

Is 'import {A class} as {A Class}Gen' a common practice? why we need to do this?
I don't see next line is doing the same

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's also done in the Identity client and it was also done in the previous implementation of this PNM SDK, so I just left it as it was

@sacheu
Copy link
Member

sacheu commented Mar 5, 2021

Do we need to re-enable LIve TEST for phone number in this PR? I don't see that change?
And I see you checkin a binary file, a, wheel file. Is that common practice?

@sacheu
Copy link
Member

sacheu commented Mar 5, 2021

No need to checkin ...on/azure-communication-identity/azure_communication_identity-1.0.0b4-py2.py3-none-any.whl since it is empty file.

@jbeauregardb
Copy link
Contributor Author

/azp run python - communication - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@sacheu sacheu requested review from sacheu and beltr0n and removed request for sacheu March 5, 2021 20:17
Copy link
Member

@sacheu sacheu left a comment

Choose a reason for hiding this comment

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

Looks Good. Thanks Jorge.

@jbeauregardb jbeauregardb force-pushed the pnm-redesign branch 2 times, most recently from 6fa85e3 to 471f511 Compare March 5, 2021 21:18
@jbeauregardb
Copy link
Contributor Author

/azp run python - communication - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jbeauregardb jbeauregardb merged commit 5f0f752 into Azure:master Mar 6, 2021
iscai-msft added a commit that referenced this pull request Mar 8, 2021
…into update_ta_tests

* 'master' of https://github.com/Azure/azure-sdk-for-python:
  Update get_package_properties.py logic for python 2.7 (#17144)
  update changelog (#17150)
  [ServiceBus] 7.1.0 Release update changelog (#17135)
  [ServiceBus] Object mapping support (#17080)
  move SetTestPipeline into its own template (#17141)
  Revise token cache configuration API (#16326)
  Fix dup cloud error (#17097)
  Perf tests for monitor exporter (#17067)
  [Communication] - Phone Number - Redesigned API (#16671)
  disable retry (#17078)
  [Key Vault] Add perf tests for certificates, keys, and secrets (#17073)
  [text analytics] Analyze updates for v5.1.0b6 (#17003)
  Add any additional claims to AuthenticationRequiredError (#17136)
  Fix logic in SetTestPipelineVersionInEngCommon (#17138)
  [Key Vault] Make test resource cleanup script asynchronous (#17032)
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.

6 participants