Skip to content

Commit

Permalink
[TM-1624] Fix the shape and documentation of the task reports.
Browse files Browse the repository at this point in the history
  • Loading branch information
roguenet committed Jan 17, 2025
1 parent e91279c commit 8cad6dd
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 23 deletions.
2 changes: 1 addition & 1 deletion app/Http/Resources/V2/Tasks/TaskReportResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function toArray($request)
'due_at' => $this->due_at,
'submitted_at' => $this->submitted_at,
'report_title' => $this->report_title,
'update_at' => $this->updated_at,
'updated_at' => $this->updated_at,
'status' => $this->status,
'update_request_status' => $this->update_request_status,
'nothing_to_report' => $this->nothing_to_report,
Expand Down
23 changes: 15 additions & 8 deletions openapi-src/V2/definitions/V2TaskActionRead.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,29 @@ title: V2TaskActionRead
type: object
properties:
uuid:
type: integer
type:
type: string
status:
type: string
due_at:
type: string
format: date-time
title:
submitted_at:
type: string
format: date-time
report_title:
type: string
updated_at:
type: string
format: date-time
status:
type: string
update_request_status:
type: string
submitted_at:
nothing_to_report:
type: boolean
title:
type: string
type:
type: string
format: date-time
parent_name:
type: string
type: string
completion:
type: integer
42 changes: 28 additions & 14 deletions resources/docs/swagger-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42489,25 +42489,32 @@ definitions:
type: object
properties:
uuid:
type: integer
type:
type: string
status:
type: string
due_at:
type: string
format: date-time
title:
submitted_at:
type: string
format: date-time
report_title:
type: string
updated_at:
type: string
format: date-time
status:
type: string
update_request_status:
type: string
submitted_at:
nothing_to_report:
type: boolean
title:
type: string
type:
type: string
format: date-time
parent_name:
type: string
completion:
type: integer
StatusUpdate:
title: StatusUpdate
type: object
Expand Down Expand Up @@ -75738,25 +75745,32 @@ paths:
type: object
properties:
uuid:
type: integer
type:
type: string
status:
type: string
due_at:
type: string
format: date-time
title:
submitted_at:
type: string
format: date-time
report_title:
type: string
updated_at:
type: string
format: date-time
status:
type: string
update_request_status:
type: string
submitted_at:
nothing_to_report:
type: boolean
title:
type: string
type:
type: string
format: date-time
parent_name:
type: string
completion:
type: integer
'/v2/tasks/{UUID}/submit':
put:
summary: Submit all task reports via a task
Expand Down

0 comments on commit 8cad6dd

Please sign in to comment.