grafana/public/app/types
Piotr Jamróz c6c79a9360
Query History: Migrate local storage to remote storage (#48572)
* Load Rich History when the container is opened

* Store rich history for each pane separately

* Do not update currently opened query history when an item is added

It's impossible to figure out if the item should be added or not, because filters are applied in the backend. We don't want to replicate that filtering logic in frontend. One way to make it work could be by refreshing both panes.

* Test starring and deleting query history items when both panes are open

* Remove e2e dependency on ExploreId

* Fix unit test

* Assert exact queries

* Simplify test

* Fix e2e tests

* Fix toolbar a11y

* Reload the history after an item is added

* Fix unit test

* Remove references to Explore from generic PageToolbar component

* Update test name

* Fix test assertion

* Add issue item to TODO

* Improve test assertion

* Simplify test setup

* Move query history settings to persistence layer

* Fix test import

* Fix unit test

* Fix unit test

* Test local storage settings API

* Code formatting

* Fix linting errors

* Add an integration test

* Add missing aria role

* Fix a11y issues

* Fix a11y issues

* Use divs instead of ul/li

Otherwis,e pa11y-ci reports the error below claiming there are no children with role=tab:

Certain ARIA roles must contain particular children
   (https://dequeuniversity.com/rules/axe/4.3/aria-required-children?application=axeAPI)

   (#reactRoot > div > main > div:nth-child(3) > div > div:nth-child(1) > div >
   div:nth-child(1) > div > div > nav > div:nth-child(2) > ul)

   <ul class="css-af3vye" role="tablist"><li class="css-1ciwanz"><a href...</ul>

* Clean up settings tab

* Remove redundant aria label

* Remove redundant container

* Clean up test assertions

* Move filtering to persistence layer

* Move filtering to persistence layer

* Simplify applying filters

* Split applying filters and reloading the history

* Debounce updating filters

* Update tests

* Fix waiting for debounced results

* Clear results when switching tabs

* Improve test coverage

* Update docs

* Revert extra handling for uid (will be added when we introduce remote storage)

* Create basic plan

* Rename query history toggle

* Add list of supported features and add ds name to RichHistoryQuery object

* Clean up

Removed planned items will be addressed in upcoming prs (filtering and pagination)

* Handle data source filters

* Simplify DTO conversion

* Clean up

* Fix betterer conflicts

* Fix imports

* Fix imports

* Post-merge fixes

* Use config instead of a feature flag

* Use config instead of a feature flag

* Update converter tests

* Add tests for RichHistoryRemoteStorage

* Simplify test setup

* Simplify assertion

* Add e2e test for query history

* Remove duplicated entry

* Fix unit tests

* Improve readability

* Remove unnecessary casting

* Mock backend in integration tests

* Remove unnecessary casting

* Fix integration test

* Update betterer results

* Fix unit tests

* Simplify testing with DataSourceSrv

* Fix sorting and add to/from filtering

* Add migration for local storage query history

* Test query history migration

* Simplify testing DataSourceSettings

* Skip redundant migrations

* Revert error logging test

* Fix tests

* Update betterer results

* Change notification message after migration

* Ensure previous request is canceled when getting search results

* Add loading message when results are being loaded

* Show info message only if local storage is enabled

* Fix unit test

* Post-merge fixes

* Fix intergration tests

* Fix incorrect filtering
2022-05-19 13:45:32 +02:00
..
jquery Minor progress on fixing no-implicit any issues 2019-03-19 18:24:47 +01:00
accessControl.ts Update API Keys UI to adjust based on users permissions (#47802) 2022-04-20 09:45:45 +02:00
acl.ts Dashboard: Prevents folder change when navigating to general settings (#38103) 2021-08-20 11:53:48 +02:00
alerting.ts Alerting: Add validation to slack contact point (#45618) 2022-02-25 15:10:21 +01:00
apiKeys.ts Access control: Pass access control metadata for api keys (#48445) 2022-04-29 15:30:24 +02:00
appEvent.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
appNotifications.ts Frontend: Add notification persistence behind feature flag (#47871) 2022-04-20 10:42:32 +01:00
config.ts Chore: Add type info for grafana boot data (#45322) 2022-03-30 10:48:58 +01:00
dashboard.ts add isPublic to dashboard (#48012) 2022-05-17 14:11:55 -08:00
datasources.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
events.ts Explore: Add t * keybindings to change time range (#45020) 2022-02-17 07:39:02 -06:00
explore.ts Query History: Migrate local storage to remote storage (#48572) 2022-05-19 13:45:32 +02:00
folders.ts Access control: Dashboard and folder permissions frontend (#45094) 2022-03-03 15:18:27 +01:00
index.ts Angular: Option to disable angular support and isolate angular dependencies (#45421) 2022-02-16 17:14:33 +01:00
ldap.ts Chore: Fix more strict typescript errors (#35514) 2021-06-14 15:13:48 +01:00
location.ts FieldOverride: Support data links via field overrides (#23590) 2020-04-20 07:37:38 +02:00
lru-cache.d.ts Update dependency lru-cache to v7 (#45074) 2022-02-18 10:23:06 +01:00
organization.ts SelectOrgPage: migrate API function calls to Redux (#43133) 2021-12-16 09:57:18 +01:00
plugins.ts Chore: reduces circular dependencies for variables/utils.ts (#44087) 2022-01-17 12:48:26 +01:00
preferences.ts Dashboard: Add week start option to global and dashboard preferences (#40010) 2021-10-18 10:27:14 -03:00
query.ts DataSource: Default data source is no longer a persisted state but just the default data source for new panels (#45132) 2022-03-08 08:56:12 +01:00
sanitize-url.d.ts DataLinks: Sanitize data/panel link URLs (#21140) 2019-12-18 11:31:11 +01:00
serviceaccount.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
store.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
suggestions.ts VisualizationSuggestions: Support image & text instead of real previews. Adds suggestions for all non data panels when there are no data (#42074) 2021-11-25 10:52:01 +01:00
svg.d.ts Transforms: Adds beta notice and updates transform descriptions (#24158) 2020-05-04 15:05:31 +02:00
teams.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
templates.ts make variable type more slim 2019-01-07 11:26:06 +01:00
unified-alerting-dto.ts Alerting: Fix Loki buildinfo request error (#49073) 2022-05-18 10:45:26 +02:00
unified-alerting.ts Alerting: use a single move operation for alert rules (#48125) 2022-04-26 16:38:29 +02:00
user.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
window.d.ts Chore: Prevent loading error from showing too early (#41347) 2021-11-08 16:13:37 +01:00