dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[Feature][Parameter] Add project-level parameters

Open rickchengx opened this issue 1 year ago • 11 comments

Search before asking

  • [X] I had searched in the issues and found no similar feature requirement.

Description

  • Currently, DS has local and global parameters. Note that Global parameters only take effect inside the workflow
  • Add project-level parameters so that all workflows under the same project can use these project-level parameters

Why we need project-level parameters

  • Allows users to more easily define parameters that are used in multiple workflows of the same project
    • E.g., hundreds of workflows that use the same time parameter ${dt}
    • E.g., hundreds of workflows that use the same result location parameter ${loc}

UI

截屏2023-05-23 10 46 25

Restful API

1st iteration

  • createProjectParameter 截屏2023-05-26 12 02 22

  • updateProjectParameter 截屏2023-05-26 12 02 03

  • deleteProjectParametersByCode 截屏2023-05-26 12 02 31

  • batchDeleteProjectParametersByCodes 截屏2023-05-26 12 02 40

  • queryProjectParameterListPaging 截屏2023-05-26 12 02 13

  • queryProjectParameterByCode 截屏2023-05-26 11 59 07

2nd iteration

  • batchExportByNames
  • import

Sub-task

  • #14214
  • #14218
  • #14339

Use case

No response

Related issues

No response

Are you willing to submit a PR?

  • [X] Yes I am willing to submit a PR!

Code of Conduct

rickchengx avatar May 10 '23 07:05 rickchengx