* 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.
I don't see a reason to accept a variable amount here, as we never use it. The only use I can see is optionally
including the opts, which isn't necessary and only complicates matters when an empty struct would do just as well: the
options are all created to be assumed zero-values already, in case a test doesn't need that option set.
* Update dependency golang.org/x/crypto to v0.31.0
* Update dependency golang.org/x/crypto to v0.31.0 - based on Trivy Scan
* Chore: go mod tidy
* Chore: make update-workspace
* Chore: manually update more sum files
---------
Co-authored-by: Mariell Hoversholm <mariell.hoversholm@grafana.com>
* get stats from index
* fix logging
* fix logging
* actually counting
* Use searcher to check for resources referencing a folder
* Add tests when deleting a folder
* Lint
* merge/fix test
* will delegate to SQL
* get stats from index
* fix logging
* actually counting
* merge/fix test
* will delegate to SQL
* Uncomment test
* Add tests for checking stats before deleting a folder
* Change base branch to main
* Lint
* [REVIEW] remove logs
* Check for type assertion success
---------
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This has been failing to compile, bringing down a _lot_ of tests along with it (notably the entire pkg/tests dir).
The `experimental/errorsource` package was deprecated, so the recommended replacement was used.