Skip to content

Updating Ultimate Status Widget Presenter to combined ultimate + Duo Enterprise discover link

Buck O'Leary requested to merge 488476-updating-cta-link into master

What does this MR do and why?

TL;DR - this MR:

  • Removes the placeholder GitLab Duo documentation link
  • Deprecates private #trial_discover_path method
  • Updates CTA Link to point to the new Ultimate + Duo Enterprise discover page for both flavors of this Widget

More Context:

Initially we were supporting multiple versions of this widget CTA link - now that the combined Ultimate + Duo Enterprise discover page is in review / about to go live we're updating the widget to point to the Discover page rather than the GitLab Duo documentation.

There is an existing Ultimate discover page - so even if this MR beats that to production we will have this pointing the right place.

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.

  1. Setup gdk to simulate SaaS - https://docs.gitlab.com/ee/development/ee_features.html#simulate-a-saas-instance and restart GDK
  2. create a group and make sure your logged in user is the owner
  3. In the gitlab admin UI, edit the group to be on an ultimate trial
  4. In rails console, change the trial, trial start and end date for the group
Group.last.gitlab_subscription.update_columns(trial_starts_on: Date.today, trial_ends_on: 60.days.from_now, trial: true)
  1. Make sure Duo Enterprise is provisioned
add_on_purchase = GitlabSubscriptions::AddOnPurchase.create(subscription_add_on_id: GitlabSubscriptions::AddOn.find_by(name: 'duo_enterprise').id, namespace: Group.last, started_at: Date.today, expires_on: 60.days.from_now, trial: true, quantity: 1, purchase_xid: '1', organization_id: 1)
  1. Go to group overview page and check super sidebar and ensure status widget appears.
  2. Manipulate associated dates to test widget states and test link

Related to #488476

Edited by Buck O'Leary

Merge request reports

Loading