summaryrefslogtreecommitdiff
path: root/app/finders/group_descendants_finder.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'fix-misspellings-app-comments' into 'master'Rémy Coutable2019-02-261-1/+1
| | | | | Fix misspellings in app/spec comments See merge request gitlab-org/gitlab-ce!25517
* Revert "Merge branch 'fix-misspellings-app-comments' into 'master'"Michael Kozono2019-02-251-1/+1
| | | | | This reverts commit 9202bbd129537a698b986e6295d0c783b5a84815, reversing changes made to 4b282e9ce1ae246c4538b3ede18d1380ea778029.
* Fix misspellings in app/spec commentsTakuya Noguchi2019-02-251-1/+1
| | | | Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
* Rename GroupHierarchy into ObjectHierarchyJarka Košanová2018-12-191-3/+3
| | | | | | - we now use the hierarchy class also for epics - also rename supports_nested_groups? into supports_nested_objects? - move it to a concern
* Fix default sorting for subgroups and projects list53290-incorrect-project-list-order-select-default-labelJacopo2018-11-141-1/+1
|
* Whitelist none method from ActiveRecord::Queryingda-rubocop-whitelist-active-record-noneDouglas Barbosa Alexandre2018-10-311-2/+0
|
* Merge branch 'frozen-string-app-finders-graphql' into 'master'Stan Hu2018-09-131-0/+2
|\ | | | | | | | | Enable frozen string in app/graphql + app/finders See merge request gitlab-org/gitlab-ce!21681
| * Enable frozen string in app/graphql + app/findersgfyoung2018-09-111-0/+2
| | | | | | | | Partially addresses #47424.
* | Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+20
|/ | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Resolve "Improve handling of projects shared with a group"Dennis Tang2018-09-071-1/+1
|
* Revert "Don't include projects shared as group-descendants"Bob Van Landuyt2018-04-181-4/+2
| | | | | | This reverts commit 2c3c5b35549185080296670cfe6710aa80f99944. Revisit this after https://gitlab.com/gitlab-org/gitlab-ce/issues/45441
* Preload ancestors for subgroups matching filterBob Van Landuyt2018-01-221-11/+24
| | | | | | | Otherwise we'd only preload the ancestors that would fit the page. That way, when a search result was on the first page, but the ancestor didn't fit the page anymore. We would not have the preloaded ancestor when rendering the hierarchy.
* Don't include projects shared as group-descendantsBob Van Landuyt2018-01-221-2/+4
| | | | | When a project is shared with a group, it should not be included as a descendant on the group dashboard.
* Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉2018-01-111-0/+3
|
* Pass `archived:` as a keyword argumentBob Van Landuyt2017-10-121-2/+2
|
* Handle archived projects in the `GroupDescendantsFinder`Bob Van Landuyt2017-10-111-9/+28
|
* Use the `GroupProjectsFinder` to find direct childrenBob Van Landuyt2017-10-101-4/+5
|
* Some cleanup in the GroupDescendantFinderBob Van Landuyt2017-10-101-8/+5
|
* Don't load unneeded elements in GroupsController#showBob Van Landuyt2017-10-101-6/+2
|
* Use `EXISTS` instead of `WHERE id IN (...)` for authorized groupsBob Van Landuyt2017-10-101-16/+14
|
* Load counts everywhere we render a group treeBob Van Landuyt2017-10-051-26/+2
|
* Optimize queries and pagination in `GroupDescendantsFinder`Bob Van Landuyt2017-10-051-61/+32
|
* Split up adding ancestors for projectsBob Van Landuyt2017-10-041-4/+13
|
* Fix bug with project paginationBob Van Landuyt2017-10-041-2/+26
| | | | | When projects were listed after groups, the projects that would also have been listed on the last page containing groups would be repeated.
* Improve count queries and move them to contantsBob Van Landuyt2017-10-041-27/+28
|
* Only preload ancestors for search results in the specified parentBob Van Landuyt2017-10-041-1/+13
| | | | | | | | | | | | | When filtering we want all to preload all the ancestors upto the specified parent group. - root - subgroup - nested-group - project So when searching 'project', on the 'subgroup' page we want to preload 'nested-group' but not 'subgroup' or 'root'
* Make sure all queries are limited to the page sizeBob Van Landuyt2017-10-041-17/+27
| | | | And fix some pagination bugs
* Make sure the user only sees groups he's allowed to seeBob Van Landuyt2017-10-041-2/+12
|
* Fix nesting bug when rendering children of a shared subgroupBob Van Landuyt2017-10-041-1/+1
|
* Minimize the number of queries by preloading counts and ancestorsBob Van Landuyt2017-10-041-13/+50
| | | | | | | | By preloading the count of members, projects and subgroups of a group, we don't need to query them later. We also preload the entire hierarchy for a search result and include the counts so we don't need to query for them again
* Only take unarchived projects into accountBob Van Landuyt2017-10-041-2/+2
| | | | When finding children for a group
* Improve number of queriesBob Van Landuyt2017-10-041-1/+1
| | | | And document what extra queries are still being performed.
* Rename `GroupHierarchy` to `GroupDescendant`Bob Van Landuyt2017-10-041-0/+92