* structure apic
* API versioning proposal
* Make api service independent from version
* Update v2
* Fix public dashboards page test
* Uncomment reload dashboard feature code
* Revert
* Betterer
* Fix imports
* useV2DashboardsAPI feature toggle
* POC/v2 schema: Add v1<-> v2 transformers (#97058)
* Make dshboard access interface more precise
* Add first pass for schema v1<->v2 transformers
* Update response transformer test
* Import fixes
* Manage dashboards validation: Handle v2 schema
* Handle new dashboard with v2
* Fix tests
* Move dashboard is folder error handling to legacy API implementation
* Add tests for dashboard api client
* betterer
* Use dashboard DTO when capturing dashbaord impression
* prettier
* Dashboard API: resolve folder metadata
* Add tests for resolving folder metadata
* Fix DashboardPicker
* Renames and nits
* POC Alternative Suggestion for Dashboard API versions handling (#97789)
* Add transitional_dashboard_api, reset components that are not ready for v2 schema, and start working on migrating
DashboardPicker to use v2 schema
* reset DashboardScenePageStateManager
* Improve logic in transitional api, also remove isDashboardResource checks from components
* REmove transitional_dashboard_api and apply PR feedback
* Apply PR feedback, use 'v2' as a parameter and remove unnecesary if
* Fix tests
* Adding missing comments from original PR and also changing order to improve diffing in github :)
* update betterer
* fix prettier
* Add tests for DashboardPicker
* Do not use unified alerting mocks
* Fix unused type in dashboard test
* Improve comments in DahboardPicker
* Update folder validation fn
* Validation update
* Update legacy api test
* Lint
---------
Co-authored-by: alexandra vargas <alexa1866@gmail.com>
Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>
Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
* clean up almost all of the toggle
* betterer
* clean up searchBarHidden and extract translations
* fix remaining unit tests
* remove redundant topPosition
* POC/Provisioning: Replicator: Re-use existing UID on update
* fix: update UID, resource version, and generation
* fix: log info useful for debugging on error
* fix: default to spec uid
* feat: use file's data
* feat: set spec uid
* fix: try setting k8s name
* fix: don't set with types.UID
* fix: undo that
* chore: downgrade to debug logs
* WIP: pull request job
* Make things private
* Fix template
* Handle github statuses
* Refactor around rendering
* Fix compilation
* Clean up code
* Fix issues during test
* Use Kind instead of Type
* Add source
* Update filters
* Exclude all namespace endpoints
* Remove watch endpoints
* Exclude collection endpoint
* Update arg names
* Add parser script
* Update spec
* Update @rtk-query/codegen-openapi
* Update params for list endpoints
* Use new hooks and types in hooks
* alternative operation ID
* alternative operation ID
* alt operation
* alt operation
* Move some transformations to BE
* Update endpoints
* Update types after generation
* Remove spec and generated endpoints
* Add tags automatically
* Update pkg/services/apiserver/builder/helper.go
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
* add static openapi
* Use generated spec
---------
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
* Implement k8s count handler
* Fix endpoint
* Fix type converstions
* Add tests for foldercounts
* Add more tests
* Only use sql-fallback if no values in unistore
* Update gomod
* Fix test
* Update pkg/api/folder_test.go
Co-authored-by: Bruno Abrantes <bruno.abrantes@grafana.com>
* Go.mod
---------
Co-authored-by: Bruno Abrantes <bruno.abrantes@grafana.com>
* POC/Provisioning: Export: Move to a job worker architecture
* fix: move export logic to replicator
The logic changed in the last rebase, which wasn't taken into account.
This should make us use a single worker again.