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.08k stars 999 forks source link

[Feature] Workflow level import and export functionality #1069

Closed wxyn closed 1 year ago

wxyn commented 1 year ago

Search before asking

Problem Description

In DSS1.0 version, there is an import and export function for workflows, which was removed due to workflow revisions. Now, it needs to be reopened in this version

Description

Export function The 'Export' option is provided in the options on the right side of the workflow.

  1. The user clicks "Export"
  2. At the top of the page, there is a prompt saying 'Exporting, please wait'. If the export is successful, the corresponding workflow will be downloaded locally with the file name 'projectname_workflow name.zip' (name to be confirmed); If the export fails, there will be an error prompt in the upper right corner of the page, and editing the workflow is not allowed during the export process. image image Import function The "Import Workflow" option is provided in the project right-click options
  3. The user clicks on "Import Workflow"
  4. You can choose to import as a zip package or from hdfs.
  5. After the user clicks OK, the message "Importing, please wait" will appear at the top of the page. When the import is successful, the newly imported workflow will be displayed under the corresponding item on the right side of the page and opened for the user. When the import fails, an error message will appear in the upper right corner of the page. Only allow import and export within the same project image image image image image

Use case

No response

solutions

Open the import and export button at the workflow level in the front-end Export interface: image Import interface: image

Anything else

  1. It is not allowed to be edited during export
  2. Allow modification of the exported package name, and the workflow name will not change after modification
  3. After exporting workflow A, editing and publishing operations are performed on workflow A, and then importing workflow A, the imported workflow A will overwrite the edited workflow

Are you willing to submit a PR?

zqburde commented 1 year ago

Add it in DSS1.1.2