Actions
Issue #4883
closedtask cancel api is incorrect
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Documentation
Sprint:
Quarter:
Description
the pulp3 task cancelling api in incorrect in two ways:
It says that 'name' is required, which doesn't make much sense.
The return code is 204, not 201.
I'm attaching a screenshot of the issue with docs.
Files
Related issues
Actions
Problem: task cancel API is incorrect
Solution: switch it to a PATCH method of the task
This patch changes REST API for task cancelation. Users will now be able to make a PATCH request to the task href and specify the state='canceled'. The response is the fully serialized task.
fixes: #4883 https://pulp.plan.io/issues/4883