see org.camunda.optimize.service.es.writer.DashboardWriter#updateDashboard
fix it. all logic should be out of it.