Skip to content

bug: Validation error counter inconsistencies in the forms #538

Open

Description

@handreyrc

Describe the Bug

When editing fields in the forms, there are three layers of validation:

  • Field level
  • Task level
  • Workflow level

When a task with errors is selected from the canvas or any validation layer runs and detects errors, an error counter appears in the side panel footer.

However, this error counter is not always accurate: it sometimes displays more or fewer issues than it should. In some cases, the error counter is not displayed at all even though visible issues remain highlighted on the form.
e.g.

image

Steps to reproduce

1- Open the workflow "All Task Types" in storybook in edit mode
2- Select the task "callHTTPTask"
3- Expand the drill "Endpoint" and clear the url field
4- click anywhere in the form to make the text field lose focus and trigger the validation
5- Check the url error and then check if the error counter was updated on the footer

Expected Behavior

The error counter shall be as accurate as possible and present the quantity of errors in the form properly as soon as and error is caught by the any of the validation levels.

Editor Version

No response

Platform

Web / Browser

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions