mirror of
https://github.com/grafana/grafana.git
synced 2026-02-03 20:49:50 -05:00
* WIP
* export library from package, use new location
* wip……
* fix bad merge
* finish useCorrelations list
* add more clarifying comments
* start create correlation, attempt to fix target type
* Try to get targetspec change to stick
* fully bring in the type for target
* fix test that is technically correct but not great
* split
* paging
* paging
* WIP
* Add this to show what I’m trying to access
* properly split logic
* move conversion logic to hook, remove unneeded memo
* add fake pagination
* WIP
* wip
* fix deletion
* cleanup
* change limit
* fix the error type
* fix linter errors
* add wrapper test, WIP main test but remove the errors
* Change test to only use legacy version for now
* Testing the test
* fix lint suppressions
* fix tests
* fix lint/fmt
* Don’t crash if bad data, fix pagination to be usable with cursor only
* Add tests
* move back to reasonable number
* 🧹
* Fix based on PR feedback
* do ds lookup instead of trusting the uid
---------
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
18 lines
No EOL
749 B
Makefile
18 lines
No EOL
749 B
Makefile
include ../sdk.mk
|
|
|
|
.PHONY: generate # Run Grafana App SDK code generation
|
|
generate: do-generate post-generate-cleanup
|
|
|
|
.PHONY: do-generate
|
|
do-generate: install-app-sdk update-app-sdk
|
|
@$(APP_SDK_BIN) generate \
|
|
--source=./kinds/ \
|
|
--gogenpath=./pkg/apis \
|
|
--grouping=group \
|
|
--genoperatorstate=false \
|
|
--defencoding=none
|
|
|
|
.PHONY: post-generate-cleanup
|
|
post-generate-cleanup: ## Fix TargetSpec OpenAPI schema
|
|
# Fix the TargetSpec schema in manifest - remove nested additionalProperties
|
|
@sed -i.bak 's|"TargetSpec":{"additionalProperties":{"additionalProperties":{},"type":"object"},"type":"object"}|"TargetSpec":{"additionalProperties":{},"type":"object"}|g' ./pkg/apis/correlation_manifest.go && rm ./pkg/apis/correlation_manifest.go.bak
|