Skip to content

Commit

Permalink
add implicit_collection_jobs_id to invocation step summary
Browse files Browse the repository at this point in the history
Also, return a correctly encoded database id field in `step_jobs_summary` api.
  • Loading branch information
ahmedhamidawan committed Apr 11, 2024
1 parent 28e9fd0 commit ffe6d81
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
9 changes: 7 additions & 2 deletions client/src/api/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7465,6 +7465,11 @@ export interface components {
* @example 0123456789ABCDEF
*/
id: string;
/**
* Implicit Collection Jobs ID
* @description The implicit collection job ID associated with the workflow invocation step.
*/
implicit_collection_jobs_id?: string | null;
/** Job Id */
job_id: string | null;
/**
Expand Down Expand Up @@ -7549,7 +7554,7 @@ export interface components {
InvocationStepJobsResponseCollectionJobsModel: {
/**
* ID
* @description The encoded ID of the workflow invocation.
* @description The encoded ID of the job.
* @example 0123456789ABCDEF
*/
id: string;
Expand All @@ -7575,7 +7580,7 @@ export interface components {
InvocationStepJobsResponseJobModel: {
/**
* ID
* @description The encoded ID of the workflow invocation.
* @description The encoded ID of the job.
* @example 0123456789ABCDEF
*/
id: string;
Expand Down
1 change: 1 addition & 0 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8669,6 +8669,7 @@ def to_dict(self, view="collection", value_mapper=None, step_details=False, lega
v["state"] = None
steps.append(v)
else:
v["implicit_collection_jobs_id"] = step.implicit_collection_jobs_id
steps.append(v)
rval["steps"] = steps

Expand Down
12 changes: 11 additions & 1 deletion lib/galaxy/schema/invocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,11 @@ class InvocationStep(Model, WithModelClass):
title="Jobs",
description="Jobs associated with the workflow invocation step.",
)
implicit_collection_jobs_id: Optional[EncodedDatabaseIdField] = Field(
None,
title="Implicit Collection Jobs ID",
description="The implicit collection job ID associated with the workflow invocation step.",
)


class InvocationReport(Model, WithModelClass):
Expand Down Expand Up @@ -609,9 +614,14 @@ class InvocationStepJobsResponseStepModel(InvocationJobsSummaryBaseModel):

class InvocationStepJobsResponseJobModel(InvocationJobsSummaryBaseModel):
model: JOB_MODEL_CLASS
id: EncodedDatabaseIdField = Field(
default=...,
title="ID",
description="The encoded ID of the job.",
)


class InvocationStepJobsResponseCollectionJobsModel(InvocationJobsSummaryBaseModel):
class InvocationStepJobsResponseCollectionJobsModel(InvocationStepJobsResponseJobModel):
model: IMPLICIT_COLLECTION_JOBS_MODEL_CLASS


Expand Down

0 comments on commit ffe6d81

Please sign in to comment.