Skip to content

Hide upcoming reconciliation banner for offline license

Mark Chao requested to merge 362042-banner into master

What does this MR do and why?

The scenario for offline license is covered by ManualQuarterlyCoTermBanner, which has a different wording.

Related to #362042

Screenshots or screen recordings

before after
Screenshot_2022-05-13_at_21-34-01_Dashboard___Admin_Area___GitLab Screenshot_2022-05-13_at_21-38-46_Dashboard___Admin_Area___GitLab

How to set up and validate locally

  1. Stub license to be offline by changing this method to always return true
  2. Start rails console
  3. Create UpcomingReconciliation manually and enable feature flag:
      attributes = {
         next_reconciliation_date: 7.days.from_now.to_date,
         display_alert_from: Date.today
       }
      GitlabSubscriptions::UpcomingReconciliation.create!(attributes)
      Feature.enable(:automated_email_provision)
  4. Start gitlab
  5. Log in as admin, visit admin dashboard http://localhost:3000/admin

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Mark Chao

Merge request reports