Skip to content

Commit

Permalink
fix: get_task_list 支持周期任务筛选执行历史 --story=121432122
Browse files Browse the repository at this point in the history
  • Loading branch information
guohelu committed Jan 2, 2025
1 parent 724cb0a commit ec000fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gcloud/apigw/forms/get_task_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ class GetTaskListForm(forms.Form):
create_method = forms.CharField(required=False)
template_id = forms.CharField(required=False)
without_count = forms.BooleanField(required=False)
create_info = forms.CharField(required=False)
template_source = forms.CharField(required=False)
2 changes: 2 additions & 0 deletions gcloud/apigw/views/get_task_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def get_task_list(request, project_id):
"executor": "pipeline_instance__executor",
"create_method": "create_method",
"template_id": "template_id",
"create_info": "create_info",
"template_source": "template_source",
}
filter_kwargs = dict(is_deleted=Value(0), project_id=project.id)
for param, filter_key in param_mappings.items():
Expand Down
1 change: 1 addition & 0 deletions gcloud/apigw/views/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def format_task_info_data(task, project=None, tz=None):
"is_finished": task.pipeline_instance.is_finished,
"template_source": task.template_source,
"template_id": task.template_id,
"current_flow": task.current_flow,
}
if project:
item.update(
Expand Down

0 comments on commit ec000fb

Please sign in to comment.