summaryrefslogtreecommitdiff
path: root/app/finders
Commit message (Collapse)AuthorAgeFilesLines
* Include subgroup issuables on the group page30106-group-issuesJarka Kadlecová2018-02-012-2/+13
|
* Use limit for search count queriessearch-100Jan Provaznik2018-01-231-1/+10
| | | | | | | | | | | | | | | | | | | | | | Search query is especially slow if a user searches a generic string which matches many records, in such case search can take tens of seconds or time out. To speed up the search query, we search only for first 1000 records, if there is >1000 matching records we just display "1000+" instead of precise total count supposing that with such amount the exact count is not so important for the user. Because for issues even limited search was not fast enough, 2-phase approach is used for issues: first we use simpler/faster query to get all public issues, if this exceeds the limit, we just return the limit. If the amount of matching results is lower than limit, we re-run more complex search query (which includes also confidential issues). Re-running the complex query should be fast enough in such case because the amount of matching issues is lower than limit. Because exact total_count is now limited, this patch also switches to to "prev/next" pagination. Related #40540
* 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.
* Merge branch 'issue_37143_2' into 'master'Sean McGivern2018-01-181-1/+1
|\ | | | | | | | | | | | | Remove unnecessary query from labels dropdown Closes #37143 See merge request gitlab-org/gitlab-ce!16520
| * Remove unnecessary query from labels filterFelipe Artur2018-01-181-1/+1
| |
* | Merge branch 'milestones-finder-order-fix' into 'security-10-3'Robert Speicher2018-01-161-6/+2
|/ | | | | | | | | | Remove order param from the MilestoneFinder See merge request gitlab/gitlabhq!2259 (cherry picked from commit 14408042e78f2ebc2644f956621b461dbfa3d36d) 155881e7 Remove order param from the MilestoneFinder
* Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉2018-01-112-0/+4
|
* Merge branch 'issue_40500' into 'master'Sean McGivern2018-01-051-10/+5
|\ | | | | | | | | | | | | Improve filtering issues by label performance Closes #40500 and #37143 See merge request gitlab-org/gitlab-ce!16136
| * Improve filtering issues by label performanceissue_40500Felipe Artur2018-01-051-10/+5
| |
* | EE-BACKPORT group boardsFelipe Artur2018-01-041-2/+17
|/
* Merge branch '35616-move-k8-to-cluster-page' into ↵Kamil Trzcinski2017-12-051-1/+1
|\ | | | | | | cluster-page-with-list-clusters
| * Added default order to UserFinderFrancisco Javier López2017-12-041-1/+1
| |
* | Merge remote-tracking branch 'origin/list-multiple-clusters' into ↵Kamil Trzcinski2017-12-031-0/+29
|\ \ | |/ |/| | | cluster-page-with-list-clusters
| * Use attr_reader instead of instance variablesMatija Čupić2017-11-281-4/+4
| |
| * Refactor ClustersFinderMatija Čupić2017-11-281-10/+20
| |
| * Use global project variable in ClustersFinderMatija Čupić2017-11-271-3/+3
| |
| * Fix mixup with enabled/disabled in ClustersFinderMatija Čupić2017-11-271-2/+2
| |
| * Create ClustersFinderMatija Čupić2017-11-271-0/+19
| |
* | Merge branch 'dm-search-pattern' into 'master'Sean McGivern2017-11-291-2/+1
|\ \ | | | | | | | | | | | | | | | | | | Use fuzzy search with minimum length of 3 characters where appropriate Closes #40512 See merge request gitlab-org/gitlab-ce!15592
| * | Use Gitlab::SQL::Pattern where appropriateDouwe Maan2017-11-241-2/+1
| |/
* | Refactorize jobs finding logicTomasz Maczukin2017-11-281-0/+22
|/
* Adds Rubocop rule for line break after guard clauseJacopo2017-11-161-0/+1
| | | | Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
* Merge branch 'fix-filter-by-my-reaction' into 'master'Sean McGivern2017-11-141-0/+1
|\ | | | | | | | | | | | | Fix filter by my reaction is not working Closes #39930 See merge request gitlab-org/gitlab-ce!15345
| * Fix filter by my reaction is not workingHiroyuki Sato2017-11-131-0/+1
| |
* | Fix users autocomplete in a subgroupSean McGivern2017-11-131-1/+1
|/ | | | | We should include users who have access from parent groups, not just direct members of the current group.
* Support custom attributes on groupsMarkus Koller2017-11-061-1/+7
|
* Support custom attributes on projectsMarkus Koller2017-11-061-0/+3
|
* Add case insensitive branches searchGeorge Andrinopoulos2017-10-231-1/+1
|
* 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
|
* Merge branch 'master' into bvl-group-treesBob Van Landuyt2017-10-101-0/+18
|\
| * Find branches in all projects in the fork networkBob Van Landuyt2017-10-071-1/+1
| |
| * Allow creating merge requests across forks of a projectBob Van Landuyt2017-10-071-0/+18
| |
* | 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.