Braden Snell
9a850de5a8
Variables: add graceful circular dependency failure ( #46590 )
...
* adds circular dependency check
* adds circular dep test
2022-03-29 11:18:59 +01:00
Torkel Ödegaard
3516821012
Dashboard: Fixes save modal rendered ontop of save drawer ( #46916 )
...
* Dashboard: Fixes save modal rendered ontop of save drawer
* removed commented line
* Simplified dismiss -> hideModal mapping
* Fixed issue with new dashboard
* Fixing issues
2022-03-25 13:08:42 +01:00
Ashley Harrison
c13f4542d8
Dashboard: Template variables are now correctly persisted when clicking breadcrumb links ( #46790 )
...
* Add history listener to update titleHref/parentHref when location changes
* Convert to functional component and use useLocation
* Wrap component in React.memo
* Add new `getUrlForPartial` method, deprecate `updateSearchParams`
2022-03-24 16:01:43 +00:00
kay delaney
8329cd59f6
LibraryPanels: Increase max description length to 2048 chars ( #46601 )
2022-03-24 12:14:56 +00:00
Josh Hunt
89757cf58f
ManageDashboards: Fix error when deleting all dashboards from folder view ( #46877 )
...
* user essentials mob! 🔱
* draft tests
* tests!
* better default ids for test data
2022-03-24 09:43:25 +00:00
Gabriel MABILLE
3440e7c8f7
AccessControl: Fix locked role picker in orgs/edit page ( #46539 )
...
* AccessControl: Fix locked role picker in orgs/edit page
* Use correct org when computing metadata
2022-03-24 08:58:10 +01:00
Connor Lindsey
78c23d8dab
Tracing: Prevent createSpanLink from returning an invalid Loki query ( #46864 )
2022-03-23 09:48:11 -07:00
Gilles De Mey
4a568769e7
Alerting: fix flakey test ( #46845 )
2022-03-22 21:20:58 +01:00
Ashley Harrison
04bbafb4a6
Chore: Enable jest-fail-on-console
to prevent console errors in unit tests ( #46835 )
...
* Add jest-fail-on-console
* Fix last 2 console warnings
* Update package syntax
2022-03-22 17:03:07 +00:00
Nathan Rodman
5a25ada3d0
Alerting: Add FGAC for Silences ( #46479 )
...
* add FGAC actions for silences table
* redirect users without permissions
* hide silence button in rules list
* add permissions checks to routes
* add read action for silences page
* add permissions checks to navigation
* add additional access checks for rule viewing
* create authorize component
* add tests for silences
* hide alerting nav for users without access
* nolint: gocyclo
* add permission check to alert details
* add check for external instances
* remove unecessary new lines
* use correct actions for alert details
* fix failing tests
Co-authored-by: Yuriy Tseretyan <yuriy.tseretyan@grafana.com>
2022-03-21 16:54:37 -07:00
Santiago
18c1c6ca6a
fix double slash in share link ( #46757 )
2022-03-21 08:00:54 -06:00
Kristina
1afd278bd0
Fix tests for Explore - ErrorContainer, MetaInfoText & cleanup ( #46744 )
...
* Move ErrorContainer.test.tsx to RTL
* Remove snapshots and unnecessary tests, change enzyme tests to RTL
* Add fixes to tests
2022-03-18 14:44:51 -05:00
Eric Leijonmarck
c592e6606c
Filtering of service accounts by expired tokens ( #46251 )
...
* Refactor to ServiceAccounts Query
* filtering expiredtokens on backend
* WIP
* WIP
* WIP
* fix: missing that we do not cover for no service accounts
* fix: wrong link
* feat: filter able to get only service accounts with expired tokens
* refactor: naming
* Update pkg/services/serviceaccounts/models.go
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
* goimported
* Update pkg/services/serviceaccounts/api/api.go
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2022-03-18 15:50:34 +01:00
lean.dev
c3ee98a9b6
Fixing delete dashboard url form datasource configuration ( #46637 )
2022-03-18 11:47:57 -03:00
Gilles De Mey
64d4e6fcaa
Alerting: visual alert type picker ( #46111 )
2022-03-18 14:33:32 +01:00
Tom
ea7d5a6185
Transformers: Add template variable substitution ( #44486 )
...
* Transformers: Add template variable replacement to transformer operator
* Transformers: Add template variable replacement to calculateField transformer
* Transformers: Add scopedVars to transformer template replacement
* Transformers: Add calculateField template variable test
* Transformers: Fix 'undefined' is not assignable to type 'string'
* Transformers: Fix lint-frontend bug
* Fix lint check
* Fix lint
2022-03-18 10:25:53 +00:00
Ryan McKinley
93390b5a1e
Search: use search service ( #46714 )
...
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2022-03-18 01:36:32 +01:00
Ryan McKinley
736820f975
Search: use minisearch for better frontend searching ( #46710 )
...
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2022-03-17 14:26:48 -07:00
Joao Silva
a9002e80b4
Annotations: Fix issue with spinner always showing ( #46686 )
2022-03-17 13:00:52 +00:00
Ikko Ashimine
d887068904
Alerting: Fix typo in matchers.test.ts ( #46641 )
...
occurence -> occurrence
2022-03-16 19:15:23 +00:00
Ryan McKinley
15ca294be0
Dashboards: show changes in save dialog ( #46557 )
...
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2022-03-16 09:28:09 -07:00
Torkel Ödegaard
31d141b267
Dashboards: Fixes repeating by row and no refresh ( #46565 )
2022-03-16 07:57:12 +01:00
Joao Silva
00c93fff8c
Grafana-UI: Fix use of Fragments as children of InlineField ( #46326 )
2022-03-15 17:50:29 +00:00
Nathan Marrs
11aa6a3e8f
Value mapping/add icon support ( #44503 )
...
Co-authored-by: Ryan McKinley <ryantxu@users.noreply.github.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2022-03-15 08:51:12 -07:00
Gabriel MABILLE
75935c75c1
ServiceAccounts: Fix role update ( #46568 )
...
* ServiceAccounts: Fix role update
Co-authored-by: Jguer <joao.guerreiro@grafana.com>
* Fix patch missing metadata
Co-authored-by: Jguer <joao.guerreiro@grafana.com>
* Fix patch missing metadata
Co-authored-by: Jguer <joao.guerreiro@grafana.com>
Co-authored-by: Jguer <joao.guerreiro@grafana.com>
2022-03-15 10:48:10 +01:00
Ryan McKinley
4cd27a380d
Geomap: applying multiple line builders should keep each segment ( #46563 )
2022-03-14 22:58:41 -07:00
Giordano Ricci
00f67cad1b
Explore: set correct datasource when creating panel in a dashboard ( #46530 )
2022-03-14 23:26:13 +00:00
Joey Tawadrous
bd21355f87
Trace view: Scroll to top on new query ( #46278 )
2022-03-14 14:22:37 -06:00
Yaelle Chaudy
0b0d612372
A11y : Fix option panes not accessible when collapsed ( #46405 )
...
* Turned div into text button to make it accessible
* Only icon as button to avoid embedded buttons with overrides delete button
* use icon in Button directly
* Removed unused import
* moving id for labelledBy to h6 elem instead of icon
* Tweaking style, bigger caret
* Fixed aria-expanded
* Modifying and using CollapseToggle from unified alerting
* Added restOfProps to CollapseToggle
2022-03-14 15:37:13 +01:00
Konrad Lalik
2409405c34
Alerting: Integrate alerts with folders ( #45763 )
...
* Add Alert rules tab
* Add pagination and a simple name-based filtering
* Add name and label based filtering
* Improve pagination, handle the no results case
* Add tests for alerts folder view
* Add label filtering by clicking a tag
* Add tests for matcher to string method
* Add sorting, improve styles
* Use simple Select component for sorting
* Update default page size
* Remove unused code
* Use existingc thunk
* chore: update swagger spec
* Revert "chore: update swagger spec"
This reverts commit ee79ec7341
.
* Code cleanup
* Fix ts
Co-authored-by: gillesdemey <gilles.de.mey@gmail.com>
2022-03-14 15:21:29 +01:00
Jguer
e512029afb
ServiceAccounts: lowercase edit url ( #46517 )
2022-03-14 14:22:54 +01:00
matt abrams
52c9da1b11
A11y: add copy button to API Key modal ( #46387 )
...
* add copy button to API Key modal
* switch to inline button style
* update test snapshot
2022-03-11 11:10:27 +01:00
matt abrams
ec84b7bd23
A11y: Make the Library Panel "clear filter" buttons accessible ( #46341 )
...
* swap span for button + add aria-label
* swap span for button + add aria-label
* add new style + increase padding
* fix typo
* switch to link variant + trim custom css
2022-03-11 11:10:13 +01:00
Yaelle Chaudy
9fc9708ba5
Fixed new variable button keyboard clickable ( #46293 )
2022-03-09 20:35:53 +01:00
Joao Silva
4b57ffbb4f
A11y: Replace LinkButton with Button in Value Mappings to make it accessible ( #46330 )
2022-03-09 14:01:24 +00:00
J Guerreiro
874ac9180b
Service Accounts: Add enabled/disabled status to list ( #46259 )
...
* ServiceAccounts: improve where condition
* ServiceAccounts: Add Enabled/Disabled status to list
2022-03-08 14:10:16 +01:00
Yaelle Chaudy
ed7701c6b2
Updated span for Button to be accessible ( #46296 )
2022-03-08 12:42:03 +01:00
Torkel Ödegaard
79e5e5c024
DataSource: Default data source is no longer a persisted state but just the default data source for new panels ( #45132 )
...
* PanelEdit: Change the meaning of default data source to be just that the default for new panels
* Added migration, and also migration for annotation datasource prop to data source refs
* fix
* Fixing tests
* Fixes to annotation
* Fixing unit test
2022-03-08 08:56:12 +01:00
Leon Sorokin
a9ee446de4
HeatmapNG: fix Prometheus frame-per-bucket heatmap response rendering ( #46309 )
2022-03-07 20:51:11 -06:00
Leon Sorokin
0ee552dd65
LegacyBrowser: fix Safari 13.1 (lacks logical nullish assignent) ( #46260 )
2022-03-07 09:21:28 -06:00
Eric Leijonmarck
3d168eb34b
Searchable service accounts ( #45844 )
...
* WIP
* draft of WIP
* feat: search and filtering works 🌈
* Update pkg/models/org_user.go
* Apply suggestions from code review
* refactor: remove unsed function
* refactor: formatting
* Apply suggestions from code review
Co-authored-by: J Guerreiro <joao.guerreiro@grafana.com>
* WIP
* comment
* Update public/app/features/serviceaccounts/ServiceAccountsListPage.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* review comments
* wip
* working search and initial load of service accounts
* number of tokens working
* removed api call
* Apply suggestions from code review
* added accescontrol param
* accesscontrol prefix corrected
Co-authored-by: J Guerreiro <joao.guerreiro@grafana.com>
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2022-03-04 12:04:07 +01:00
Artur Wierzbicki
bdbb9ed54a
Live: Fix support for StreamingFrameAction.Replace
( #46086 )
...
* fix StreamingFrameAction.replace
* simplify
* beautify
* cover `streamingDataFrame.ts` changes with unit tests
* formatting
* cover `LiveDataStream.ts` changes with unit tests
* update frame length after pushing new values
2022-03-04 14:04:30 +04:00
Gilles De Mey
a9b1a964b0
Alerting: adds support for federated rules ( #46037 )
2022-03-04 10:16:13 +01:00
Torkel Ödegaard
a404dba29d
Datasource: Fixes changing default data source causes inconsistency between panel data source and query data source ( #46167 )
...
* Datasource: Fixes changing default data source causes inconsistency between panel data source and query data source
* Fix unit tests
2022-03-04 08:58:13 +01:00
Ryan McKinley
0aad61d0ac
Search: add a simple search page (behind feature flag) ( #45487 )
...
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2022-03-03 14:56:14 -08:00
Joey Tawadrous
6f3ebbe6cc
Trace view scroll to top button ( #46077 )
...
* Trace view scroll to top button
* Updated button css selector
* Updates for scrolToTop
* Updated snapshot
* Updated render
* Add smooth scrolling
2022-03-03 16:19:44 +00:00
Karl Persson
7966e3583e
Access control: Dashboard and folder permissions frontend ( #45094 )
2022-03-03 15:18:27 +01:00
Giordano Ricci
4caf5dbbd9
Explore: minor copy changes in the Add to dashboard modal ( #46154 )
...
* Explore: minor copy changes in the Add to dashboard modal
* fix tests
* Additional copy changes & test fixes
2022-03-03 14:01:03 +00:00
Giordano Ricci
09f48173fe
Explore: allow users to save Explore state to a new panel in a new dashboard ( #45148 )
...
* Add Button & Form
* Save to new dashboard
* minor adjustements
* move modal to a separate component
* handle dashboard name related errors
* pick visualization based on query results
* lift state
* fix types
* Add Open & Close tests
* Add submit test
* add navigation tests
* add tests for API errors
* remove console log
* create wrapper component for AddToDashboardButton
* remove unused mapped prop
* add wrapper test
* rename isActive to isVisible
* invert control over save & redirect logic
* remove leftover commented code
* cleanup setup parameters
* reorganize code & improve tests
* Remove option to add to existing dashboard
* UI tweaks
* disable button if no queries
* Fix tests
* better accessible tests
* handle submission errors
* improve addToDashboard types
* use dashboardSrv' saveDashboard
* remove leftover test helper
* fix typo
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
* Apply suggestions from code review
Co-authored-by: Kristina <kristina.durivage@grafana.com>
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
Co-authored-by: Kristina <kristina.durivage@grafana.com>
2022-03-03 08:54:06 +00:00
renovate[bot]
52568c7af1
Update dependency ol to v6.13.0 ( #45949 )
...
* Update dependency ol to v6.13.0
* fix types
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2022-03-03 09:45:33 +01:00