Project

General

Profile

Actions

Refactoring #254

closed

Provide a method for scoping the project type master on its index page

Added by liaham about 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
04/15/2021
Due date:
% Done:

100%

Estimated time:
Compatible Redmine Version:

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
Actions #1

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.

Actions #2

Updated by liaham almost 4 years ago

  • Status changed from New to Rejected
  • Target version changed from 4.1.0 to unplanned
Actions #3

Updated by liaham almost 4 years ago

  • Status changed from Rejected to New
Actions #4

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
Actions #5

Updated by liaham almost 4 years ago

See also commit:291c3bd9 where Redmine Project Types Relations overwrites the scope.

Actions #6

Updated by circle_admin almost 4 years ago

  • Target version changed from 4.1.0 to 4.0.3
Actions

Also available in: Atom PDF