* sync options
* working ish
* move folder property
* more tests
* create at the beginning of sync
* error rather than update meta
* only one target root
* update comment/kick CI
* with admission controller
* with UI updaates
* few fixes
* use repo name
* use radio group
* use radio group
* use radio group
* more fixes
* Upgrade grafana-app-sdk to 0.31.0
What
This commit upgrades the app SDK to 0.31.0 and re-generates codegen files.
It doesn't touch alerting schemas, because those are quite old and
should be upgraded separately.
This commit slightly alters the schemas for the investigations app,
because the codegen is not happy with the current syntax, for some
reason (probably has to do with CUE upgrades in `cog`).
Why
To make sure we use up-to-date SDK version and remove the workaround for
the `defencoding=none` bug that required us to clean up generated CRD
files.
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com>
* Revert changes to golden file for store tests
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com>
---------
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com>
* Alerting: Fix Alertmanager configuration updates
Alertmanager configuration updates would behave inconsistently when performing no-op updates with `mysql` as the store.
In particular this bug manifested as a failure to reload the provisioned alertmanager configuration components with no changes to the configuration itself. This would result in a 500 error with mysql store only.
The core issue is that we were relying on the number of rows affected by the update query to determine if the configuration was found in the db or not.
While this behavior works for certain sql dialects, mysql does not return the number of rows matched by the update query but rather the number of rows actually updated.
Also discovered and fixed the mismatched `xorm` tag for the `CreatedAt` field to match the actual column name in the db.
References: https://dev.mysql.com/doc/refman/8.4/en/update.html
* Support empty folders
* Make it work
* Add FIXMEs
* Fix some issues
* Move logic to tree
* Further refactoring
* Further refactoring
* fix issue with root folder
* Further refactoring
* Fix bug with nested
* Add Walk Function
* Move walk to separate file
* Add comment
* Move walk to safepath
* Fix bug for parent folder
* Use the tree
* Rename argument in walk function
* WIP: walk over the tree
* Filter out unprovisioned folders
* Use the annotation instead
* Fix lint issue
* Implement basic tree walk
* Use v1alpha1 for dashboards
* Fix local provisioning
* Fix folder creation local
* Fix styling issue
* Revert "Fix styling issue"
This reverts commit b0f77a8f74.
* Update pkg/registry/apis/provisioning/jobs/exporter.go
Co-authored-by: Mariell Hoversholm <mariell.hoversholm@grafana.com>
---------
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Mariell Hoversholm <mariell.hoversholm@grafana.com>
* feat: use slog adapter for go-kit/log
The adapter library is Apache-2.0, which is compatible with AGPL-3.0 as a dependency.
The adapter library outputs a little more info than we'd like, but rather a couple fields too many than it outputting
ERROR logs as INFO.
* feat: update dependencies
* chore: attribute ownership of dependency
* refactor: move require
* chore: make update-workspace
* Explore: Add `disableLogsDownload` and hide button to download logs
* change copy
* Explore: Change `disableLogsDownload` to `hide_logs_download`
* change casing in frontend
* also hide from inspector
* add test
* lint