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]Acs chat preview6 #19232

Merged
merged 12 commits into from
Jul 6, 2021
Merged

[Communication]Acs chat preview6 #19232

merged 12 commits into from
Jul 6, 2021

Conversation

LuChen-Microsoft
Copy link
Member

No description provided.

@ghost ghost added the Communication label Jun 12, 2021
@LuChen-Microsoft LuChen-Microsoft changed the title Acs chat preview6 [Communication]Acs chat preview6 Jun 14, 2021
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.

  • Minor updates required with docstrings.
  • Minor updates required in the samples

Also, do we not need to update the live tests?

@@ -382,6 +384,7 @@ async def update_message(
self,
message_id: str,
content: str = None,
metadata: dict[str, str] = None,
Copy link
Member

Choose a reason for hiding this comment

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

missing docstring

@@ -71,6 +71,7 @@ def __init__(self, method_name, *args, **kwargs):

def setUp(self):
super(CommunicationTestCase, self).setUp()
print(111111)
Copy link
Member

Choose a reason for hiding this comment

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

Does this value have any signficance?

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.

@LuChen-Microsoft Please add tests for the metadata changes for the live tests as well. Other than that, looks good.

@@ -394,6 +397,7 @@ def update_message(
self,
message_id, # type: str
content=None, # type: Optional[str]
metadata=None, # type: Optional[dict[str, str]]
Copy link
Member

Choose a reason for hiding this comment

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

Let's move this into kwargs, and document it as keyword only (same as we did for send_message)

Copy link
Member Author

Choose a reason for hiding this comment

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

@annatisch do we need to also put content in kwargs? it's also optional.

Copy link
Member

Choose a reason for hiding this comment

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

Depends on whether this library has already has a GA 1.0 release. If so - to move content into kwargs would be a breaking change.

@@ -280,6 +280,7 @@ def send_message(
:paramtype chat_message_type: Union[str, ~azure.communication.chat.ChatMessageType]
:keyword str sender_display_name: The display name of the message sender. This property is used to
populate sender name for push notifications.
:keyword dict[str, str] metadata : Message metadata.
Copy link
Member

Choose a reason for hiding this comment

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

I don't see any updates to the SDK version - I presume this will be shipping as a new preview?
Also, could you please add some details to the changelog?

@@ -403,6 +406,8 @@ def update_message(
:type message_id: str
:param content: Chat message content.
:type content: str
:param metadata: Message metadata.
Copy link
Member

Choose a reason for hiding this comment

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

This will need to be documented as keyword rather than param:
:keyword dict[str, str] metadata : Message metadata.

@@ -2,6 +2,8 @@

## 1.0.1 (Unreleased)
Copy link
Member

Choose a reason for hiding this comment

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

This needs to be bumped to 1.1.0

@annatisch
Copy link
Member

/azp run python - communication - tests

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@annatisch
Copy link
Member

/azp run python - azure-communication-chat - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@annatisch
Copy link
Member

/azp run python - azure-communication-chat - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@LuChen-Microsoft
Copy link
Member Author

/azp run python - azure-communication-chat - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@LuChen-Microsoft
Copy link
Member Author

/azp run python - azure-communication-chat - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@annatisch annatisch merged commit f6a64f1 into Azure:main Jul 6, 2021
rakshith91 pushed a commit to rakshith91/azure-sdk-for-python that referenced this pull request Jul 16, 2021
* auto generated code

* change the clients and tests

* revert log change

* fix review issues

* use Dict instead of dict

* disable the pylint too many instance check

* fix comments

* update changelog & move param into kwargs

* update the version and the doc

* revert version change

* update the sdk version

* update the sdk version with b1
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-python that referenced this pull request May 30, 2022
ACSS & PHP public preview - version 1 and AMS V2 docs changes (Azure#19232)

* Initial changes for ACSS, PHP workloads under Microsoft.Workloads and Updated Documentation for AMS V2

* updated custom words
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.

3 participants