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

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

Closed
7 tasks
hibrenda opened this issue Dec 4, 2019 · 4 comments
Assignees
Labels
R7 Release 7 - December 10th, 2019

Comments

@hibrenda
Copy link
Contributor

hibrenda commented Dec 4, 2019

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 hibrenda added the Type: Bug Something isn't working label Dec 4, 2019
@boydc2014
Copy link
Contributor

boydc2014 commented Dec 4, 2019

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 #1683, he will be able to show the detailed error message.

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

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

@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).

@cwhitten cwhitten added the R7 Release 7 - December 10th, 2019 label Dec 5, 2019
@alanlong9278
Copy link
Contributor

@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?

@cwhitten
Copy link
Member

addressed in #1737

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R7 Release 7 - December 10th, 2019
Projects
None yet
Development

No branches or pull requests

6 participants