API requests creating command only notes should return 2xx responses
requested to merge 35627-api-response-for-adding-a-note-returns-http-400-for-command-only-notes into master
What does this MR do?
This MR ensures that API requests to add a note that only include commands (e.g. /assign @foo
) will return a response in the 200 range. Previously such API requests returned responses in the 400 range, and this caused automated tooling to show errors when things had in fact been processed correctly.
Does this MR meet the acceptance criteria?
Conformity
-
Changelog entry -
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
Programs that relied on the old behaviour may produce incorrect results. The old behaviour was so thoroughly confusing that it is not a significant risk. In addition, the actual effects of the API are unchanged.
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. am
Closes #35627 (closed)
Edited by Alex Kalderimis