diff options
author | Stan Hu <stanhu@gmail.com> | 2019-05-18 18:06:20 +0300 |
---|---|---|
committer | George Tsiolis <tsiolis.g@gmail.com> | 2019-08-05 11:21:41 +0300 |
commit | caac3104c4e77a40ad8ec3d1275f7b47c0fc8f68 (patch) | |
tree | 2c0fec3d934326d1b28401289dfd330e13c6b7b5 /spec/factories/group_members.rb | |
parent | 523e00abd74a9067fb17129faa1d35bfa107e04a (diff) |
Make it easier to find invited group members
We had a number of team members struggle to find invited members of a
group. Searching for the e-mail address did not work because search only
works with members with user accounts.
This commit changes two things:
1. Breaks out the invited members into a separate table.
2. Adds search capability for the invited members.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/61948
Diffstat (limited to 'spec/factories/group_members.rb')
-rw-r--r-- | spec/factories/group_members.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/factories/group_members.rb b/spec/factories/group_members.rb index 3bf9cdef253..8dab6c71b06 100644 --- a/spec/factories/group_members.rb +++ b/spec/factories/group_members.rb @@ -16,7 +16,9 @@ FactoryBot.define do trait(:invited) do user_id nil invite_token 'xxx' - invite_email 'email@email.com' + sequence :invite_email do |n| + "email#{n}@email.com" + end end end end |