Actions
Issue #3103
closedMissing representation of spawned_tasks in response
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 27
Quarter:
Description
TaskViewSet to have spawned_tasks representation even if it is an empty list.
Current response:
"results": [{
"_href": "http://pulp3.dev:8000/api/v3/tasks/e99435f5-0ba4-4ccf-bb66-60a1bd120ae1/",
"group": null,
"state": "completed",
"started_at": "2017-10-20T18:37:47.630237Z",
"finished_at": "2017-10-20T18:37:47.684939Z",
"non_fatal_errors": [],
"error": null,
"worker": "http://pulp3.dev:8000/api/v3/workers/reserved_resource_worker_2@pulp3.dev/",
"parent": null,
"tags": [],
"progress_reports": []
}]
Code on github.
parent = models.ForeignKey("Task", null=True, related_name="spawned_tasks")
Link to code.
Updated by bmbouter about 7 years ago
+1 to accepting and adding this to the sprint. This was intended to work which is why we added the related_name
specification on the foreign key to start with.
The use case is: as a user, when listing a task, a link to any spawned tasks are included.
Updated by dalley about 7 years ago
- Sprint/Milestone set to 46
- Triaged changed from No to Yes
Updated by dalley about 7 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to dalley
Updated by dalley about 7 years ago
- Status changed from ASSIGNED to POST
Added by dalley about 7 years ago
Added by dalley about 7 years ago
Revision 270a8f74 | View on GitHub
Added 'spawned_tasks' field to task detail view
Updated by dalley about 7 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp|270a8f749f73a1cd8448f6734452c0ee186ed686.
Updated by bmbouter about 5 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Added 'spawned_tasks' field to task detail view
closes #3103 https://pulp.plan.io/issues/3103