- 24 Feb, 2017 7 commits
-
-
Rémy Coutable authored
Enable the RSpec/BeEql cop See merge request !1295
-
Douwe Maan authored
Deleting a user shouldn't delete associated issues. See merge request !862
-
Sean McGivern authored
Remove ProjectGitHook API Closes #1791 See merge request !1301
-
Robert Schilling authored
-
Achilleas Pipinellis authored
Document how to use filter-branch to reduce the repo file size Closes #1270 See merge request !914
-
Achilleas Pipinellis authored
[ci skip]
-
Robert Speicher authored
CE upstream: Thursday See merge request !1293
-
- 23 Feb, 2017 33 commits
-
-
Nick Thomas authored
-
Nick Thomas authored
-
Nick Thomas authored
-
Rémy Coutable authored
Fit GitAccess specs See merge request !1297
-
Rémy Coutable authored
Fix GitAccess specs Closes #28620 See merge request !9479
-
Jacob Schatz authored
Resolve "Test compiling frontend assets for production in CI" Closes #28450 See merge request !9396
-
Clement Ho authored
on branch deletion show loading icon and disabled the button See merge request !6761
-
Timothy Andrew authored
-
Timothy Andrew authored
- Add a `destroy_user` ability. This didn't exist before, and was implicit in other abilities (only admins could access the admin area, so only they could destroy all users; a user can only access their own account page, and so can destroy only themselves). - Grant this ability to admins, and when the current user is trying to destroy themselves. Disallow destroying ghost users in all cases. - Modify the `Users::DestroyService` to check this ability. Also check it in views to decide whether or not to show the "Delete User" button. - Add a short summary of the Ghost User to the bio.
-
Timothy Andrew authored
- Have `Uniquify` take a block instead of a Proc/function. This is more idiomatic than passing around a function in Ruby. - Block a user before moving their issues to the ghost user. This avoids a data race where an issue is created after the issues are migrated to the ghost user, and before the destroy takes place. - No need to migrate issues (to the ghost user) in a transaction, because we're using `update_all` - Other minor changes
-
Timothy Andrew authored
The default (false) is not strictly required, and this lets us avoid a potentially expensive migration
-
Timothy Andrew authored
1. Refactoring and specs in the `Uniquify` class. 2. Don't use the `AdvisoryLocking` class. Similar functionality is provided (backed by Redis) in the `ExclusiveLease` class.
-
Timothy Andrew authored
Rather than using a separate `ghost` state. This lets us have the benefits of both ghost and blocked users (ghost: true, state: blocked) without having to rewrite a number of queries to include cases for `state: ghost`.
-
Timothy Andrew authored
1. Use an advisory lock to guarantee the absence of concurrency in `User.ghost`, to prevent data races from creating more than one ghost, or preventing the creation of ghost users by causing validation errors. 2. Use `update_all` instead of updating issues one-by-one.
-
Timothy Andrew authored
1. Create a `Uniquify` class, which generalizes the process of generating unique strings, by accepting a function that defines what "uniqueness" means in a given context. 2. WIP: Make sure tests for `Namespace` pass, add more if necessary. 3. WIP: Add tests for `Uniquify`
-
Timothy Andrew authored
- "Associated" issues are issues the user has created + issues that the user is assigned to. - Issues that a user owns are transferred to a "Ghost User" (just a regular user with `state = 'ghost'` that is created when `User.ghost` is called). - Issues that a user is assigned to are moved to the "Unassigned" state. - Fix a spec failure in `profile_spec` — a spec was asserting that when a user is deleted, `User.count` decreases by 1. After this change, deleting a user creates (potentially) a ghost user, causing `User.count` not to change. The spec has been updated to look for the relevant user in the assertion.
-
Timothy Andrew authored
We already skip sending notifications to blocked users. Simply add ghost users to this list.
-
Timothy Andrew authored
-
Robert Speicher authored
Enable (and disable) more RuboCops See merge request !9432
-
Kamil Trzciński authored
Fix reprocessing skipped jobs when retrying pipeline See merge request !9436
-
Robert Speicher authored
Enable (and disable) more rubocops See merge request !1290
-
Sean McGivern authored
These specs never ran due to incorrect indentation: the `context` blocks were inside the `before`.
-
Rémy Coutable authored
Use grape validation in the members API. See merge request !9471
-
Rémy Coutable authored
Use POST in the endpoint description for :resource/unsubscribe See merge request !9469
-
Robert Speicher authored
Pages 0.3.2 See merge request !9474
-
Sean McGivern authored
Fix MR changes tab size count Closes #27563 See merge request !9091
-
Douwe Maan authored
-
Douwe Maan authored
-
Douwe Maan authored
-
Douwe Maan authored
-
Douwe Maan authored
-
Douwe Maan authored
This reverts commit e00fb2bdc2090e9cabeb1eb35a2672a882cc96e9. # Conflicts: # .rubocop.yml # .rubocop_todo.yml # lib/gitlab/ci/config/entry/global.rb # lib/gitlab/ci/config/entry/jobs.rb # spec/lib/gitlab/ci/config/entry/factory_spec.rb # spec/lib/gitlab/ci/config/entry/global_spec.rb # spec/lib/gitlab/ci/config/entry/job_spec.rb # spec/lib/gitlab/ci/status/build/factory_spec.rb # spec/lib/gitlab/incoming_email_spec.rb
-
Douwe Maan authored
This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
-