Will Browne
96b1776856
Chore: Fix pass context for SetAlertStateCommand ( #42135 )
...
* fix pass ctx for SetAlertStateCommand
* fix integration test
2021-11-23 16:40:09 +01:00
idafurjes
9340430723
Chore: Add alert ctx ( #41161 )
...
* Add context for alert
* Remove context.TODO
* Remove xorm
* Remove context.TODO
* Fix UsageStatsQuerier interface
2021-11-03 14:10:39 +01:00
Serge Zaitsev
2f0fe16759
Chore: Remove GoConvey from sqlstore package ( #40753 )
...
* refactor login attempt test
* refactor tags saving test
* refactor transaction tests
* refactor temporary user tests
* refactor dashboard version tests
* refactor dashboard provisioning tests
* refactor alert notification test
* refactor alert tests
* refactor acl tests
2021-10-21 14:09:19 +02:00
idafurjes
2759b16ef5
Chore: Add context for dashboards ( #39844 )
...
* Add context for dashboards
* Remove GetDashboardCtx
* Remove ctx.TODO
2021-10-05 13:26:24 +02:00
Serge Zaitsev
643c7fa0cb
Chore: update all +build statements ( #38782 )
2021-09-01 17:38:56 +03:00
Dafydd
0dcd0281ab
Chore: avoid hard-coding IDs in integration tests ( #33152 )
...
* use dynamic user Ids in test
* use dynamic IDs in alert tests
* use dynamic IDs in dashboard test queries
* use dynamic IDs in org test queries
2021-04-21 11:22:46 +03:00
Arve Knudsen
87c3a2b790
PluginManager: Make Plugins, Renderer and DataSources non-global ( #31866 )
...
* PluginManager: Make Plugins and DataSources non-global
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix integration tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Replace outdated command
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* DashboardService: Ensure it gets constructed with necessary parameters
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix build
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* DashboardService: Ensure it gets constructed with necessary parameters
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove dead code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix test
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix test
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove FocusConvey
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix test
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Remove dead code
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Undo interface changes
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Backend: Move tsdbifaces.RequestHandler to plugins.DataRequestHandler
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Rename to DataSourceCount
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Consolidate dashboard interfaces into one
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix test
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
* Fix dashboard integration tests
Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2021-03-17 16:06:10 +01:00
Emil Hessman
3519330166
Chore: Rewrite test helpers from GoConvey to stdlib ( #28919 )
2020-11-11 21:33:32 +01:00
Sofia Papagiannaki
4937f0daab
SQLStore: Run tests as integration tests ( #28265 )
...
* sqlstore: Run tests as integration tests
* Truncate database instead of re-creating it on each test
* Fix test description
See https://github.com/grafana/grafana/pull/12129
* Fix lint issues
* Fix postgres dialect after review suggestion
* Rename and document functions after review suggestion
* Add periods
* Fix auto-increment value for mysql dialect
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
2020-10-16 10:46:14 +03:00
Carl Bergquist
f9962eabff
chore: avoid aliasing imports in services ( #22499 )
2020-02-29 13:35:15 +01:00
Arve Knudsen
2a78d2a61c
pkg/services: Check errors ( #19712 )
...
* pkg/services: Check errors
* pkg/services: Don't treat context.Canceled|context.DeadlineExceeded as error
2019-10-22 14:08:18 +02:00
Ben Patterson
9904e14f8e
Alerting: Fix dates stored in local time when pausing alerts ( #19525 )
...
* Make tests more sensitive to timezone.
* Time stamps should use UTC for consistency.
* Test: Assert state is paused after pauseAllAlerts call.
2019-10-08 17:25:15 +03:00
bergquist
d25284a364
introduce state unknown
for rules that have not been evaluated yet
2018-11-05 10:50:28 +01:00
Daniel Lee
f5cc7618c5
alert: add missing test after refactor
2018-07-17 22:17:43 +02:00
Alexander Zobnin
13c6f37ea5
alerting: show alerts for user with Viewer role
...
changelog: add notes about closing #11167
remove changelog note
reformat alert_test.go
2018-06-04 12:34:30 +03:00
Patrick O'Carroll
0c269d64d0
Alert panel filters ( #11712 )
...
alert list panel: filter alerts by name, dashboard, folder, tags
2018-06-01 14:36:40 +02:00
Carl Bergquist
3f6e525755
Merge pull request #10942 from grafana/pausing_alerts_updates_timestamp
...
Pausing/un alerts now updates new_state_date
2018-03-07 15:40:12 +01:00
Leonard Gram
1f3442020b
alerts: refactoring tests
2018-02-16 14:37:10 +01:00
Leonard Gram
c5226a945b
alerting: pausing alerts modifies updated.
...
When pausing an alert the updated field is
modified to the current time.
Closes #10191
2018-02-16 14:24:52 +01:00
Torkel Ödegaard
8af2c9f1f8
test: added integration test for #10941
2018-02-16 14:17:41 +01:00
Torkel Ödegaard
5323971c21
refactoring: alert rule query refactoring ( #10941 )
2018-02-16 13:56:04 +01:00
Torkel Ödegaard
cbbbccf12a
refactoring dashoard folder guardian
2017-06-17 18:24:38 -04:00
Daniel Lee
1248728d7f
WIP: rough prototype of dashboard folders
...
Breaks some stuff like selected dash in the search result.
In dashboard search, if the user is not searching then the result is
returned as a tree structure. No ACL's or user group ux yet.
2017-06-12 15:49:09 +02:00
bergquist
a2257ec3d0
tech(alerting): renames pause all method
2016-12-19 15:17:49 +01:00
bergquist
ecdf1888c4
feat(alerting): removes pause per datasource
2016-12-19 13:24:45 +01:00
utkarshcmu
d9f2519916
Renamed Initialized to Pending
2016-11-01 07:30:55 -07:00
utkarshcmu
dcaae47e96
Fixed tests
2016-10-28 14:54:55 -07:00
Torkel Ödegaard
b0c7e61ef8
feat(alerting): removed severity
2016-09-13 15:09:55 +02:00
bergquist
712061ab4f
test(alerting): fixes broken unit tests
2016-09-07 11:45:38 +02:00
bergquist
16e75a3036
feat(alerting): add alert message to slack integration
2016-08-12 10:12:04 +02:00
Torkel Ödegaard
1edd224168
feat(alerting): fixing failing unit tests
2016-08-01 14:34:58 +02:00
bergquist
e8a324c7f5
feat(alerting): add frequency back to alert model
2016-06-17 08:27:38 +02:00
bergquist
779ea55ee0
style(alerting): rename executor -> handler
2016-06-15 11:49:20 +02:00