gitlab-org--gitlab-foss/spec/factories
Robert Speicher e64594ac44 Merge branch '21983-member-add_user-doesn-t-detect-existing-members-that-have-requested-access' into 'master'
Resolve "`Member.add_user`doesn't detect existing members that have requested access"

## What does this MR do?

This merge request handle the case when an access requester is added to a group or project (via the members page or the API).

In `Member.add_user`, if an access requester already exists, we simply accept their request (and set the `created_by`, `access_level` and `expires_at` attributes if given).

## Are there points in the code the reviewer needs to double check?

I've taken the opportunity to cleanup the whole `{Group,Project}Member.add_user*` methods since it was quite a mess.

## What are the relevant issue numbers?

Closes #21983

See merge request !6393
2016-10-02 11:42:57 +00:00
..
ci Remove schema annotations completely 2016-09-16 14:37:48 +03:00
abuse_reports.rb
appearances.rb
award_emoji.rb
boards.rb Add service to create a board list 2016-08-17 12:58:57 -03:00
broadcast_messages.rb TST: Use more accurate time windows so tests do not fail 2016-08-04 14:50:39 -04:00
commit_statuses.rb Pre-create all builds for Pipeline when a trigger is received 2016-08-11 15:22:35 +02:00
commits.rb
deploy_keys_projects.rb
deployments.rb Test the `CycleAnalytics::Summary` model. 2016-09-20 13:23:14 +05:30
emails.rb
environments.rb Add an URL field to Environments 2016-07-29 13:54:45 +02:00
events.rb Fix broken spec due to last_activity_at updates being throttled 2016-09-19 22:59:15 -07:00
file_uploader.rb
forked_project_links.rb
group_members.rb Add specs for ProjectTeam#fetch_members 2016-09-20 15:18:11 +03:00
groups.rb
identities.rb
issues.rb Ensure specs on sorting of issues in API are deterministic on MySQL 2016-09-12 15:44:41 +02:00
keys.rb
label_links.rb
labels.rb
lfs_objects.rb
lfs_objects_projects.rb
lists.rb Remove label_list factory 2016-08-17 12:58:58 -03:00
merge_requests.rb
milestones.rb Updated milestone count helper plus tests 2016-09-07 15:27:14 -05:00
namespaces.rb
notes.rb Optimize discussion notes resolving and unresolving 2016-09-06 12:14:09 -03:00
notification_settings.rb
oauth_access_tokens.rb
oauth_applications.rb
personal_access_tokens.rb
personal_snippets.rb
project_group_links.rb
project_hooks.rb api: expose wiki_page_events project hook field in the API 2016-08-24 10:33:51 -04:00
project_members.rb Allow Member.add_user to handle access requesters 2016-09-28 09:43:00 +02:00
project_snippets.rb
project_wikis.rb
projects.rb fix broken repo 500 errors in UI and added relevant specs 2016-09-29 16:58:14 +02:00
protected_branches.rb Fix failing tests relating to backporting ee!581. 2016-08-16 13:42:34 +05:30
releases.rb
sent_notifications.rb
service_hooks.rb
services.rb
snippets.rb
spam_logs.rb
system_hooks.rb
todos.rb Add approval required todos 2016-07-12 19:01:09 +01:00
u2f_registrations.rb
user_agent_details.rb Further refactor and syntax fixes. 2016-08-15 17:20:57 -05:00
users.rb
wiki_pages.rb