Actions
Patch #39993
closedOptimize loading of journals, relations, and allowed_statuses in IssuesController#show for API requests
Description
The attached patch introduces an optimization in the IssuesController to conditionally load @journals
, @relations
, and @allowed_statuses
based on the context of the request (API vs. web).
@journals
, @relations
, and @allowed_statuses
are now loaded only if the request is not an API request or if they are explicitly included in the API response. This change prevents unnecessary data loading, thereby reducing server load and improving response times for API requests.
Files
Actions