Non user-friendly error message when trying to save a workflow without any action metadata provided (name, entrypoint, etc.) · Issue #320 · StackStorm/st2flow · GitHub
Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.
This repository was archived by the owner on May 27, 2021. It is now read-only.

Non user-friendly error message when trying to save a workflow without any action metadata provided (name, entrypoint, etc.) #320

Open

Description

@Kami

If you click "Save Workflow" button before providing any workflow metadata info in the right page (name, entry point, etc.), we just should "Error saving workflow" error message.

We should make that error more useful and friendly. Should probably say something along the lines of "Error saving workflow - fields name and entry point are mandatory". And perhaps also indicate that with * next to the fight in the right pane.

Screenshot from 2019-04-09 17-17-32

Activity

  1. bmomberger-bitovi commented on Apr 9, 2019

    @bmomberger-bitovi
    Contributor

    The ToolbarButton component only accepts a single fixed string for when the operation fails when the button is clicked. Currently that string is "Error saving workflow" so that's the only error that's generated. Instead of using this feature, remove the errorMessage property and report errors directly with PUSH_ERROR in the save() function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions