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

feat(sdk): notification sdk enhancement for .NET #8486

Merged
merged 2 commits into from
Apr 24, 2023
Merged

feat(sdk): notification sdk enhancement for .NET #8486

merged 2 commits into from
Apr 24, 2023

Conversation

qinezh
Copy link
Contributor

@qinezh qinezh commented Apr 21, 2023

Work item: https://msazure.visualstudio.com/Microsoft%20Teams%20Extensibility/_workitems/edit/17902085/

Updates in this PR:

  1. Add new interface IConversationReferenceStore.
  2. Add new option store in NotificationBot.
  3. Deprecate the interface INotificationTargetStorage and the option storage in NotificationBot.
  4. Add new pagaination API GetPagedInstallationsAsync, GetPagedMembersAsync.
  5. Deprecated API GetMembersAsync.
  6. Add API BuildTeamsBotInstallation.

Incoming PR:

  1. Bump new version. (after the 2.0.0 is released)
  2. Update README and Change log.
  3. Update templates.

packages/dotnet-sdk/src/TeamsFx/Conversation/NotificationBot.cs Dismissed Show dismissed Hide dismissed
Comment on lines +212 to +218
foreach (var member in pagedMembers.Data)
{
if (await predicate(member).ConfigureAwait(false))
{
return member;
}
}

Check notice

Code scanning / CodeQL

Missed opportunity to use Where Note

This foreach loop
implicitly filters its target sequence
- consider filtering the sequence explicitly using '.Where(...)'.
@codecov
Copy link

codecov bot commented Apr 21, 2023

Codecov Report

Merging #8486 (bb3e85b) into dev (c63e836) will increase coverage by 0.03%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #8486      +/-   ##
==========================================
+ Coverage   78.65%   78.69%   +0.03%     
==========================================
  Files         606      606              
  Lines       41845    41884      +39     
  Branches     8327     8338      +11     
==========================================
+ Hits        32913    32960      +47     
+ Misses       5595     5579      -16     
- Partials     3337     3345       +8     

see 17 files with indirect coverage changes

@qinezh qinezh marked this pull request as ready for review April 23, 2023 07:58
swatDong
swatDong previously approved these changes Apr 23, 2023
@qinezh qinezh merged commit 27154d0 into dev Apr 24, 2023
15 checks passed
@qinezh qinezh deleted the qinezh/sdk branch April 24, 2023 07:14
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.

None yet

3 participants