Commit Graph

20 Commits

Author SHA1 Message Date
GitLab Bot 93960490b8 Add latest changes from gitlab-org/gitlab@master 2020-10-14 18:08:47 +00:00
GitLab Bot 640e72ca92 Add latest changes from gitlab-org/gitlab@master 2020-06-04 03:08:05 +00: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
Riccardo Padovani b33fb07ef9 Search issuables by iids 2019-06-18 07:45:47 +00:00
Heinrich Lee Yu ff627511c0 Add label_name as scalar param of IssuableFinder
This was removed by a previous MR but broke some links
2019-04-23 08:42:04 +08:00
gfyoung 93a44e135b Add some frozen string to spec/**/*.rb
Adds frozen string to the following:

* spec/bin/**/*.rb
* spec/config/**/*.rb
* spec/controllers/**/*.rb

xref https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-04-15 10:17:05 +00:00
Igor 5b6db251a8 Consider array params on rendering MR list on dashboard
This fixes the bug, when approver filter is provided,
but dashboard asks to enter any filter
2019-04-04 14:54:25 +00: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
Jasper Maes de399c4a49 Fix deprecation: Comparing equality between ActionController::Parameters and a Hash is deprecated 2018-12-16 13:45:19 +01:00
Felipe Artur 1dbebd543e [CE backport]Add sort direction button with sort dropdown for epics 2018-12-03 10:46:47 -02:00
Heinrich Lee Yu 2a53198324 Refactor whitelisting of filter params 2018-11-15 01:12:07 +08:00
Stan Hu b9cee4ba3c Set issuable_sort and diff_view cookies to secure when possible
Closes #49120
2018-09-03 22:37:36 -07:00
Sean McGivern c2fc40668c Refactor IssuableFinder to extract model-specific logic
By extracting a new `filter_items` method, we can override that in the
IssuesFinder and MergeRequestsFinder separately, so we don't need checks that
the model is the correct one, because we can just use the class we're in to know
that.

We can do the same for the VALID_PARAMS constant, by making it a class method.
2018-02-21 10:31:29 +00:00
Hiroyuki Sato 16caf95ccb Fix filter by my reaction is not working 2017-11-13 18:20:02 +09:00
Jarka Kadlecova ad6e650262 Refactor issuables index actions 2017-11-07 14:34:12 +01:00
Yorick Peterse 42062a454a
Re-use issue/MR counts for the pagination system
This changes the issue and MR index pages so the pagination system
re-uses the output of the COUNT(*) query used to calculate the number of
rows per state (opened, closed, etc). This removes the need for an
additional COUNT(*) on both pages.
2017-09-05 11:53:45 +02:00