Skip to content

Add membership CSV export to root group [RUN-AS-IF-FOSS] [RUN ALL RSPEC]

Max Woolf requested to merge 287940-group-csv-export into master

What does this MR do?

  • Adds ability for group owners to download list of group members as CSV.

It has multiple parts:

  • Frontend component to trigger download
  • Controller action that triggers a background worker
  • Background worker that generates the CSV and triggers the mailer
  • Mailer that emails the group owner with a copy of the CSV

Screenshots or Screencasts (strongly suggested)

Screenshot_2021-07-29_at_14.11.42 Screenshot_2021-07-29_at_14.13.43

Setup for testing

  1. Enable the development feature flag: echo "Feature.enable(:ff_group_membership_export)" | rails c
  2. Open a group
  3. (Optional) Modify members result list
  4. Use the Export as CSV button
  5. Check email response

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #287940 (closed)

Edited by Austin Regnery

Merge request reports