mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 17:12:29 +08:00

* DeleteProvisionedDashboardDrawer: delete provisioned dashboard flow set up with drawer * clean up * add tests * more test and clean up * revert endpoint change * adjust tests * remove unuse codes * fix type, fix test, add read only message * small changes * fix test, i18n fix * comments * Fix bug for file deletion using a branch * PR comments update * Use the provided ref for parser so that URLs work * call useDeleteRepositoryFilesWithPathMutation in delete drawer component directly * remove console log * Update public/app/features/dashboard-scene/components/Provisioned/DashboardEditFormSharedFields.test.tsx Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com> * PR comments * use string for fields * extract handle request logic from save form and delete form and put into one hook * Add test for useProvisionedRequestHandler * Update public/app/features/dashboard-scene/components/Provisioned/DashboardEditFormSharedFields.test.tsx Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com> * Update public/app/features/dashboard-scene/components/Provisioned/DashboardEditFormSharedFields.test.tsx Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com> * Update public/app/features/dashboard-scene/components/Provisioned/DashboardEditFormSharedFields.test.tsx Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com> * Update public/app/features/dashboard-scene/components/Provisioned/DashboardEditFormSharedFields.test.tsx Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com> * Update public/app/features/dashboard-scene/settings/DeleteProvisionedDashboardForm.test.tsx Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com> * Update public/app/features/dashboard-scene/settings/DeleteProvisionedDashboardForm.tsx Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com> * use drawer close in both save form and delete form * Add back panelEditor onDiscard * add panelEditor onDiscard to delete flow * Update public/app/features/dashboard-scene/settings/DeleteProvisionedDashboardForm.tsx Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com> --------- Co-authored-by: Roberto Jimenez Sanchez <roberto.jimenez@grafana.com> Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>