7151ea6abc
Codegen: Generate Golang code using cog ( #98812 )
...
* Use cog for Go types
* Delete old generation code
* Fix plugins generation
* workspaces update
* Update datasources with new generated code
* More fixes
* Update swagger and openapi specs
* Fixes
* More files...
* Update workspace
* More fixes...
* Remove unused functions
2025-01-14 15:58:38 +01:00
2573cbec08
Loki: Added support to split queries by stream shard ( #94245 )
...
* Add shard query splitting implementation
* Shard query splitting: reuse function from query splitting
* Shard query splitting: remove max line limit
* Shard query splitting: update test
* Shard query splitting: fix types and non-sharded queries
* Merge responses: fix log merging
* Merge responses: remove legacy code
* Query splitting: add support to retry failed requests
* Query splitting: unit test request retrying
* Query splitting: add unsubscriptions
* Shard query splitting: fix retrying
* Shard query splitting: switch to dynamic grouping
* Shard query splitting: update group size thresholds and fix -1 query
* Shard query splitting: update initial group size + don't retry parse errors
* Shard query splitting: update unit test
* chore: update mock value
* Shard query splitting: add support for multiple targets
* chore: update description
* Shard query splitting: use group targets
* chore: filter hidden queries
* Shard query splitting: issue initial log query without sharding
* Splitting: fix retrying in both methods
* Merge responses: keep execution time
* Shard query splitting: remove no-shard attempt
* Shard query splitting: adjust groups based on rate of change
* chore: clean up experiments
* Shard query splittng: remove log query restrictions
* Shard query splitting: remove fallback to time splitting
* Loki: add new query direction
* Missing generated file
* LokiOptionField: integrate new query direction
* Shard query splitting: delegate non-scan queries to time splitting
* Query splitting: do not retry queries with parse errors
* Loki datasource: add placeholder for feature flag
* Shard query splitting: add function with support criteria
* Shard query splitting: refactor query modification and shard logs volume
* Shard query splitting: update unit tests
* chore: Update scan direction tooltip
* chore: formatting
* LogsVolumePanel: fix missing state in logs volume panel data
* Merge responses: better handle missing nanoseconds
* LokiQueryOptionFields: display query direction for log queries
* loki: process scan direction as backward
* Loki datasource: restrict sharding to Explore
* Retrying: invert criteria and move to response utils
* Formatting
* Use log volume refId constant
* Fix import order
* Create feature flag
* Use feature toggle
* LogsVolumePanel: prevent flashing no data while streaming
2024-10-23 14:21:03 +03:00
29d4f6a217
Datasource: Change query filtering ( #84656 )
...
* call filterQuery from queryrunner
* test query hide filtering
* fix more broken tests
* lint errrors
* remove redundant filterQuery call
* skip filter in variable queries
* fix broken cypress test
* change tooltip text
* fix translations
* fix comments
* do not execute query is targets are empty
* add more tests
* remove unsued import
* update translations
* revert id change
* change header text
* update comment for hide prop
* rename hide query prop
* change tooltip and introduce different toggle state text
* update tests
* update comment and regenerate types
* run extract again
* fix broken e2e test
* track event
* fix build issues
* revert changes in wire file
2024-03-21 13:39:39 +01:00
473898e47c
Core: Remove thema and kindsys dependencies ( #84499 )
...
* Move some thema code inside grafana
* Use new codegen instead of thema for core kinds
* Replace TS generator
* Use new generator for go types
* Remove thema from oapi generator
* Remove thema from generators
* Don't use kindsys/thema for core kinds
* Remove kindsys/thema from plugins
* Remove last thema related
* Remove most of cuectx and move utils_ts into codegen. It also deletes wire dependency
* Merge plugins generators
* Delete thema dependency 🎉
* Fix CODEOWNERS
* Fix package name
* Fix TS output names
* More path fixes
* Fix mod codeowners
* Use original plugin's name
* Remove kindsys dependency 🎉
* Modify oapi schema and create an apply function to fix elasticsearch errors
* cue.mod was deleted by mistake
* Fix TS panels
* sort imports
* Fixing elasticsearch output
* Downgrade oapi-codegen library
* Update output ts files
* More fixes
* Restore old elasticsearch generated file and skip its generation. Remove core imports into plugins
* More lint fixes
* Add codeowners
* restore embed.go file
* Fix embed.go
2024-03-21 11:11:29 +01:00
df05c79d91
Infinite scrolling: Add X-Query-Tag header ( #81089 )
2024-01-29 11:24:05 +01:00
55d18361dc
Loki: Deprecate resolution ( #70326 )
...
* Loki: Deprecate resolution and only show it if it was selected before
* Deprecate
* Fix merge, add missing brackets
2023-06-21 12:21:29 +02:00
0316350d16
Codegen: Generate any
instead of interface{}
( #70201 )
...
* Chore: Update thema to latest
* Regenerate
2023-06-16 10:54:56 +02:00
49c940de23
Loki: Add step parameter to Loki query ( #69558 )
2023-06-06 13:20:27 +02:00
bd622a5381
Chore: Unify references for dataquery ( #68963 )
...
* Unify references for dataquery
* Fix ResultFormat in azure types
* Update azure-log with new schema
* Fix cloudwatch query
* Update thema
* Fix test
* More fixes
* More fixes
* Fix lint
2023-05-26 10:16:01 +02:00
4b94c7e5d2
Schema: Remove key
from root DataQuery type ( #64467 )
2023-03-08 16:52:31 -05:00
7ace44c8b5
Chore: Update oapi-codegen library ( #62962 )
...
* Update oapi library and thema
* Use fork commit to fix elasticsearch and cloudwatch generators
* Update thema
* Fixes
* Update thema with last fixes
* Sync
* Fix test
* Update thema and schemas
* Update thema
2023-02-21 12:34:24 +01:00
48a374f50b
loki: implement schema for loki query ( #62114 )
...
* loki: implement schema for loki query
* removed forgotten code
* better types
* adjust cue-maturity-level
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* sync docs to schema change
* removed forgotten go code
* updated schema docs
Co-authored-by: J Stickler <julie.stickler@grafana.com>
* updated schema docs
Co-authored-by: J Stickler <julie.stickler@grafana.com>
* update schema docs
Co-authored-by: J Stickler <julie.stickler@grafana.com>
* update schema docs
Co-authored-by: J Stickler <julie.stickler@grafana.com>
* updated schema docs
Co-authored-by: J Stickler <julie.stickler@grafana.com>
* updated schema docs
* add documentation to the resolution field
* move direction-field to schema
* loki: cue: moved deprecated fields to the bottom
---------
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
Co-authored-by: J Stickler <julie.stickler@grafana.com>
2023-02-02 16:18:30 +00:00