* WIP
* Refactor useSaveDashboard to make it dashboard type independent when used
* DashboardPrompt: makeit Dashboard type independent
* DashboardScene: accept both v1 and v2 schema
* Update save dashboard command interface
* Fix test
* Lint
* Refactor
* Add onSaveComplete to DashboardSceneSerializer
* Cleanup tests
* Remove unused code
* Refactor dashboard tracking information
* added a todo
* Fix betterer
* Update betterer results
* move graph builders in one file
* rename the folder as auto-query
* have a components folder
* more refactoring
* rename
* remove getQueryGeneratorFor
* why not renaming again
* add tests for baseQuery
* remove the need of default query generator
* refactor getAutoQueriesForMetric
* split the logic
* better structure
* better structure 2
* clean up
* summary tests
* unite tests for default.ts
* update unit tests
* update unit tests
* cleaning
* one variable for filters
* don't duplicate job or instance in match terms for OTel
* truncate job and instance list if exceeding 2000 chars for GET request
* test for warning when truncating
* fix check for duplicated job and instance, make easier to read
* add trans and remove console.log
* report when a metric has too many labels for job and info
* remove console.warn
* fix tests for not logging warning
* fix tests
* remove unused import
* make i18n-extract
* Update public/app/features/trails/interactions.ts
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
* allow to dismiss warning
---------
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
* Log Details: add support to resolve label types if supported
* Update public/app/features/logs/utils.ts
Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>
* LogDetailsRow: create component to display label type
* Remove log
* Add missing index resolution for label type values
* Make type icon less prominent
* Update new icon styles
* Formatting
* Update public/app/features/logs/utils.ts
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
* Update public/app/features/logs/utils.ts
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
* LogDetails: update test
* Formatting
---------
Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
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>
* Add basic token-based paginated fetching
* Add 1:many relation between UI and API pages
* Fix pagination arrows
* Add pagination to hierarchical view
* Add multidatasource filtering
* Improve flushing filtered rules, add better identifiers
* Fix pagination for data sources not supporting server side pagination
* Use alert rule loader on the filter view
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
* use useTransition and update loader
* types
* Update ruleGruopIdentifier. Add actions and location to recording rules
* Update to the new API parameters
* Refactor iterator code
* Use ix to merge iterators
* Improve perf
* use AbortController to cancel loading pages
* remove iterops for now
* add comments
* add application and rulesource information to list view
* update test
* update list view functionality
* add emptystate
* automatically load more items when we get to the bottom of the page
* reduce number of loaders
* separate hook for useFilteredRulesIteratorProvider
* use useDeepCompareEffect to track filter state changes
* fix weird no results loading glitch
* fix rare case where changing filters wouldn't update the list
* add number of results to component
* Simplify FilterView rerendering
* add filter for dashboard
* Add tests for filtered view, use data source UID instead of names in the interator code
* Improve HTML semantics, extract a separate GroupedView component
* Split RuleList.v2 into multiple files
* Split tests into Filtered and Grouped view files
* PR feedback
* Improve error handling, add tests for GroupedView
* Improve types, small refactoring
* Improve rules setup
* Small improvements, v1 and v2 versions of the view type selector
* Remove yarn cache changes
* Import from test-utils
* Move groupIdentifiers, improve state param parsing
* reorder imports
* reorder imports
* update yarn resolution
* i18n
* Improve API mock, increase timeout limit
* Add tests for RuleList.v2
* Update tests
* Fix mocks in test
* Fix lint
* Fix data sources mock
---------
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
Co-authored-by: Tom Ratcliffe <tom.ratcliffe@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>