-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Sync the _shared folder for Communication #21777
Sync the _shared folder for Communication #21777
Conversation
API changes have been detected in API changes - # Package is parsed using api-stub-generator(version:0.2.4)
+ # Package is parsed using api-stub-generator(version:0.2.5)
- metadata: Dict = None,
- sender_display_name: Union[str, NoneType] = None,
- content: str = None,
+ content = ...,
- content = ...,
- metadata: Dict = None, |
API changes have been detected in API changes - # Package is parsed using api-stub-generator(version:0.2.4)
+ # Package is parsed using api-stub-generator(version:0.2.5)
- ) -> SmsClient
+ ) -> admonitio
- ) -> SmsClient
+ ) -> admonitio |
API changes have been detected in API changes - # Package is parsed using api-stub-generator(version:0.2.4)
+ # Package is parsed using api-stub-generator(version:0.2.5) |
Since we don't expose the value of |
sdk/communication/azure-communication-identity/azure/communication/identity/_shared/utils.py
Show resolved
Hide resolved
Added a new line to CODEOWNERS to enforce the reviews for the _shared folders bbaff76 and prevent similar situation from happening again. |
It seems that TZ_UTC covers this well. I also did some extensive testing and discovered that deserialization of the return AccessToken(token, _convert_datetime_to_utc_int(datetime.fromtimestamp(payload['exp']).replace(tzinfo=TZ_UTC))) with: return AccessToken(token, _convert_datetime_to_utc_int(datetime.fromtimestamp(payload['exp'], TZ_UTC))) Now it should be all good to review. @AriZavala2 @LuChen-Microsoft @RoyHerrod @jbeauregardb can you please verify the changes? |
Confirmed with @annatisch that this change is legit. Explanation:
This PR unifies the code to follow the change made in the Chat lib. |
/azp run python - azure-communication-chat - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run python - azure-communication-phonenumbers - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run python - azure-communication-sms - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run python - azure-communication-identity - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run python - azure-communication-networktraversal - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
sdk/communication/azure-communication-chat/azure/communication/chat/_shared/utils.py
Show resolved
Hide resolved
...mmunication-networktraversal/azure/communication/networktraversal/_shared/user_credential.py
Show resolved
Hide resolved
* identity and network traversal unified with sms * unified get_current_utc_as_int + added a test * adjusted variable name to match the comment * added owners to enforce reviews * token deserialization fix + test
I found out that the _shared folder (
sdk\communication\azure-communication-<package>\azure\communication\<package>\_shared
) is not in sync across the Communication packages (SMS, PhoneNumbers, Chat, Identity, and NetworkTraversal).The differences made our _shared folders split into the following branches:
@jbeauregardb attempted to unify the folders in the past (#17985) but Identity was not updated (and I think NetworkTraversal was introduced later and that's how Branch B was created).
The second important milestone was #18026 that removed
replace(tzinfo=TZ_UTC)
from creation of the current timestamp.This PR is an attempt to cherry pick the right changes and unify the folders.
I'm including all past contributors and owners of concerned packages as reviewers.