Skip to content

[Chat] Update stateful client to return an empty string in failure cases#4230

Merged
JoshuaLai merged 8 commits intomainfrom
feature/chatstatefulresourceresult
Mar 7, 2024
Merged

[Chat] Update stateful client to return an empty string in failure cases#4230
JoshuaLai merged 8 commits intomainfrom
feature/chatstatefulresourceresult

Conversation

@JoshuaLai
Copy link
Copy Markdown
Member

What

When downloading resources the stateful client will return an empty string
The selectors will now be responsible for reading the error object in the result and manipulate the html tags appropriatly

Why

No more needing to default the stateful client to return a src url that is not correct.

Process & policy checklist

  • I have updated the project documentation to reflect my changes if necessary.
  • I have read the CONTRIBUTING documentation.

Is this a breaking change?

  • This change causes current functionality to break.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 7, 2024

Calling bundle size is not changed.

  • Current size: 4783481
  • Base size: 4783481
  • Diff size: 0

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 7, 2024

CallWithChat bundle size is decreased✅.

  • Current size: 5950892
  • Base size: 5951034
  • Diff size: -142

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 7, 2024

Chat bundle size is decreased✅.

  • Current size: 1892942
  • Base size: 1893084
  • Diff size: -142

Comment thread packages/chat-component-bindings/src/messageThreadSelector.ts Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 7, 2024

@azure/communication-react jest test coverage for beta.

Lines Statements Functions Branches
Base 47036 / 76557
61.43%
47036 / 76557
61.43%
955 / 2141
44.6%
2740 / 4468
61.32%
Current 47002 / 76549
61.4%
47002 / 76549
61.4%
955 / 2140
44.62%
2717 / 4448
61.08%
Diff -34 / -8
-0.03%
-34 / -8
-0.03%
0 / -1
0.02%
-23 / -20
-0.24%

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 7, 2024

@azure/communication-react jest test coverage for stable.

Lines Statements Functions Branches
Base 47028 / 76557
61.42%
47028 / 76557
61.42%
955 / 2141
44.6%
2713 / 4450
60.96%
Current 47018 / 76549
61.42%
47018 / 76549
61.42%
955 / 2140
44.62%
2730 / 4458
61.23%
Diff -10 / -8
0%
-10 / -8
0%
0 / -1
0.02%
17 / 8
0.27%

Comment thread packages/chat-component-bindings/src/messageThreadSelector.ts Outdated
Copy link
Copy Markdown
Member

@palatter palatter left a comment

Choose a reason for hiding this comment

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

Looks good, one small comment

@JoshuaLai JoshuaLai merged commit 8969db8 into main Mar 7, 2024
@JoshuaLai JoshuaLai deleted the feature/chatstatefulresourceresult branch March 7, 2024 21:09
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.

4 participants