Skip to content

[Communication]Acs chat preview6 - #19232

Merged
Anna Tisch (annatisch) merged 12 commits into
Azure:mainfrom
LuChen-Microsoft:acs-chat-preview6
Jul 6, 2021
Merged

[Communication]Acs chat preview6#19232
Anna Tisch (annatisch) merged 12 commits into
Azure:mainfrom
LuChen-Microsoft:acs-chat-preview6

Conversation

@LuChen-Microsoft

Copy link
Copy Markdown
Member

No description provided.

@ghost ghost added the Communication label Jun 12, 2021
@LuChen-Microsoft luc (LuChen-Microsoft) changed the title Acs chat preview6 [Communication]Acs chat preview6 Jun 14, 2021

Copy link
Copy Markdown
Member

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?

Comment thread sdk/communication/azure-communication-chat/azure/communication/chat/_models.py Outdated
self,
message_id: str,
content: str = None,
metadata: dict[str, str] = None,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

missing docstring


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

Copy link
Copy Markdown
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
Copy Markdown
Member

Choose a reason for hiding this comment

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

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

self,
message_id, # type: str
content=None, # type: Optional[str]
metadata=None, # type: Optional[dict[str, str]]

Copy link
Copy Markdown
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
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
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.

Comment thread sdk/communication/azure-communication-chat/azure/communication/chat/_models.py Outdated
: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
Copy Markdown
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?

:type message_id: str
:param content: Chat message content.
:type content: str
:param metadata: Message metadata.

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

/azp run python - communication - tests

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@annatisch

Copy link
Copy Markdown
Member

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

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@annatisch

Copy link
Copy Markdown
Member

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

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@LuChen-Microsoft

Copy link
Copy Markdown
Member Author

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

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@LuChen-Microsoft

Copy link
Copy Markdown
Member Author

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

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@annatisch
Anna Tisch (annatisch) merged commit f6a64f1 into Azure:main Jul 6, 2021
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