Skip to content

Hide old widgets when new extensions are enabled

What does this MR do and why?

Hide the old metrics widget and the old browser performance widget when shouldShowExtension is true, i.e. when the feature flag to show the new widget extensions is enabled, so we can start to roll out the new widgets without the old widgets also appearing.

Screenshots or screen recordings

with feature flag enabled, without this MR with feature flag enabled, with this MR
Screen_Shot_2022-06-09_at_13.04.32 old and new widgets show Screen_Shot_2022-06-09_at_13.03.54 only new widget shows

How to set up and validate locally

  1. have GitLab Premium
  2. git checkout main
  3. enable refactor_mr_widgets_extensions feature flag
  4. find/clone a project with metrics and open a merge request
  5. there are two metrics widgets
  6. git checkout mfluharty-hide-old-widgets-when-extensions-enabled
  7. refresh page, there should be only one metrics widget
  8. git checkout main
  9. find/clone a project with browser performance and open a merge request
  10. there are two browser performance widgets
  11. git checkout mfluharty-hide-old-widgets-when-extensions-enabled
  12. refresh page, there should be only one browser performance widget

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 Miranda Fluharty

Merge request reports