* Schema v2: Reason about new dashboard based on UID
* Fix test
* Alerting: respect isNew dashboard for legacy and new arch
* Translate untranslated strings
* Unify is new checks
* PanelInspectDrawer update
* typo fix
* on close test for panel inspect drawer
* Update public/app/features/alerting/unified/PanelAlertTabContent.tsx
* feat: datasource connections tab in plugin detail page
* test: no ds defined test added
* feat: configure feature toggle
* chore: i18n extract
* test: added unit tests for page and list
* MultiCombobox: Add All option
* Translate
* Add prop to show All option
* Change variable name
* betterer update
* Extract variable
* Update packages/grafana-ui/src/components/Combobox/MultiCombobox.tsx
Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>
* Return All item
* Update checkboxes
* Add filtering functionality
* Handle deduplication when selecting already selected items
* Performance improvements when selecting and modifying all items
* Handle bug with isOpen for tests to pass
* Small fixes
* Add filtered phrase
* Address PR feedback
* Reset okg/services from main
* Reset from main
* Restore main
* Add counter to filtered all
* Fix OptionListItem
* Hide all when there are no results
* Refactor to use useMemo instead
* Fix comments
* Remove useEffect
---------
Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>
Co-authored-by: Tobias Skarhed <tobias.skarhed@gmail.com>
* identify native histograms by classic histograms
* use trail to expose ds helper
* identify native histograms for preview panel
* refactor ds helper to initialize all native histograms
* remove await
* add info message for native histograms
* hide button on show examples
* show nh in metric scene by passing check for nh and storing in url for url loads, bookmarks and recent explorations
* add badge for native histograms
* click native histogram examples in info message to see them
* add link for learn more
* close banner on select when selecting native histogram in info banner
* show message for newly selected data sources
* capitalize Native Histogram badge
* prettier
* fix badge ui width
* add padding for badge
* add images, styling and tests for native histogram banner
* move images to img folder
* fix store tests
* run i18n
* fix betterer
* fix betterer with translations
* cannot translate interpolated metric in button text
* Fix import
* do not indent the > See examples section
* trans component interferes with text with special chars
* update sm text with 4px padding and 16px spacing between images
* do not show banner after closing then changing data sources
* prettier
* Update public/app/features/trails/helpers/MetricDatasourceHelper.ts
Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>
* Update public/app/features/trails/banners/NativeHistogramBanner.tsx
Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>
* Update public/app/features/trails/banners/NativeHistogramBanner.tsx
Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>
* update comments
* remove unnecessary code check
* add rudderstack types
* add close example functionality
* prettier
* add t() for betterer
* prettier
* fix betterer and trans issues
* fix test
---------
Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>
* sort otel resources to top of adhoc filters
* add bool in datatrail
* add function to find non promoted otel resources
* add additional super filter variable
* hide filters var and keep otel filters var hidden
* add nonpromoted resources to state, update otel or var filters when super filter is updated
* update comments
* update plan
* Allow deployment environment values from both metrics and target_info
* Remove usage of dep env var in getting resources
* update code comments for clarity
* Remove dep env variable, autoselect dep env in otelmetricvar and allow updating of vals in otelmetricvar
* Fix bug that conflicts with local storage useOtelExperience check
* expose metadata to show data source is loaded to prevent otel race conditions
* remove filtering check on target_info in the itel join query
* update plan with extra issues
* refactor update and reset functions for otel experience
* use non promoted resources as the standardization check
* sort the resources in filters var if using otel experience
* add test for sorting resources with otelmetricsvar
* update tests for otel experience in datatrail.test
* update tests for otel utils
* update otel api tests
* update trail store tests to remove dep env var
* run prettier
* remove unused imports
* add tests, distinguish on start and when the initial otel check is done, update comments
* Fix bug when adding multiple otel resources
* fix when adding filter from breakdown
* add migration for dep env var
* update migration function and write tests
* prettier
* Update dep env migration to handle bookmarks
* fix trailstore tests for reintroducing the dep env var
* refactor default env function, we only need the value
* remove redundant check
* move otel functions to utils and update and add tests
* prettier
* cleanup
* fix migration for fromStart
* update tests for migration
* use join and use push
* fix flow with state
* Fix flow in update OTel function
* update tests for flow fixes
* fix toggle OTel bugs
* report when dep env has been migrated and delete dep env filters to not migrate it again
* Clear out dep env after migration
* run prettier
* improve non promoted attribute function
* remove unused functions
* prettier
* default otel experience to off
* report when otel experience is used
* report when otel is turned on and off
* report otel filters changed
* prettier
* keep default otel off, respect the local storage, but if loading with otel vars from url or bookmark we can turn it on
* Add new badge
* fix metric scene breakdown add filter bug around non promoted labels on a metric that are different than non promoted labels for all metrics
* prettier
* make i18n-extract
* prettier for translations
* change button name to "Filter"
* Update public/app/features/trails/Breakdown/AddToFiltersGraphAction.tsx
Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>
* Update public/app/features/trails/DataTrail.tsx
Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>
* Update public/app/features/trails/migrations/otelDeploymentEnvironment.ts
Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>
* Update public/app/features/trails/DataTrail.tsx
Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>
* Update public/app/features/trails/otel/api.ts
Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>
* Update public/app/features/trails/otel/util.ts
Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>
* Add more padding for pill where capital letter gets to close to the left border and looks off.
* clear up comments
---------
Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>
* Change usePluginInfo to keep installed and latest version
* fix tests, delete console.log
* fix isManaged plugin which s not installed
* refactor add versions into info
* start plugins migration
* more plugin work
* add warning
* fakepluginsettings test
* tests get plugins
* lint
* load logos
* go lint
* get all plugins once
* locales
* josh suggestion to inject query in rtk
* more plugin filters
* remove datasource warning
* access control for plugins
* remove unused method
* lint
* use gcom list
* clean up almost all of the toggle
* betterer
* clean up searchBarHidden and extract translations
* fix remaining unit tests
* remove redundant topPosition
* 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>
* 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>
* Extract basic extensions to a separate files
* Add simple queryless apps links
* Move links for queryless apps next to the datasource picker
* Update tests
* Add translations
* Add tracking
* Update translations
* Fix tests and betterer
* Fix the mock for the test (the hook may be called twice now)
* Add a todo
* "Show usages" functionality
* Don't rely on the inital model but current state; add tests
* Fix typo
* variable check indicators
* Abaility to see renamed or missing variables
* clean up missing variables section async logic
* remove variable type casting
---------
Co-authored-by: Sergej-Vlasov <sergej.s.vlasov@gmail.com>
* style: increase size of the ‘let’s start’ section; decrease number of filter lines in the trail cards; remove DS line; change select metric to all metrics
* chore: delete unused get datasource test mock
* fix: adjust test to account for select metric to all metrics change
* chore: update i18n
* text: update truncate long labels test to truncate after 2 lines
* style: shrink card height
* Add translations for notification preview
* Make notifications endpoints use alertmanager config mock entity
* Fix translations and error handling in preview component
* Update preview hook to use new k8s APIs
* Move receivers k8s mock logic so it always comes from the mock config
* Fix test that wasn't using the correct receiver
* Fix object_matchers
* Remove mockApi method and update tests
* Update translation for error case
* Remove useMemo
* LogRowMessage: limit displayed characters to MAX_CHARACTERS
* LogRowMessage: update ellipsis text
* Formatting
* Revert test change
* LogRowMessage: fix conditional
* Extract translations
* LogRowMessage: use button for ellipsis
* Revert test change
* Change fill to outline
* Revert test change
* Add basic usage of K8s API for notification policies
* Add permissions checks for navtree for routes
* Add and update permissions for routing tree logic
* Add capability to skip calling contact points hook
* Conditionally show list of mute timings depending on permissions
* Conditionally link to mute timings if user can see at least one
* Add work in progress k8s handlers for routing tree
* Update notification policy hooks
* Wire up policies to permissions better (conditionally calling APIs)
* Add additional checks for whether to show grafana AM
* Add permission checks to access control
* Remove accidental permissions after rebase
* Update types and const for k8s routes
* Improve statefulness and reset routing tree in tests
* Update notif policy tests to check k8s and config API
* Fix type assertion
* Move non-grafana test out of .each
* Make failure case safer
* Override tag invalidation for notification policies API
* Pass in error and add new error alert component
* Add basic mock server conflict check
* Add test to check user can save after a conflict
* Add logic to allow reloading policies if changed by another user
* Fix test
* Update translations in Modals
* Add ViewAlertGroups ability
* Tweak provisioning logic and memoize AM config response
* Update snapshots for useAbilities
* Update result destructure
* Use enums for provenance in routingtrees
* Use consistent memoisation
* Fix _metadata for vanilla AM
* useAsync for error / update state
* move k8s api error handling to separate file
* use cause for error codes
* Use `supported` bools from Alertmanager abilities and clarify default policy
---------
Co-authored-by: Konrad Lalik <konrad.lalik@grafana.com>
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
* add new button for exporting new alert rule
* Fix test
* allow only HCL format for exporting new alert rule
* fix initial tab
* Update public/app/features/alerting/unified/components/rule-editor/alert-rule-form/ModifyExportRuleForm.tsx
Co-authored-by: Konrad Lalik <konradlalik@gmail.com>
* Update public/app/features/alerting/unified/components/rule-editor/alert-rule-form/ModifyExportRuleForm.tsx
Co-authored-by: Konrad Lalik <konradlalik@gmail.com>
* address review comments
* update translations
---------
Co-authored-by: Konrad Lalik <konradlalik@gmail.com>
* initial passwordless client
* passwordless login page
* Working basic e2e flow
* Add todo comments
* Improve the passwordless login flow
* improved passwordless login, backend for passwordless signup
* add expiration to emails
* update email templates & render username & name fields on signup
* improve email templates
* change login page text while awaiting passwordless code
* fix merge conflicts
* use claims.TypeUser
* add initial passwordless tests
* better error messages
* simplified error name
* remove completed TODOs
* linting & minor test improvements & rename passwordless routes
* more linting fixes
* move code generation to its own func, use locationService to get query params
* fix ampersand in email templates & use passwordless api routes in LoginCtrl
* txt emails more closely match html email copy
* move passwordless auth behind experimental feature toggle
* fix PasswordlessLogin property failing typecheck
* make update-workspace
* user correct placeholder
* Update emails/templates/passwordless_verify_existing_user.txt
Co-authored-by: Dan Cech <dcech@grafana.com>
* Update emails/templates/passwordless_verify_existing_user.mjml
Co-authored-by: Dan Cech <dcech@grafana.com>
* Update emails/templates/passwordless_verify_new_user.txt
Co-authored-by: Dan Cech <dcech@grafana.com>
* Update emails/templates/passwordless_verify_new_user.txt
Co-authored-by: Dan Cech <dcech@grafana.com>
* Update emails/templates/passwordless_verify_new_user.mjml
Co-authored-by: Dan Cech <dcech@grafana.com>
* use & in email templates
* Update emails/templates/passwordless_verify_existing_user.txt
Co-authored-by: Dan Cech <dcech@grafana.com>
* remove IP address validation
* struct for passwordless settings
* revert go.work.sum changes
* mock locationService.getSearch in failing test
---------
Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
Co-authored-by: Dan Cech <dcech@grafana.com>