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

Update ACS Chat Python SDK align with swagger changes #15640

Merged

Conversation

Leoaqr
Copy link
Contributor

@Leoaqr Leoaqr commented Dec 4, 2020

  • Seperate AzureCommunicationChatServiceOperationsMixin into ChatOperations and ChatThreadOperations
  • Move invalid participants into errors object in reponse body

"id": thread_id,
"topic": "test topic",
"createdOn": "2020-12-03T21:09:17Z",
"createdBy": "8:acs:57b9bac9-df6c-4d39-a73b-26e944adf6ea_9b0110-08007f1041"
Copy link
Contributor

@turalf turalf Dec 4, 2020

Choose a reason for hiding this comment

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

is this a mock user(not real one)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, its a mock user

Copy link
Member

@sarkar-rajarshi sarkar-rajarshi left a comment

Choose a reason for hiding this comment

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

Lgtm

@Leoaqr Leoaqr closed this Dec 4, 2020
@Leoaqr Leoaqr reopened this Dec 4, 2020
@Leoaqr Leoaqr merged commit 1e5e65e into Azure:feature/communication-chat-preview3 Dec 4, 2020
@Leoaqr Leoaqr deleted the swagger_update branch December 4, 2020 20:41
sarkar-rajarshi added a commit that referenced this pull request Feb 2, 2021
* ACS Chat: Changes for API version: 2020-11-01-preview3 (#15455)

Several changes required by `2020-11-01-preview3` of the API:

- Rename `Thread Members` to `Participants`
- Rename function `UpdateThread` to `UpdateTopic`
- Rename `ReadReceipt` to `ChatMessageReadReceipt` in model
- Return message id (string) instead of SendMessageResult (object) when calling `send_message`
- Add a convenience method `add_participant` for adding 1 participant
- Add failed participants check in response header in `create_thread` function

Misc:

- Add updated test record files

Co-authored-by: Leo Li <[email protected]>
Co-authored-by: Rajarshi Sarkar <[email protected]>

* Update ACS Chat Python SDK align with swagger changes (#15640)

- Seperate AzureCommunicationChatServiceOperationsMixin into ChatOperations and ChatThreadOperations
- Move invalid participants into errors object in reponse body

Co-authored-by: Leo Li <[email protected]>

* Communication chat - paginated results for participants and readreceipts (#15682)

* Failed participant check + single member add
* Add failed participant check in response header for create_thread method
* New convention method add_participant(thread_participant: ChatThreadParticipant) - sync and async

* Add empty line at the end of files

* Enable pagination for list participants

* Enable pagination for read receipts

* conflicts resolved after merge with upstream

* update README.md

* e2e test fix

* bkp commit

* updated e2e tests

* adding test recording

Co-authored-by: Leo Li <[email protected]>

* Updated swagger changes (#16390)

* Updated swagger changes
- Generate new models from swagger
- ChatMessage.content -> ChatMessageContent instead of 'str'
- Remove ChatMessagePriority
- Introduce ChatMessageType
- Add tests around ChatMessageType deserialization
- Generate a repeatability ID by default
- Add some test scenarios around repeatability ID
- Update all relevant tests
- Update sample code
- Record new test sessions

* Rebase with master
- Use CommunicationUserIdentifier

* pylint fixes

Co-authored-by: Jixing (Leo) Li <[email protected]>
Co-authored-by: Leo Li <[email protected]>
juancamilor pushed a commit that referenced this pull request Feb 5, 2021
* Rsarkar/chat preview3 rebased (#16463)

* ACS Chat: Changes for API version: 2020-11-01-preview3 (#15455)

Several changes required by `2020-11-01-preview3` of the API:

- Rename `Thread Members` to `Participants`
- Rename function `UpdateThread` to `UpdateTopic`
- Rename `ReadReceipt` to `ChatMessageReadReceipt` in model
- Return message id (string) instead of SendMessageResult (object) when calling `send_message`
- Add a convenience method `add_participant` for adding 1 participant
- Add failed participants check in response header in `create_thread` function

Misc:

- Add updated test record files

Co-authored-by: Leo Li <[email protected]>
Co-authored-by: Rajarshi Sarkar <[email protected]>

* Update ACS Chat Python SDK align with swagger changes (#15640)

- Seperate AzureCommunicationChatServiceOperationsMixin into ChatOperations and ChatThreadOperations
- Move invalid participants into errors object in reponse body

Co-authored-by: Leo Li <[email protected]>

* Communication chat - paginated results for participants and readreceipts (#15682)

* Failed participant check + single member add
* Add failed participant check in response header for create_thread method
* New convention method add_participant(thread_participant: ChatThreadParticipant) - sync and async

* Add empty line at the end of files

* Enable pagination for list participants

* Enable pagination for read receipts

* conflicts resolved after merge with upstream

* update README.md

* e2e test fix

* bkp commit

* updated e2e tests

* adding test recording

Co-authored-by: Leo Li <[email protected]>

* Updated swagger changes (#16390)

* Updated swagger changes
- Generate new models from swagger
- ChatMessage.content -> ChatMessageContent instead of 'str'
- Remove ChatMessagePriority
- Introduce ChatMessageType
- Add tests around ChatMessageType deserialization
- Generate a repeatability ID by default
- Add some test scenarios around repeatability ID
- Update all relevant tests
- Update sample code
- Record new test sessions

* Rebase with master
- Use CommunicationUserIdentifier

* pylint fixes

Co-authored-by: Jixing (Leo) Li <[email protected]>
Co-authored-by: Leo Li <[email protected]>

* Apiview changes (#16560)

* apiview fixes
- Add missing type hints
- return ItemPaged or AsyncItemPaged instead of full classpath

Co-authored-by: Jixing (Leo) Li <[email protected]>
Co-authored-by: Leo Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants