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

fix: [#4314] CloudAdapter: messages are not sorted correctly #4322

Merged

Conversation

sw-joelmut
Copy link
Collaborator

Fixes #4314

Description

This PR fixes an issue where multiple message activities were sent in different orders using WebChat or Emulator.
The problem was in the sendActivities method, where the activities were processed in parallel, and thus sent in different order.
To solve this issue, we basically ported the functionality changes from DotNet's SendActivities implementation.

Specific Changes

  • Replaced promise loop from map to for of, so activities are processed sequentially and not in parallel.
  • Ported changes from DotNet's SendActivities implementation.

Testing

The following image shows the comparison between the actual and expected behavior.
image

@sw-joelmut sw-joelmut requested a review from a team as a code owner September 13, 2022 13:04
@coveralls
Copy link

coveralls commented Sep 13, 2022

Pull Request Test Coverage Report for Build 3045290854

  • 18 of 18 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.0007%) to 84.538%

Totals Coverage Status
Change from base Build 3024027438: -0.0007%
Covered Lines: 19875
Relevant Lines: 22270

💛 - Coveralls

@tracyboehrer tracyboehrer merged commit 32c1379 into main Sep 13, 2022
@tracyboehrer tracyboehrer deleted the southworks/fix/cloudadapter-send-activities-order branch September 13, 2022 14:17
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.

CloudAdapter: messages are not sorted correctly
3 participants