* refactor(Plugins/Admin): add a "badge" for displaying available updates
* refactor(Plugins/Admin): rename component
* refactor(Plugins/Admin): use the PluginListItemBadges component
(cherry picked from commit 3ad5ee87a3)
Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
* prometheus: handle label-values with special characters
* added comment
(cherry picked from commit d363c36853)
Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
* feat(grafana-ui): externalise react-inlinesvg for mocking
* feat(grafana-toolkit): mock react-inlinesvg to prevent svg fetch errors in tests
* test(toolkit): remove assertion on array length of moduleNameMapper overrides
* feat(toolkit): set testId to match the Icon name prop in react-inlinesvg mock
(cherry picked from commit cc7f7e30e9)
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
* DashboardList/AlertList: Fix for missing All folder value
* Refactor: Fixes case where folder does not exist in results
(cherry picked from commit 7c7b21b39e)
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
* Graphite: Ensure only valid queries are used for interpolation
* Add a unit test
(cherry picked from commit 787e5e78dd)
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
* chore(Plugins/Admin): make the Plugins Catalog the default way to interact with plugins
* chore(defaults.ini): change the default value for `plugin_admin_enabled`
* test(Plugins): make the tests pass
(cherry picked from commit c2754eb9cc)
Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
* Extend User type
* Render licensed roles and org units
* Combine admin icon with units
* Extract search users to a new service
* Fix wire provider
* remove mock data
* Fix icon margin
* Fix common_test and remove RouteRegister
* Remove old endpoints
* Fix test
* Add indexes to dashboards and orgs tables
* Fix lint
* Revert docs changes
* undo docs formatting
* Change order of input and filters
* Abstract aria-label into a function
* Add accessible info about user's membership
* UI tweaks
Co-authored-by: spinillos <selenepinillos@gmail.com>
(cherry picked from commit 62dc10829a)
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* working version but with duplications.
* refactor(Plugins/Admin): use "fr" instead of "repeat" for grid columns
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
* fix(Plugins/Admin): use PluginIconName instead of IconName
* refactor(Plugins/Admin): store the display-mode on the state
* refactor(Plugins/Admin): use && for conditional rendering
* refactor(Plugins/Admin): rename variable
* refactor(Plugins/Admin): share code between card and row components
* test(PluginListItemRow): add tests
* test(Plugins/Admin): add a simple test for the display-mode switching
* fix(Plugins/Admin): compose styles with css``
* refactor(Plugins/Admin): rename "table" to "grid" for display modes
* test(Plugins/Browse): follow up on renaming "table" to "grid"
Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
(cherry picked from commit 2dedbcd3c3)
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
* Extract search users to a new service
* Fix wire provider
* Fix common_test and remove RouteRegister
* Remove old endpoints
* Fix test
* Add indexes to dashboards and orgs tables
* Fix lint
(cherry picked from commit 02702eb82d)
* added possibility to track if remote plugins could be fetched.
* adding hook to detect if remote plugins are available.
* feat(catalog): disable installed/all filter if remote plugins are unavailable
* feat(Plugins/Admin): hide the install controls if GCOM is not available
* refactor(Plugins/Admin): group `@grafana` dependencies
* fix(Plugins/Admin): don't show an error alert if a remote plugin is not available
* feat(Plugins/Admin): prefer to use the local version of the readme
* chore(Plugins/Admin): type the mocked state properly
* test(Plugins/Admin): add tests for the Plugin Details when GCOM is not available
* test(Plugins/Admin): add tests for the Browse when GCOM is not available
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
(cherry picked from commit fffcee7c1f)
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
* keep existing unified alert rules untouched
* move silences and other alertmanager files to the organization directory (only if it is a single organization deployment)
* assign the existing notification settings and routes to the first organization
* create default notification settings for each organization in the case of multi org deployment
(cherry picked from commit 5d0d7dcb3a)
Co-authored-by: Yuriy Tseretyan <yuriy.tseretyan@grafana.com>
* BarGauge: Improve behaviour when working with streaming data
* BarGauge: Refactor default min/max into grafana/data
(cherry picked from commit 2058193e98)
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
* adding working version of notificaion banner trigger.
* Move it to enterprise
* Fixing csss, none of the pages showed our CustomScrollbar or had double scrollbars
* fixing explore
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
(cherry picked from commit b626ba223f)
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
* Add filtering for Silences page
* Add tests Silences and SilenceEditor
* pr feedback: add field validation and test refactor
* Add test for checking content
* fix overflow for validation error message
* increase login threshold for pa11y
* Make silence filter state its own type and function
(cherry picked from commit d03f75726b)
Co-authored-by: Nathan Rodman <nathanrodman@gmail.com>
* Tempo: add default limit, option to hide Loki search, and run query on hotkey in dropdowns
(cherry picked from commit 06592410b2)
Co-authored-by: Connor Lindsey <cblindsey3@gmail.com>
* Tempo: Show warning if search is not available. Add opt-out config
(cherry picked from commit 24479ff6b0)
Co-authored-by: Connor Lindsey <cblindsey3@gmail.com>
* Improve how tempo search fetches autocomplete values
* Refetch autocomplete options on menu load
(cherry picked from commit 1865689411)
Co-authored-by: Connor Lindsey <cblindsey3@gmail.com>
* Tempo: Run query with keyboard shortcut from duration fields
(cherry picked from commit 9c4e7eb659)
Co-authored-by: Connor Lindsey <cblindsey3@gmail.com>
* Add method GetAllLatestAlertmanagerConfiguration to DBStore
* add method ApplyConfig to AlertManager
* update multiorg alert manager to load all alertmanager configs at once
(cherry picked from commit 1910d85ae0)
Co-authored-by: Yuriy Tseretyan <yuriy.tseretyan@grafana.com>
* prevent preview if no condition is set
* fixes after pr feedback
* watch on type and condition
(cherry picked from commit cc94c55e48)
Co-authored-by: Peter Holmberg <peterholmberg@users.noreply.github.com>
* feat(catalog): introduce id and href to PluginDetailsTabs
* feat(catalog): add hrefs and ids to PluginDetails tabs. Pass queryParams to PluginDetailsBody
* feat(catalog): pass queryParams to PluginsDetailsBody and add page param to PluginListCard
* fix(catalog): prevent flicker of content by waiting for fetch details to finish loading
* feat(catalog): add tab icons to PluginDetails page
* feat(catalog): make breadcrumbs in PluginDetailsHeader aware of page queryparam
* fix(catalog): fix deeplinking to PluginDetails by comparing tabs length
* test(catalog): update tests with correct props and wrap in router
(cherry picked from commit 4dc556445c)
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>