Commit Graph

73 Commits

Author SHA1 Message Date
GitLab Bot fc4faf47ac Add latest changes from gitlab-org/gitlab@master 2023-05-25 12:07:22 +00:00
GitLab Bot bbc241ab7f Add latest changes from gitlab-org/gitlab@master 2023-04-04 18:11:05 +00:00
GitLab Bot 3828d19ab2 Add latest changes from gitlab-org/gitlab@master 2023-03-14 18:08:55 +00:00
GitLab Bot a46f64e06d Add latest changes from gitlab-org/gitlab@master 2023-03-10 06:15:47 +00:00
GitLab Bot c19944d997 Add latest changes from gitlab-org/gitlab@master 2023-03-07 21:13:36 +00:00
GitLab Bot ed922e61f4 Add latest changes from gitlab-org/gitlab@master 2023-03-07 06:07:55 +00:00
GitLab Bot 99c1dfd5e3 Add latest changes from gitlab-org/gitlab@master 2022-12-23 15:09:45 +00:00
GitLab Bot ca5ebd2044 Add latest changes from gitlab-org/gitlab@master 2022-12-20 06:07:32 +00:00
GitLab Bot 4011c903cf Add latest changes from gitlab-org/gitlab@master 2022-11-29 09:09:09 +00:00
GitLab Bot 5cd8380e46 Add latest changes from gitlab-org/gitlab@master 2022-11-09 00:09:20 +00:00
GitLab Bot 59f37a9943 Add latest changes from gitlab-org/gitlab@master 2022-11-07 18:08:08 +00:00
GitLab Bot 9f4c898b9d Add latest changes from gitlab-org/gitlab@master 2022-10-13 21:10:36 +00:00
GitLab Bot 42afc4d656 Add latest changes from gitlab-org/gitlab@master 2022-03-03 15:16:42 +00:00
GitLab Bot bad127a0f6 Add latest changes from gitlab-org/gitlab@master 2022-02-22 18:17:57 +00:00
GitLab Bot ce07dcdcf5 Add latest changes from gitlab-org/gitlab@master 2021-11-12 12:10:27 +00:00
GitLab Bot 23f57fb31f Add latest changes from gitlab-org/gitlab@master 2021-11-02 18:12:13 +00:00
GitLab Bot 65688a5092 Add latest changes from gitlab-org/gitlab@master 2021-08-09 09:22:41 +00:00
GitLab Bot e5f2a04e9d Add latest changes from gitlab-org/gitlab@master 2021-06-29 12:08:48 +00:00
GitLab Bot 5e230e10b8 Add latest changes from gitlab-org/gitlab@master 2021-04-06 06:09:00 +00:00
GitLab Bot f1d39f5bea Add latest changes from gitlab-org/gitlab@master 2021-03-24 06:09:16 +00:00
GitLab Bot 74780f24f2 Add latest changes from gitlab-org/gitlab@master 2021-03-03 09:10:53 +00:00
GitLab Bot dcacb5daf7 Add latest changes from gitlab-org/gitlab@master 2021-01-11 18:10:43 +00:00
GitLab Bot fe25c98fa8 Add latest changes from gitlab-org/gitlab@master 2020-07-01 21:08:51 +00:00
GitLab Bot 4f5c8572e9 Add latest changes from gitlab-org/gitlab@master 2020-06-16 18:09:01 +00:00
GitLab Bot 3caf5a8a00 Add latest changes from gitlab-org/gitlab@master 2020-06-15 18:08:43 +00:00
GitLab Bot 52cacdb89b Add latest changes from gitlab-org/gitlab@master 2020-04-14 03:09:39 +00:00
GitLab Bot d80f3cd75e Add latest changes from gitlab-org/gitlab@master 2020-03-04 09:08:20 +00:00
GitLab Bot cefe554b7c Add latest changes from gitlab-org/gitlab@master 2020-02-18 06:09:06 +00:00
GitLab Bot a7df1d8717 Add latest changes from gitlab-org/gitlab@master 2020-01-08 15:08:01 +00:00
GitLab Bot 0be510a49f Add latest changes from gitlab-org/gitlab@master 2019-10-31 12:06:26 +00:00
Jan Provaznik f91b5d5840 Merge branch 'sh-project-feature-nplus-one' into 'master'
Remove N+1 SQL query loading project feature in dashboard

Closes #66482

See merge request gitlab-org/gitlab-ce!32169
2019-08-27 06:41:38 +00:00
Scott Hampton f093ceb4a0 Change misleading pipeline status tooltip
Some pipeline status icon tooltips were showing
"Commit: ..." which customers found to be
misleading since it was not the commit that was
failing but the pipeline.

We are changing all status icon tooltips to say
"Pipeline: ..." instead of "Commit: ..." now.
2019-08-23 21:28:46 +00:00
Stan Hu 29e60b0643 Remove N+1 SQL query loading project feature in dashboard
Projects that have a pipeline may need to check whether the user has
permission to read the build (`can?(current_user, :read_build,
project)`), which requires checking the `project_features` table.
This would cause an N+1 SQL query for each project.

This change also has a beneficial side effect that may avoid a race
condition. When a user deletes a project, the project is queued for
deletion and the user is redirected back to the dashboard page. However,
the following may happen:

1. The dashboard page may load this deleted project in the list of
20 projects.
2. The view will load the project pipeline status from the cache and
attempt to show each project.
3. When the view encounters the deleted project, it calls
`can?(current_user, :read_build, project)` to determine whether to
display the pipeline status.
4. Sidekiq deletes the project from the database.
5. However, since the deleted project is still loaded in memory, it will
attempt to call `project.project_feature.access_level`.
6. Since `project_feature` was not eager loaded, a lazy `SELECT` call is
made to the database.
7. This `SELECT` call returns nothing, and the user sees a 500 error.

By eager loading `project_feature`, we can ensure that we have a
consistent view and avoid records from being deleted later.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/66482
2019-08-23 14:11:23 -07:00
Thong Kuah 73e848850c Add frozen_string_literal to spec/features
Using the sed script from
https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-07-26 13:23:30 +12:00
Ezekiel Kigbo 6accad69e2
Added blank lines to meet style guide
Un-nest title variable output

Update spec test names

Rename sort_value_most_stars -> sort_value_stars_desc

Rename sorted_by_stars -> sorted_by_stars_desc

Renname sort_value_most_stars_asc -> sort_value_stars_asc

Invert feature check, assign feature condition to a variable

Inline conditional nav bar rendering

Invert conditional label

Added follow up task

Fix filters returning 0 projects show the wrong view

Move click action out of test expectation

Use proper variable name for project in before block

Rename projects_sort_admin_options_hash

Renamed projects_sort_admin_options_has to
old_projects_sort_options_hash as its not only used
on the admin screen

Fix extra whitespace errors

Stub project_list_filter_bar in the projects_helper specs

Added follow up task for `show_projects?`

Removed url test expectations
2019-05-06 16:42:44 +01:00
Ezekiel Kigbo 5f22907418
Update project list specs
Add tests to ensure search only executes with a button click or enter,
sort by Name, Last updated, Created date and Stars and tests for
Visibility filter
2019-05-06 16:41:47 +01:00
Brandon Labuschagne 2fd0d6e29b Improve empty state for starred projects
In this MR, a view for the empty state of projects has been added.
In addition, an svg for this has also been added.
2019-02-19 15:01:58 +00:00
Steve Azzopardi ae793606e2
Stop showing ci for guest users
When a user is a guest user, and the "Public Pipeline" is set to false
inside of "Settings > CI/CD > General" the commit status in the project
dashboard should not be shown.
2019-01-31 16:52:49 +01:00
George Tsiolis 25dcce0aa7 Add tests to check projects badge count 2019-01-15 22:06:24 +02:00
Douwe Maan e0054a9ab1 Revert "Merge branch 'blackst0ne-update-push-new-merge-request-url' into 'master'"
This reverts merge request !22526
2018-11-07 13:32:20 +00:00
blackst0ne 4fc53067f0 Fix specs 2018-10-26 14:09:41 +11:00
🙈 jacopo beschi 🙉 c49c596d17 Allows to sort projects by most stars 2018-09-21 17:06:55 +00:00
Lin Jen-Shin 4ee08b77bc Updates from `rubocop -a` 2018-07-09 21:13:08 +08:00
Francisco Javier López 837c3b3d73 Fix User role displayed on projects dashboard 2018-07-06 07:51:31 +00:00
Winnie Hellmann 3db2f32759 Enable Capybara/FeatureMethods cop 2018-07-05 06:32:05 +00:00
Imre Farkas 20dfe25c15 Export assigned issues in iCalendar feed 2018-05-31 14:01:04 +00:00
Lin Jen-Shin 28bae3b6bc Resolve "tree/master shows incorrect CI build status" 2018-04-11 13:54:55 +00:00
Stan Hu 9cb7e93f09 Fix project dashboard showing the wrong timestamps
Use the max of the `last_activity_at` and `last_repository_updated_at`
columns. The latter is updated only when a push happens, but the former is
updated whenever any activity (e.g. issue creation) happens.

Closes #27181
2018-03-05 19:11:50 -08:00
blackst0ne 27c95364b5 Replace '.team << [user, role]' with 'add_role(user)' in specs 2017-12-22 19:18:28 +11:00
Jacopo 0ce6785851 Replaces `tag: true` into `:tag` in the specs
Replaces all the explicit include metadata syntax in the specs (tag:
true) into the implicit one (:tag).
Added a cop to prevent future errors and handle autocorrection.
2017-10-07 13:57:54 +02:00