Recidiviz / justice-counts

Technical infrastructure for the Justice Counts initiative
GNU General Public License v3.0
2 stars 0 forks source link

[Agency Dashboards] Hide all disabled metrics from dashboards #1140

Closed mxosman closed 9 months ago

mxosman commented 9 months ago

Message from CSG: "So I wanted to send [Agency 668] their dashboard link but reviewed it beforehand. I am noticing something odd happening with the data. There is funding, expenses, and staff data reflected within the prisons sector, but these metrics have only been enabled for supervision and the data was also uploaded correctly into the supervision sector. I know there was some work being done for dashboards belonging to agencies with more than one sector..."

In this situation, the agency has two sectors (Prisons & Supervision) and have incorrectly uploaded data to the wrong sector, published it, then unpublished and disabled the relevant metrics. Since the data was published, it persisted in the dashboard despite the metric being disabled. It would be helpful if turning off a metric also filtered them out of view in the dashboards so agencies can have this flexibility when they need to make adjustments or corrections.

mxosman commented 9 months ago

Duplicate - reference issue: https://github.com/Recidiviz/recidiviz-data/issues/26818