Commit Graph

139 Commits

Author SHA1 Message Date
GitLab Bot bdcefdc8e7 Add latest changes from gitlab-org/gitlab@master 2024-10-29 12:19:01 +00:00
GitLab Bot cb49a8c472 Add latest changes from gitlab-org/gitlab@master 2024-10-01 18:11:50 +00:00
GitLab Bot 5559cc34c1 Add latest changes from gitlab-org/gitlab@master 2024-08-09 18:10:56 +00:00
GitLab Bot cd63ffdd51 Add latest changes from gitlab-org/gitlab@master 2024-06-24 12:19:40 +00:00
GitLab Bot 81151db6d6 Add latest changes from gitlab-org/gitlab@master 2024-04-19 18:14:03 +00:00
GitLab Bot 6ba581b887 Add latest changes from gitlab-org/gitlab@master 2024-01-25 15:09:38 +00:00
GitLab Bot 823d2f9a2c Add latest changes from gitlab-org/gitlab@master 2024-01-18 12:08:09 +00:00
GitLab Bot c5da163db1 Add latest changes from gitlab-org/gitlab@master 2023-10-23 18:11:07 +00:00
GitLab Bot c77b780ee0 Add latest changes from gitlab-org/gitlab@master 2023-06-06 06:08:48 +00:00
GitLab Bot 5cb0fa35e7 Add latest changes from gitlab-org/gitlab@master 2023-04-27 12:16:04 +00:00
GitLab Bot c54e7283c9 Add latest changes from gitlab-org/gitlab@master 2023-02-15 18:09:19 +00:00
GitLab Bot 709948b7a6 Add latest changes from gitlab-org/gitlab@master 2023-01-20 15:08:53 +00:00
GitLab Bot d4b2ad25a5 Add latest changes from gitlab-org/gitlab@master 2023-01-09 21:08:39 +00:00
GitLab Bot 7eca3f5662 Add latest changes from gitlab-org/gitlab@master 2022-05-13 15:07:43 +00:00
GitLab Bot b6a2658061 Add latest changes from gitlab-org/gitlab@master 2022-05-02 21:09:12 +00:00
GitLab Bot 739467f1fa Add latest changes from gitlab-org/gitlab@master 2022-03-14 15:09:32 +00:00
GitLab Bot 6aa920eeb4 Add latest changes from gitlab-org/gitlab@master 2022-03-14 09:08:52 +00:00
GitLab Bot 78cfc7cf4a Add latest changes from gitlab-org/gitlab@master 2022-02-15 15:15:04 +00:00
GitLab Bot 15f5da601b Add latest changes from gitlab-org/gitlab@master 2021-12-09 12:15:43 +00:00
GitLab Bot f50cb4f63f Add latest changes from gitlab-org/gitlab@master 2021-10-27 15:13:41 +00:00
GitLab Bot 68c476dbd8 Add latest changes from gitlab-org/gitlab@master 2021-05-17 15:10:15 +00:00
GitLab Bot d3a97bfbd2 Add latest changes from gitlab-org/gitlab@master 2021-05-03 06:10:30 +00:00
GitLab Bot 367e7db836 Add latest changes from gitlab-org/gitlab@master 2021-02-15 21:08:59 +00:00
GitLab Bot 6092dcc437 Add latest changes from gitlab-org/gitlab@master 2020-10-02 12:09:03 +00:00
GitLab Bot ce493944f4 Add latest changes from gitlab-org/gitlab@master 2020-06-19 18:08:39 +00:00
GitLab Bot 2e26679b96 Add latest changes from gitlab-org/gitlab@master 2020-05-07 03:09:46 +00:00
GitLab Bot c8f773a859 Add latest changes from gitlab-org/gitlab@master 2020-01-30 21:08:47 +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
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
Cindy Pallares fe5f75930e
Merge branch 'security-fix-pat-web-access' into 'master'
[master] Resolve "Personal access token with only `read_user` scope can be used to authenticate any web request"

See merge request gitlab/gitlabhq!2583
2018-11-28 19:13:59 -05:00
Heinrich Lee Yu 2a53198324 Refactor whitelisting of filter params 2018-11-15 01:12:07 +08:00
Heinrich Lee Yu 91f235df08 Fix tests 2018-11-13 15:27:42 +08:00
Heinrich Lee Yu 2da7759271 Apply new search bar on issues and merge request dashboards 2018-11-13 15:27:42 +08:00
Rémy Coutable d2afddfeff
Refactor EventFilter and increase its test coverage
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-09-26 18:34:26 +02:00
gfyoung 73322a0e55 Enable frozen string in app/controllers/**/*.rb
Enables frozen string for the following:

* app/controllers/*.rb
* app/controllers/admin/**/*.rb
* app/controllers/boards/**/*.rb
* app/controllers/ci/**/*.rb
* app/controllers/concerns/**/*.rb

Partially addresses #47424.
2018-09-18 21:22:45 -07:00
Jasper Maes ce30d14be5 Rails5 fix expected: 0 times with any arguments received: 1 time with arguments: DashboardController 2018-06-20 10:59:34 +02:00
Jan Provaznik d10416e231 Fixed dashboard filtering tests 2018-04-03 20:19:20 +02:00
Jan Provaznik c1b71e2fa1 Check if at least one filter is set on dashboard
When listing issues and merge requests on dasboard page,
make sure that at least one filter is enabled.

User's id is used in search autocomplete widget instead
of username, which allows presetting user in filter dropdowns.

Related to #43246
2018-04-03 20:19:09 +02:00
Francisco Javier López bf0331dc72 Resolve "DashboardController#activity.json is slow due to SQL" 2017-11-06 16:52:56 +00:00
Yorick Peterse aac1de46c9
Use a specialized class for querying events
This changes various controllers to use the new EventCollection class
for retrieving events. This class uses a JOIN LATERAL query on
PostgreSQL to retrieve queries in a more efficient way, while falling
back to a simpler / less efficient query for MySQL.

The EventCollection class also includes a limit on the number of events
to display to prevent malicious users from cycling through all events,
as doing so could put a lot of pressure on the database.

JOIN LATERAL is only supported on PostgreSQL starting with version 9.3.0
and as such this optimisation is only used when using PostgreSQL 9.3 or
newer.
2017-08-10 17:45:49 +02:00
Toon Claes 1e5506d016 Remove some deprecated methods
To avoid the use of slow queries, remove some deprecated methods and encourage
the use of ProjectFinder to find projects.
2017-05-30 23:24:17 +02:00
Douwe Maan e45e540d1d Consistently display last push event widget 2017-05-25 15:21:30 -05:00
Oswaldo Ferreira aeb9db6753 Present group and dashboard MR list without grouping by project 2017-01-27 20:20:18 -02:00
Sean McGivern 97424ea544 Restrict starred projects to viewable ones
`User#starred_projects` doesn't perform any visibility checks. This has
a couple of problems:

1. It assumes a user can always view all of their starred projects in
   perpetuity (project not changed to private, access revoked, etc.).
2. It assumes that we'll only ever allow a user to star a project they
   can view. This is currently the case, but bugs happen.

Add `User#viewable_starred_projects` to filter the starred projects by
those the user either has explicit access to, or are public or
internal. Then use that in all places where we list the user's starred
projects.
2016-05-10 18:13:52 +01:00
Rémy Coutable 7dc16346bb Fix an issue causing the Dashboard/Milestones page to be blank 2016-03-23 12:02:15 +01:00
Rémy Coutable 733ae58798 Dedupe labels in labels selector in Dashboard pages
Also moved useless helper methods and directly to the
DashboardController.
2016-03-18 21:49:56 +01:00
Phil Hughes 0eecc21485 Updated controller with before_action
Fixed other issues based on feedback
2016-03-18 15:18:06 +00:00
Phil Hughes d847db79cb Fixes issue on dashboard issues
They would try to load JSON from a project even though it isn't a single project
2016-03-18 15:18:06 +00:00
Yorick Peterse 128a6411d2 Don't pluck project IDs for events
By instead using a sub-query we save ourselves the overhead of loading
any data into memory only to pass it on to another query.
2016-01-26 10:51:53 +01:00
Dmitriy Zaporozhets 3cebe9e780
Refactor duplciate code for groups_controller.rb and slack_service/note_message.rb
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-11-17 11:03:18 +01:00