grafana/public/app/features
Piotr Jamróz f252e89339
Query History: Implement RemoteStorage methods: get all, add new (#48330)
* 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

* Simplify testing DataSourceSettings

* Update betterer results

* 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

* Reuse sort order options

* Reuse sort order options

* Fix footer spacing
2022-05-17 12:59:16 +02:00
..
admin grafana/ui: Add default type="button" to <Button> (#48183) 2022-05-04 18:36:14 +02:00
alerting Build: Change names to PascalCase to match (#48949) 2022-05-16 15:26:14 +02:00
annotations Select: Portal menu by default (#48176) 2022-05-04 15:12:59 +01:00
api-keys grafana/ui: Add default type="button" to <Button> (#48183) 2022-05-04 18:36:14 +02:00
canvas Canvas: Inline edit (#48222) 2022-05-04 14:15:07 -05:00
commandPalette CommandPalette: Make dashboard nav work when under grafana is under sub path (#48744) 2022-05-05 17:15:59 +02:00
comments Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
dashboard AccessControl: Enable RBAC by default (#48813) 2022-05-16 12:45:41 +02:00
datasources AccessControl: Let users with data source create permissions list non-core plugins (#48897) 2022-05-13 10:30:26 +02:00
dimensions Select: Portal menu by default (#48176) 2022-05-04 15:12:59 +01:00
explore Query History: Implement RemoteStorage methods: get all, add new (#48330) 2022-05-17 12:59:16 +02:00
expressions Expressions: adds inline documentation for the Math expression (#48784) 2022-05-16 11:30:27 +02:00
folders Access control: Allow users with permission to update team, dashboard and folder permissions to list users in OSS (#48275) 2022-05-06 10:31:53 +02:00
geo Select: Portal menu by default (#48176) 2022-05-04 15:12:59 +01:00
inspector Select: Portal menu by default (#48176) 2022-05-04 15:12:59 +01:00
invites Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
library-panels Select: Portal menu by default (#48176) 2022-05-04 15:12:59 +01:00
live Select: Portal menu by default (#48176) 2022-05-04 15:12:59 +01:00
manage-dashboards Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
notifications Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
org Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
panel Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
playlist DashboardPickerByID: add optionLabel prop (#47556) 2022-05-06 11:08:13 +00:00
plugins Select: Portal menu by default (#48176) 2022-05-04 15:12:59 +01:00
profile Build: Change names to PascalCase to match (#48949) 2022-05-16 15:26:14 +02:00
query QueryEditor: Set data source type in mixed query data source ref (#48734) 2022-05-05 15:09:00 +01:00
runtime Runtime: remove updateLocation from window context (#42857) 2021-12-07 20:01:35 -08:00
sandbox Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
search Search(Playground)- Manage Actions: Disable delete button when folder is General (#49021) 2022-05-17 10:31:19 +02:00
serviceaccounts ServiceAccounts: Fix org role picker update issue (#48958) 2022-05-16 10:05:37 +02:00
teams Access control: Allow users with permission to update team, dashboard and folder permissions to list users in OSS (#48275) 2022-05-06 10:31:53 +02:00
templating Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
transformers Transformers: mark extract-fields transform as stable (#48810) 2022-05-06 07:21:59 -07:00
users convert UsersActionBar tests to RTL (#48737) 2022-05-12 13:16:22 -07:00
variables Select: Portal menu by default (#48176) 2022-05-04 15:12:59 +01:00
all.ts Angular: More isolation and removing of unused components (#41630) 2021-11-15 15:12:45 +01:00