Updated issuable update mutations allowing null to reset time estimate
What does this MR do and why?
Related to #390578.
This MR adds the ability to reset the time estimate of an issue or merge request passing null
other than 0
Screenshots or screen recordings
N.A.
How to set up and validate locally
- Find an issue or a merge request on a project you have at least developer access
- Get the project full path and issue (or merge request) id
- Run this mutation for an issue
mutation { updateIssue(input: { iid: "<issue id>", projectPath: "<project full path>", timeEstimate: null }) { issue { id timeEstimate } } }
- Run this mutation for a merge request
mutation { mergeRequestUpdate(input: { iid: "<issue id>", projectPath: "<project full path>", timeEstimate: null }) { mergeRequest { id timeEstimate } } }
Both should succeed and return a time estimate of 0
.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.