Skip to content
Snippets Groups Projects

No BSO e-mail if current user is Owner

Merged Angelo Gulina requested to merge ag/441796-bso-email-owner-no-current-user-owner into master

What does this MR do and why?

Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/441796 and expands the functionality introduced with !146302 (merged). When the Owner is the one adding members (i.e., the current user), we skip sending the e-mail.

Note that this is a feature under development, behind a feature flag.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Example below:

  1. In rails console enable the FF

    Feature.enable(:block_seats_overages)
  2. Visit any group or project with N seats in subscription

  3. Make sure your logged in user has Owner role

  4. Make sure that all seats are occupied

  5. Try to add another members

  6. Check http://127.0.0.1:3000/rails/letter_openerthere should be no email

Alternatively, the template is available at http://localhost:3000/rails/mailers/notify/no_more_seats -->

Edited by Angelo Gulina

Merge request reports

Merged results pipeline #1259464744 passed

Pipeline: E2E GDK

#1259494171

    Pipeline: E2E Omnibus GitLab EE

    #1259496459

      Pipeline: TRIGGERED_EE_PIPELINE

      #1259470811

        +2

        Merged results pipeline passed for 68e53000

        Test coverage 81.40% (9.59%) from 2 jobs

        Merged by Michael KozonoMichael Kozono 11 months ago (Apr 19, 2024 3:32am UTC)

        Loading

        Pipeline #1259573763 passed

        Pipeline passed for 868a9558 on master

        Test coverage 64.56% (9.59%) from 2 jobs
        10 environments impacted.

        Activity

        Filter activity
        • Approvals
        • Assignees & reviewers
        • Comments (from bots)
        • Comments (from users)
        • Commits & branches
        • Edits
        • Labels
        • Lock status
        • Mentions
        • Merge request status
        • Tracking
        Please register or sign in to reply
        Loading