OAPI: job settings, allow more granular control over setting visibility
Instead of having a per-setting boolean to control whether it's visible or hidden, there are now four values: - `visible`: always show. - `submission`: only show in the UI of a job submitter (like a Blender add-on). - `web`: only show in the web interface for management, but not when submitting the job. - `hidden`: never show; only available to the job compiler script as internal setting.
This commit is contained in:
parent
f7e028bcdc
commit
476f584192
@ -848,12 +848,7 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
description: Python expression to be evaluated in order to determine the default value for this setting.
|
description: Python expression to be evaluated in order to determine the default value for this setting.
|
||||||
"visible":
|
"visible":
|
||||||
type: boolean
|
$ref: "#/components/schemas/AvailableJobSettingVisibility"
|
||||||
description: >
|
|
||||||
Whether to show this setting in the UI of a job submitter (like a
|
|
||||||
Blender add-on). Set to `false` when it is an internal setting that
|
|
||||||
shouldn't be shown to end users.
|
|
||||||
default: true
|
|
||||||
"required":
|
"required":
|
||||||
type: boolean
|
type: boolean
|
||||||
description: >
|
description: >
|
||||||
@ -883,6 +878,17 @@ components:
|
|||||||
`HASHED_FILE_PATH` is a directory path + `"/######"` appended.
|
`HASHED_FILE_PATH` is a directory path + `"/######"` appended.
|
||||||
enum: ["file_path", "dir_path", "file_name", "hashed_file_path"]
|
enum: ["file_path", "dir_path", "file_name", "hashed_file_path"]
|
||||||
|
|
||||||
|
AvailableJobSettingVisibility:
|
||||||
|
type: string
|
||||||
|
description: >
|
||||||
|
When to show this setting.
|
||||||
|
`visible`: always show.
|
||||||
|
`submission`: only show in the UI of a job submitter (like a Blender add-on).
|
||||||
|
`web`: only show in the web interface for management, but not when submitting the job.
|
||||||
|
`hidden`: never show; only available to the job compiler script as internal setting.
|
||||||
|
enum: [visible, hidden, submission, web]
|
||||||
|
default: visible
|
||||||
|
|
||||||
SubmittedJob:
|
SubmittedJob:
|
||||||
type: object
|
type: object
|
||||||
description: Job definition submitted to Flamenco.
|
description: Job definition submitted to Flamenco.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user