Toggle demo/sample metrics on and off from the UI
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
This issue has been expanded from a discussion here: &2220 (comment 264724308)
We need to:
- Provide a means for "turning on/off" the sample metrics from the UI
- Communicate to the user that the metrics they are viewing are fake/demo metrics.
A possible path to achieving this could be:
- For the first iteration, do not persist the "in sample metrics mode" state to the database, and instead render the sample data if a parameter is passed to the backend (for example,
sample_metrics=true). A user could toggle the sample metrics "on" from the metrics dashboard, but that "on" state is not preserved when they leave the page or for any other users. - For the next iteration, add a boolean to
Environmentthat represents whether the environment is in sample metrics mode. The user toggling sample metrics on or off would update this value. With this implementation, the dashboard remains in sample metrics mode for all users who view the dashboard.
Edited by 🤖 GitLab Bot 🤖