-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 chat preview4 #16905
Merged
juancamilor
merged 16 commits into
Azure:feature/communication-chat-preview4-comm-models
from
sarkar-rajarshi:rsarkar/communication-chat-preview4
Mar 3, 2021
Merged
Communication chat preview4 #16905
Changes from 12 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
59f3312
[Communication] Generate identifier Models from new swagger (#16735)
sacheun 3de22c5
Check schema of the object to determine the type [preview4] (#16838)
turalf fa33c5e
preview4 changes made + unit tests fixed
sarkar-rajarshi 181af3a
Chat - preview4 changes
sarkar-rajarshi 0f19fdb
pylint-changes
sarkar-rajarshi 8d55449
pylint changes
sarkar-rajarshi 717eea9
Method signature changed for add_pariticipant and add_participants
sarkar-rajarshi d5ed0cd
CreateChatThreadResult modified to handle partial errors in batch cal…
sarkar-rajarshi b308b7d
pylint-changes
sarkar-rajarshi 077f198
pylint fixes
sarkar-rajarshi 84eb4e2
README.md update + pylint fixes
sarkar-rajarshi 4c3e684
test recordings added
sarkar-rajarshi 990cadb
add_participant -> raises error
sarkar-rajarshi 5985f47
pylint fixes
sarkar-rajarshi d58ec47
cls removed from docstring + update_topic async refactored
sarkar-rajarshi ad01aec
cls removed from docstring
sarkar-rajarshi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the case of the single
add_participant
, we shouldn't return the error object - we should just raise an error.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@annatisch we mentioned this one on the .NET review:
https://apiview.dev/Assemblies/Review/a60a130cc1e24d65a74c20e42887b61f#74d339479f13486ebababaee478f8990
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@annatisch
add_participant
raises error - change implementedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@annatisch are we ok with having this diverge in python ? I am ok if you are.
When we run this in that meeting, the answer was to leave it as is in case in the future any additional data is required back from that call. I don't see that coming but that was the decision.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@juancamilor - raising errors rather than returning them is Pythonic behaviour that I would expect to differ from .Net.
We can still return the
ChatThreadParticipant
object - when you say additional data, you mean other information outside of these two fields?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, something like extra headers is what Ted G mentioned, but I don't have any requirements yet to back it up.
tg-msft1
There aren't today, but maybe it'll come back with extra headers in the future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@annatisch after today's review we will address all the changes on the next iteration (including the removal of this operation).