BotFramework-Composer icon indicating copy to clipboard operation
BotFramework-Composer copied to clipboard

[linting&validation] Error suggestion in property editor does not sync with the notification page.

Open hibrenda opened this issue 6 years ago • 4 comments

Complete the necessary portions of this template and delete the rest.

Describe the bug

Error suggestion in property editor does not sync with the notification page. We need the error info to be synced between composer server and client.

user add a if/else step and leave condition as empty. in notification page, we will have following errors but these does not show up in property editor. image

Meanwhile, a string in property editor marked in red and these info won't show up in notification page.

Version

What version of the Composer are you using? Paste the build SHA found on the about page (/about).

Browser

What browser are you using?

  • [ ] Chrome
  • [ ] Safari
  • [ ] Firefox
  • [ ] Edge

OS

What operating system are you using?

  • [ ] macOS
  • [ ] Windows
  • [ ] Ubuntu

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Give a clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots/gif/video to help explain your problem.

Additional context

Add any other context about the problem here.

hibrenda avatar Dec 04 '19 05:12 hibrenda

It's unrelated to server/client syncing issue. Because it's all done at client.

In Form today, we haven't show the detailed error message when checking property yet. With @alanlong9278's work in https://github.com/microsoft/BotFramework-Composer/pull/1683, he will be able to show the detailed error message.

Re-assign this to @alanlong9278, and mark as enhancement.

boydc2014 avatar Dec 04 '19 06:12 boydc2014

@boydc2014 @alanlong9278 work was just a refactor of existing error UI. It does not enable that UI for other types of fields, only LU, LG, and expressions.

Further, the errors surfaced in the form are not driven by the shell, rather the individual fields may implement their own validation logic independently of the dialog indexer. There is more work to be done here.

  1. The form needs to accept the diagnostics generated by the dialog indexer in a way that the form can understand.
  2. The error UI needs to be added to every type of field in the form (dropdowns, number widgets, date widgets, etc).

a-b-r-o-w-n avatar Dec 05 '19 19:12 a-b-r-o-w-n

@a-b-r-o-w-n The pr is for the first item. And the notifications page just show the lg, lu and expression diagnostics, so for the second item, do we need to check the other types of field ourselves in the form editor?

alanlong9278 avatar Dec 09 '19 12:12 alanlong9278

addressed in https://github.com/microsoft/BotFramework-Composer/pull/1737

cwhitten avatar Dec 10 '19 14:12 cwhitten