Skip to content

Add ability to duplicate the common metrics dashboard

This is the FE issue for case 1 in this issue

Case 1: User is viewing a system dashboard (e.g. common_metrics.yml)

This dashboard cannot be modified directly by the user, so we offer the possibility to copy it to the repo:

  1. In the dashboard UI the user click on a button to update the dashboard tile
  2. In the backend, we would need to locate and copy the dashboard yml file into the local repository
  3. Then we will redirect the user to the Web IDE for updating .yml file
  4. User will update the file & commit

We might consider using a different term then Edit as we are doing a "save as"

Design Proposal

Introduce the option to "duplicate the dashboard" from within the dashboard selection dropdown. As we have different updates planned for this dropdown, what's implemented as part of this issue will depend on when the related issues are scheduled. Here's an outline of how this feature could look in the short, medium and longer terms, when we implement related dashboard improvement issues:

Short-term (ie, utilizing the current dashboard dropdown) Medium-term (ie, after #35288 (closed) is implemented Longer-term (ie, after #6019 (closed) is implemented
37238-1 37238-2 37238-3

Note: we are still discussing whether this should be "Duplicate dashboard," "Create a copy," or "Clone dashboard"

Technical Implementation

backend implementation has been merged, a rough document of the backend can be found at:

#35228 (comment 258034827)

Edited by 🤖 GitLab Bot 🤖