Project

General

Profile

Actions

Patch #39993

closed

Optimize loading of journals, relations, and allowed_statuses in IssuesController#show for API requests

Added by Go MAEDA 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Performance
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

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

Also available in: Atom PDF