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

catch error when restarting conversation #1250

Closed
wants to merge 4 commits into from

Conversation

a-b-r-o-w-n
Copy link
Contributor

fixes #1241

This should probably be addressed in direct line, but it's not
immediately clear why the error is being thrown in the first place.

@cwhitten
Copy link
Member

Copy link
Contributor

@justinwilaby justinwilaby 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 except for the lack of coverage. Defect fixes need accompanying unit tests.

@a-b-r-o-w-n
Copy link
Contributor Author

Why don't we just land https://github.com/Microsoft/BotFramework-DirectLineJS/pull/133/files ?

@cwhitten I'm not sure that change is warranted yet. We should consider the implications of that change. What I'm concerned about is that the thrown error has existed since direct line was first pushed, so I'm worried about missing something regarding why it's there.

justinwilaby
justinwilaby previously approved these changes Jan 24, 2019
Copy link
Contributor

@justinwilaby justinwilaby left a comment

Choose a reason for hiding this comment

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

:shipit:

@coveralls
Copy link

coveralls commented Jan 24, 2019

Pull Request Test Coverage Report for Build 1921

  • 0 of 6 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.02%) to 46.955%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/app/client/src/ui/editor/emulator/emulator.tsx 0 6 0.0%
Totals Coverage Status
Change from base Build 1917: -0.02%
Covered Lines: 4233
Relevant Lines: 8382

💛 - Coveralls

fixes #1241

This should probably be addressed in direct line, but it's not
immediately clear why the error is being thrown in the first place.
@@ -93,6 +93,20 @@ interface EmulatorProps {
url?: string;
}

export function endConversation(directLine: any): void {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this expected to be used by other operations outside this class? I'm curious why this went from private to an exported function. My comment previously was regarding a consideration given to a private static declaration for this function.

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.

Restarting conversation fails every other attempt
4 participants