Actions
Refactoring #254
closedProvide a method for scoping the project type master on its index page
Start date:
04/15/2021
Due date:
% Done:
100%
Estimated time:
Compatible Redmine Version:
Pull Request Link:
Description
The scope should be variable in dependence of the redmine_project_types_relations plugin. Both, variants should be applicable:
scope = ProjectType.masters.includes(:subordinates).status(@status).sorted
or
scope = ProjectType.masters.status(@status).sorted
Updated by liaham almost 4 years ago
There is a way to select only those attributes of an association that it loads not everything. See https://stackoverflow.com/questions/10084355/eager-loading-and-lazy-loading-in-rails for an example.
Updated by liaham almost 4 years ago
- Status changed from New to Rejected
- Target version changed from 4.1.0 to unplanned
Updated by liaham almost 4 years ago
- Status changed from New to Closed
- Target version changed from unplanned to 4.1.0
- % Done changed from 0 to 100
Updated by liaham almost 4 years ago
See also commit:291c3bd9 where Redmine Project Types Relations overwrites the scope.
Updated by circle_admin almost 4 years ago
- Target version changed from 4.1.0 to 4.0.3
Actions