Commit Graph

92 Commits

Author SHA1 Message Date
GitLab Bot 06076be6b8 Add latest changes from gitlab-org/gitlab@master 2025-05-16 21:12:09 +00:00
GitLab Bot 2fa3b3a026 Add latest changes from gitlab-org/gitlab@master 2025-02-20 00:11:54 +00:00
GitLab Bot 3134494107 Add latest changes from gitlab-org/gitlab@master 2025-02-03 14:30:56 +00:00
GitLab Bot 673391836f Add latest changes from gitlab-org/gitlab@master 2024-11-13 18:32:06 +00:00
GitLab Bot 62d12a8a8d Add latest changes from gitlab-org/gitlab@master 2024-11-04 12:16:26 +00:00
GitLab Bot 6a4ec0399b Add latest changes from gitlab-org/gitlab@master 2024-05-13 12:17:47 +00:00
GitLab Bot f6939c144e Add latest changes from gitlab-org/gitlab@master 2024-04-26 03:17:39 +00:00
GitLab Bot 9adb0b9ffb Add latest changes from gitlab-org/gitlab@master 2023-09-19 21:13:17 +00:00
GitLab Bot d30dfdfd05 Add latest changes from gitlab-org/gitlab@master 2023-09-15 21:11:56 +00:00
GitLab Bot 571b02efc9 Add latest changes from gitlab-org/gitlab@master 2023-05-08 12:13:55 +00:00
GitLab Bot cea01cb817 Add latest changes from gitlab-org/gitlab@master 2023-01-26 18:07:51 +00:00
GitLab Bot f8edcff7e9 Add latest changes from gitlab-org/gitlab@master 2022-12-22 03:09:39 +00:00
GitLab Bot 8228f6e154 Add latest changes from gitlab-org/gitlab@master 2022-12-07 09:07:12 +00:00
GitLab Bot 312ac59328 Add latest changes from gitlab-org/gitlab@master 2022-06-30 09:10:05 +00:00
GitLab Bot e8e22b384c Add latest changes from gitlab-org/gitlab@master 2022-03-07 12:16:11 +00:00
GitLab Bot 89bfc148f9 Add latest changes from gitlab-org/gitlab@master 2022-02-24 06:13:09 +00:00
GitLab Bot 3b85f5e4a1 Add latest changes from gitlab-org/gitlab@master 2021-09-16 09:09:11 +00:00
GitLab Bot 7b69070a74 Add latest changes from gitlab-org/gitlab@master 2021-09-14 09:11:32 +00:00
GitLab Bot 0ae8428c8e Add latest changes from gitlab-org/gitlab@master 2021-05-11 21:10:21 +00:00
GitLab Bot 84e3154595 Add latest changes from gitlab-org/gitlab@master 2020-11-23 18:09:14 +00:00
GitLab Bot f3db01da50 Add latest changes from gitlab-org/gitlab@master 2020-11-06 18:09:07 +00:00
GitLab Bot c93374099a Add latest changes from gitlab-org/gitlab@master 2020-11-06 00:09:14 +00:00
GitLab Bot 99551d4458 Add latest changes from gitlab-org/gitlab@master 2020-10-20 06:09:03 +00:00
GitLab Bot ed7568cc80 Add latest changes from gitlab-org/gitlab@master 2020-10-16 09:09:06 +00:00
GitLab Bot 93960490b8 Add latest changes from gitlab-org/gitlab@master 2020-10-14 18:08:47 +00:00
GitLab Bot 90156f527b Add latest changes from gitlab-org/gitlab@master 2020-08-12 06:09:53 +00:00
GitLab Bot 6110935892 Add latest changes from gitlab-org/gitlab@master 2020-07-17 06:09:11 +00:00
GitLab Bot d9aac35d79 Add latest changes from gitlab-org/gitlab@master 2020-07-13 18:09:16 +00:00
GitLab Bot 4d5ee2b814 Add latest changes from gitlab-org/gitlab@master 2020-05-27 15:08:11 +00:00
GitLab Bot d8c06be498 Add latest changes from gitlab-org/gitlab@master 2019-11-14 12:06:30 +00:00
GitLab Bot b7dfe2ae40 Add latest changes from gitlab-org/gitlab@master 2019-09-13 13:26:31 +00:00
Markus Koller f1926b321d
Add controller concern for paginated collections
We had similar code in a few places to redirect to the last page if
the given page number is out of range. This unifies the handling in a
new controller concern and adds usage of it in all snippet listings.
2019-09-10 15:24:29 +02:00
George Koltsov 8bcc47ac02 Add SortingPreference concern
Sorting preference functionality has been extracted
from `IssuableCollections` to a new `SortingPreference`
concern in order to reuse this functionality in projects
(and groups in the future).
2019-08-21 10:13:45 +00:00
Pavel Shutsin 55320ff695 Add inheritance flexibility to issuable collections 2019-08-06 11:38:50 +03:00
Alexandru Croitor 09163e423a Expose merge requests count based on user access
Count issues related merge requests based on user access level. And
issue can have related MRs from projects where user does not have
access so the number of related merge requests should be adjusted
based on user's ability to access the related MRs.

https://gitlab.com/gitlab-org/gitlab-ce/issues/59581
2019-06-18 12:46:46 +03:00
Riccardo Padovani b33fb07ef9 Search issuables by iids 2019-06-18 07:45:47 +00:00
Brett Walker 40b67a4f6a Allow issues to be sorted by relative_position
- adding a "Manual" option to the dropdown
- show 100 issues list when manually sorting
2019-05-28 11:36:10 -05:00
Oswaldo Ferreira ca884980ee [CE] Support multiple assignees for merge requests
Backports https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10161
(code out of ee/ folder).
2019-04-08 18:40:00 -03:00
Sean McGivern 10ceb33ba2 Extend CTE search optimisation to projects
When we use the `search` param on an `IssuableFinder`, we can run into
issues. We have trigram indexes to support these searches. On
GitLab.com, we often see Postgres's optimiser prioritise the (global)
trigram indexes over the index on `project_id`. For group and project
searches, we know that it will be quicker to filter by `project_id`
first, as it returns fewer rows in most cases.

For group issues search, we ran into this issue previously, and went
through the following iterations:

1. Use a CTE on the project IDs as an optimisation fence. This prevents
   the planner from disregarding the index on `project_id`.
   Unfortunately it breaks some types of sorting, like priority and
   popularity, as they sort on a joined table.
2. Use a subquery for listing issues, and a CTE for counts. The subquery
   - in the case of group lists - didn't help as much as the CTE, but
   was faster than not including it. We can safely use a CTE for counts
   as they don't have sorting.

Now, however, we're seeing the same issue in a project context. The
subquery doesn't help at all there (it would only return one row, after
all). In an attempt to keep total code complexity under control, this
commit removes the subquery optimisation and applies the CTE
optimisation only for sorts we know that are safe.

This means that for more complicated sorts (like priority and
popularity), the search will continue to be very slow. If this is a
high-priority issue, we can consider introducing further optimisations,
but this finder is already very complicated and additional complexity
has a cost.

The group CTE optimisation is controlled by the same feature flag as
before, `attempt_group_search_optimizations`, which is enabled by
default. The new project CTE optimisation is controlled by a new feature
flag, `attempt_project_search_optimizations`, which is disabled by
default.
2019-04-04 12:36:22 +01:00
Kamil Trzciński a555a227dd
Merge branch 'filter-confidential-issues' into 'master'
Ability to filter confidential issues

Closes #50747

See merge request gitlab-org/gitlab-ce!24960
2019-02-26 12:24:39 +01:00
Michael Kozono e95b88a06d
Revert "Merge branch 'filter-confidential-issues' into 'master'"
This reverts commit d133bf84c6, reversing
changes made to 7981c0292b.
2019-02-25 12:42:34 -08:00
Robert Schilling bf7846bec0 Only use boolean parameters internally
Use internally only boolean params.
2019-02-22 14:55:07 +01:00
Robert Schilling bd9ae901ec Ability to filter confidential issues
Add a new search bar filter for confidential issues. Add filtering
support to the IssuesFinder.
2019-02-21 14:02:38 +01:00
Mario de la Ossa 49c74068ae
Save sorting preference for Issues/MRs in BE
In order to let users' sorting preferences transfer between devices, we
save the preference for issues and MRs (one preference for issues, one
for MRs) in the backend inside the UserPreference object
2019-01-28 12:48:05 -06:00
Felipe Artur b80dca82f5 Do not save user preferences on read-only mode 2018-12-12 16:15:58 +00:00
Douwe Maan f06da1c44d Merge branch 'move-group-issues-search-cte-up-the-chain' into 'master'
Add a flag to use a subquery for group issues search

See merge request gitlab-org/gitlab-ce!23445
2018-12-07 11:14:21 +00:00
Fatih Acet fbb4f15d1b Sort issues and merge requests in ascending and descending order 2018-12-06 16:57:19 +00:00
Felipe Artur 1dbebd543e [CE backport]Add sort direction button with sort dropdown for epics 2018-12-03 10:46:47 -02:00
Sean McGivern 7fd5dbf9db Add a flag to use a subquery for group issues search
We already had a flag to use a CTE, but this broke searching in some
cases where we need to sort by a joined table. Disabling the CTE flag
makes searches much slower.

The new flag, to use a subquery, makes them slightly slower than the
CTE, while maintaining correctness. If both it and the CTE flag are
enabled, the subquery takes precedence.
2018-11-30 11:57:56 +00:00
Heinrich Lee Yu 2a53198324 Refactor whitelisting of filter params 2018-11-15 01:12:07 +08:00