Skip to content

Fix upgrade message link in operations dashboard

What does this MR do and why?

Similar to !154376 (merged), this fixes a broken link in the operations dashboard, which is caused by a missing import to gl-link. This appears to have been broken since 2021?

This also fixes spacing around the link.

This is related to the effort in Add lint rule to catch undefined Vue components (#464700) to add an automated check to prevent these kinds of bugs.

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Go to the operations dashboard, at /-/operations
  2. Add a non-premium project to the dashboard (locally, the simplest albeit hacky way would be to add return true below def upgrade_required in ee/app/serializers/dashboard_operations_project_entity.rb)
  3. See that the link is rendered correctly
  4. See that the link links to the upgrade path (e.g. /groups/flightjs/-/billings)

Merge request reports