@prefecthq/prefect-ui-library 3.12.16 → 3.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{RunsPageWithDefaultFilter-CGiaYgt1.mjs → RunsPageWithDefaultFilter-CtTS9hES.mjs} +2 -2
- package/dist/{RunsPageWithDefaultFilter-CGiaYgt1.mjs.map → RunsPageWithDefaultFilter-CtTS9hES.mjs.map} +1 -1
- package/dist/{WorkQueueToWorkPoolQueueRedirect-D0-2nGJa.mjs → WorkQueueToWorkPoolQueueRedirect-BFuMULzc.mjs} +2 -2
- package/dist/{WorkQueueToWorkPoolQueueRedirect-D0-2nGJa.mjs.map → WorkQueueToWorkPoolQueueRedirect-BFuMULzc.mjs.map} +1 -1
- package/dist/{index-DeCkaVKr.mjs → index-DYoVH4HK.mjs} +803 -802
- package/dist/{index-DeCkaVKr.mjs.map → index-DYoVH4HK.mjs.map} +1 -1
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +19 -19
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/types/src/services/WorkspaceFlowRunsApi.d.ts +1 -1
- package/package.json +2 -2
- package/src/components/DeploymentForm.vue +7 -2
- package/src/services/WorkspaceFlowRunsApi.ts +3 -3
|
@@ -26,7 +26,7 @@ export declare class WorkspaceFlowRunsApi extends WorkspaceApi {
|
|
|
26
26
|
getFlowRunInputSchema(id: string, keyset: FlowRunInputKeyset): Promise<Schema>;
|
|
27
27
|
getFlowRunInputSchemaV2(id: string, keyset: FlowRunInputKeyset): Promise<SchemaV2>;
|
|
28
28
|
retryFlowRun(id: string): Promise<void>;
|
|
29
|
-
setFlowRunState(id: string, body: StateUpdate): Promise<void>;
|
|
29
|
+
setFlowRunState(id: string, body: StateUpdate, force?: boolean): Promise<void>;
|
|
30
30
|
resumeFlowRun(id: string, values?: SchemaValues): Promise<OrchestrationResult>;
|
|
31
31
|
resumeFlowRunV2(id: string, values: SchemaValuesV2): Promise<OrchestrationResult>;
|
|
32
32
|
deleteFlowRun(flowRunId: string): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prefecthq/prefect-ui-library",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.13.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@types/lodash.debounce": "4.0.9",
|
|
58
58
|
"@types/lodash.isequal": "^4.5.8",
|
|
59
59
|
"@types/lodash.merge": "4.6.9",
|
|
60
|
-
"@types/node": "^24.0.
|
|
60
|
+
"@types/node": "^24.0.8",
|
|
61
61
|
"@types/prismjs": "^1.26.5",
|
|
62
62
|
"@vitejs/plugin-vue": "5.2.4",
|
|
63
63
|
"auto-changelog": "^2.5.0",
|
|
@@ -169,6 +169,9 @@
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
+
// nb: job variables are optional. If inputted as empty, set to {}
|
|
173
|
+
const jobVariablesJSON = jobVariables.value ? JSON.parse(jobVariables.value) : {}
|
|
174
|
+
|
|
172
175
|
if (props.mode === 'duplicate') {
|
|
173
176
|
const deploymentCreate: DeploymentCreate = {
|
|
174
177
|
name: name.value,
|
|
@@ -179,7 +182,7 @@
|
|
|
179
182
|
parameters: parameters.value,
|
|
180
183
|
tags: tags.value,
|
|
181
184
|
enforceParameterSchema: enforceParameterSchema.value,
|
|
182
|
-
jobVariables:
|
|
185
|
+
jobVariables: jobVariablesJSON,
|
|
183
186
|
parameterOpenApiSchema: props.deployment.parameterOpenApiSchema,
|
|
184
187
|
manifestPath: props.deployment.manifestPath,
|
|
185
188
|
path: props.deployment.path,
|
|
@@ -195,6 +198,8 @@
|
|
|
195
198
|
}
|
|
196
199
|
emit('submit', deploymentCreate)
|
|
197
200
|
} else {
|
|
201
|
+
|
|
202
|
+
|
|
198
203
|
const deploymentUpdate: DeploymentUpdateV2 = {
|
|
199
204
|
description: description.value,
|
|
200
205
|
workPoolName: workPoolName.value,
|
|
@@ -202,7 +207,7 @@
|
|
|
202
207
|
parameters: parameters.value,
|
|
203
208
|
tags: tags.value,
|
|
204
209
|
enforceParameterSchema: enforceParameterSchema.value,
|
|
205
|
-
jobVariables:
|
|
210
|
+
jobVariables: jobVariablesJSON,
|
|
206
211
|
concurrencyLimit: concurrencyLimit.value,
|
|
207
212
|
concurrencyOptions: concurrencyLimitCollisionStrategy.value ? { collisionStrategy: concurrencyLimitCollisionStrategy.value } : null,
|
|
208
213
|
}
|
|
@@ -120,12 +120,12 @@ export class WorkspaceFlowRunsApi extends WorkspaceApi {
|
|
|
120
120
|
name: 'AwaitingRetry',
|
|
121
121
|
message: 'Retry from the UI',
|
|
122
122
|
},
|
|
123
|
-
})
|
|
123
|
+
}, false)
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
public setFlowRunState(id: string, body: StateUpdate): Promise<void> {
|
|
126
|
+
public setFlowRunState(id: string, body: StateUpdate, force = true): Promise<void> {
|
|
127
127
|
const requestBody = mapper.map('StateUpdate', body, 'StateUpdateRequest')
|
|
128
|
-
return this.post(`/${id}/set_state`, { state: requestBody.state, force
|
|
128
|
+
return this.post(`/${id}/set_state`, { state: requestBody.state, force })
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
public async resumeFlowRun(id: string, values?: SchemaValues): Promise<OrchestrationResult> {
|