Resolve "Zoom quick action on a new issue causes error"
What does this MR do?
Overview
Fixes a 500 error when trying to create a new issue with the /zoom
quick action command.
Resolves #38234 (closed)
Technical Details
Since quick actions can be used on Issue creation and not just Issue update a user ran into a 500 error where the error was because of a missing an Issue id. This is because the Issue was not yet persisted.
Most quick actions work by assigning an @updates
variable that gets used in the creation or update of the issue. The @updates
variable is called in both services after the issue is persisted to update the fields specified in a dict. Using the @updates
variable ensures the issue is already persisted but it can only be used for the issue create. If we used @updates
on update the list we would pass would get progressively larger each time the quick action was used.
Screenshots
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