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
Updated by Go MAEDA about 1 year ago
- Target version set to 6.0.0
Setting the target version to 6.0.0.
Updated by Go MAEDA about 1 year ago
- Status changed from New to Closed
- Assignee set to Go MAEDA
Committed the patch in r22582.
Actions