grafana/public/app/features
Laura Benz 439dd062da
Explore: Add unit tests for addQueryRow() and generateEmptyQuery() (#60977)
* feat: add condition

* refactor: clea up

* refactor: remove changes and add my solution as comment

* feat: add test

* refactor: test preparation

* refactor: finish test prep and remove planned changed from addQueryRow()

* refactor: finish first test

* refactor: add required props after removing any (not complete)

* refactor: replace props and clean up

* refactor: add another test

* refactor: extend tests with datasourceInstance

* refactor: add test for mixed ds enabled

* refactor: remove typescript errors

* feat: add first attempt of a test for generateEmptyQuery()

* feat: setup first test for generateEmptyQuery()

* refactor: remove typescript errors

* feat: add another test for generateEmptyQuery()

* refactor: add some assertions

* refactor: restructure tests

* refactor: remove doubled code

* refactor: remove typescript errors

* refactor: remove mocking mistake and add test

* refactor: remove mocking mistakes

* refactor: repair mock for feature toggle

* refactor: clean up

* refactor: changes from code review
2023-01-31 10:13:08 +01:00
..
admin Auth: Add skip_org_role_sync for Okta (#62106) 2023-01-30 10:54:14 +00:00
alerting Docs: Update wording / text and copy (#61868) 2023-01-30 15:26:21 +00:00
annotations Datasources: Use getDefaultQuery in annotations editors (#61870) 2023-01-30 16:45:03 +01:00
api-keys Navigation: share logic between buildBreadcrumbs and usePageTitle (#58819) 2022-11-22 16:48:07 +00:00
canvas Canvas: Update connection info on element rename (#62532) 2023-01-30 22:36:57 -06:00
commandPalette Navigation: more command palette tweaks (#62286) 2023-01-27 16:21:48 +00:00
comments Chore: fix some types (#58662) 2022-11-11 16:29:49 +00:00
connections Docs: Update wording / text and copy (#61868) 2023-01-30 15:26:21 +00:00
correlations UI/Alert: Infer the role property based on the severity (#61242) 2023-01-18 10:16:41 +01:00
dashboard Schema: Add schema for library panels (#62169) 2023-01-30 04:14:12 +00:00
datasources Docs: Update wording / text and copy (#61868) 2023-01-30 15:26:21 +00:00
dimensions SVG: Add dompurify preprocessor step (#62143) 2023-01-25 10:37:29 -08:00
explore Explore: Add unit tests for addQueryRow() and generateEmptyQuery() (#60977) 2023-01-31 10:13:08 +01:00
expressions Alerting: Access query details of provisioned alerts (#59626) 2022-12-15 13:33:41 +01:00
folders Navigation: Add Cancel button to New folder page (#61188) 2023-01-10 11:44:24 +01:00
geo Geomap panel: Generate types (#61636) 2023-01-23 15:12:56 -08:00
inspector Accessibility: Remove unnecessary onClick from title element (#59696) 2023-01-30 13:32:16 +00:00
invites Navigation: share logic between buildBreadcrumbs and usePageTitle (#58819) 2022-11-22 16:48:07 +00:00
library-panels Schema: Add schema for library panels (#62169) 2023-01-30 04:14:12 +00:00
live Live: Fix Subscription to the channel already exists live streaming error (#61406) 2023-01-12 21:55:01 +04:00
logs Logs: Fix stats not being updated when log results change (#62317) 2023-01-30 10:54:20 +01:00
manage-dashboards Schema: Add schema for library panels (#62169) 2023-01-30 04:14:12 +00:00
notifications Page: Update profile page components to use new navId (#51664) 2022-07-11 14:35:30 +02:00
org TopNav: Fixes the invite user page navId / missing section nav and design of user list page (#60701) 2022-12-28 19:29:42 +01:00
panel PanelRenderer: fix error when variable replacement is used (#60968) 2023-01-04 16:20:44 +02:00
playlist Navigation: share logic between buildBreadcrumbs and usePageTitle (#58819) 2022-11-22 16:48:07 +00:00
plugins Plugins: Allow loading panel plugins from a CDN (#59096) 2023-01-27 15:08:17 +01:00
profile Profile: Rename profile page from preferences to profile (#61777) 2023-01-24 09:32:49 +01:00
query TemplateVariables: Fix custom variable function support (#62509) 2023-01-30 17:49:16 +00:00
query-library SVG: Add dompurify preprocessor step (#62143) 2023-01-25 10:37:29 -08:00
runtime Runtime: remove updateLocation from window context (#42857) 2021-12-07 20:01:35 -08:00
sandbox Add query library behind dev-mode-only feature flag (#55947) 2022-11-30 15:33:40 -08:00
scenes TestData: Introduce schema types (#62130) 2023-01-26 15:31:34 +00:00
search [Navigation] Add user events for quick actions/dashboard actions (#62220) 2023-01-27 14:11:17 +01:00
serviceaccounts Navigation: share logic between buildBreadcrumbs and usePageTitle (#58819) 2022-11-22 16:48:07 +00:00
storage SVG: Add dompurify preprocessor step (#62143) 2023-01-25 10:37:29 -08:00
support-bundles SupportBundles: Access control guards (#61914) 2023-01-23 16:23:20 +00:00
teams Teams: Use generated TS types (#60618) 2023-01-04 14:08:03 +02:00
templating Scenes: Skip instance of check as it it does not work for apps (#61576) 2023-01-16 18:01:31 +01:00
transformers Revert "Transforms: Add join by fields" (#62278) 2023-01-27 11:58:18 +01:00
users Preferences: Add pagination to org configuration page (#60896) 2023-01-09 11:54:33 +03:00
variables Datasources: Add support for getDetDefaultQuery in variable editor (#62026) 2023-01-30 10:58:43 +01:00
all.ts Chore: Remove empty and leftover files (#55757) 2022-09-26 11:33:07 -04:00