WeBankFinTech / DataSphereStudio

DataSphereStudio is a one stop data application development& management portal, covering scenarios including data exchange, desensitization/cleansing, analysis/mining, quality measurement, visualization, and task scheduling.
https://github.com/WeBankFinTech/DataSphereStudio-Doc
Apache License 2.0
3.09k stars 1k forks source link

[Feature] Optimize error messages thrown by schedulis #1083

Closed wxyn closed 1 year ago

wxyn commented 1 year ago

Search before asking

Problem Description

Nodes in the schedulis project are not allowed to have the same name. When the same name occurs, the error message of the schedulis is not clear, which is difficult for users to understand. Therefore, the error message of the schedulis needs to be parsed, and the expression of the error message needs to be reorganized before it is returned to the user.

Description

As a DSS user, enter the project "test" in DSS, create a new workflow with a node named "start" in the workflow, save the workflow, and publish it.

The same user enters the project "test" again in DSS, creates a new workflow again, has a node named "start", and the node name of the previous workflow, saves the workflow, and then publishes it. You will see "Release failed. The workflow node start has the same name as another workflow node in the project, please rename the node ".

Use case

No response

solutions

  1. Subject logic

1). In SchedulisAppConn, detect the error returned by the schedulis, and if the error copy contains "has ambiguous dependency", the user is prompted to "publish failed". Workflow node ${node name} has the same name as another workflow node in this project. Please rename the node.

2). Node names are extracted through regular matching.

  1. Interface design image

Anything else

No response

Are you willing to submit a PR?

zqburde commented 1 year ago

Add it in DSS1.1.2