This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Page: Avoid 1000+ queries for projects dropdown menu
Before, we re-used ProjectsAction, which in turn re-uses JobAction, which in turn queries several hundred results (for the last job of each project) to termine the status color of the "Last job" column on the "/projects" page. However, none of that is used by the dropdown menu. Replace it with a single DB query. Still re-used, to avoid code duplication, but no longer re-using the rest of that action class.
- Loading branch information
Showing
2 changed files
with
40 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters