Skip to content

Conversation

ceciliaavila
Copy link
Collaborator

#minor

Description

This PR fixes the casting error found in the Telephony unit tests when the handoff context is an object.

Specific Changes

  • Updated BeginDialogAsync method in SendHandoffActivity class replacing the JObject cast with the JObject.FromObject parse method.

Testing

These images show the Telephony tests working after the fix and the Dialogs.Adaptive tests passing:
image
image

@ceciliaavila ceciliaavila added the Automation: No parity PR does not need to be applied to other languages. label Jan 13, 2023
@ceciliaavila ceciliaavila requested a review from a team as a code owner January 13, 2023 19:35
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 336829

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 8 unchanged lines in 6 files lost coverage.
  • Overall coverage decreased (-0.02%) to 73.28%

Files with Coverage Reduction New Missed Lines %
/libraries/AdaptiveExpressions/BuiltinFunctions/GetNextViableDate.cs 1 93.94%
/libraries/AdaptiveExpressions/BuiltinFunctions/GetPreviousViableDate.cs 1 93.94%
/libraries/integration/Microsoft.Bot.Builder.Integration.AspNet.Core/ServiceCollectionExtensions.cs 1 93.55%
/libraries/Microsoft.Bot.Connector.Streaming/Application/TimerAwaitable.cs 1 68.25%
/libraries/AdaptiveExpressions/BuiltinFunctions/GetNextViableTime.cs 2 90.91%
/libraries/AdaptiveExpressions/BuiltinFunctions/GetPreviousViableTime.cs 2 90.91%
Totals Coverage Status
Change from base Build 334351: -0.02%
Covered Lines: 23920
Relevant Lines: 32642

💛 - Coveralls

@tracyboehrer tracyboehrer merged commit 7fbb30a into main Jan 13, 2023
@tracyboehrer tracyboehrer deleted the southworks/fix/cast-issue-handoff branch January 13, 2023 20:12
tracyboehrer added a commit that referenced this pull request Jan 17, 2023
* Fix cast issue in SendHandoffActivity action. (#6575)

* [#6563] Expired JWT token exception not being handled (#6572)

* Add UnauthorizedAccessException when the SecurityTokenExpiredException is thrown

* Add CloudAdapter test

Co-authored-by: sw-joelmut <[email protected]>

Co-authored-by: Cecilia Avila <[email protected]>
Co-authored-by: erquirogasw <[email protected]>
Co-authored-by: sw-joelmut <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Automation: No parity PR does not need to be applied to other languages.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants