bergquist
9ca9a7c302
bus: dont start transaction when creating session
2018-06-15 12:46:20 +02:00
bergquist
629eab0b1e
bus: dont mix ctx/classic handlers
2018-06-15 12:46:20 +02:00
Torkel Ödegaard
5af0b924ff
refactoring: renamed AddCtxHandler to AddHandlerCtx PR #12203
2018-06-15 12:46:20 +02:00
Torkel Ödegaard
442e0e437b
refactoring: transaction manager PR #12203
2018-06-15 12:46:20 +02:00
bergquist
6775a82c82
fixes typo in code
2018-06-15 12:46:20 +02:00
bergquist
1bd31aa313
check if admin exists or create one in one transaction
2018-06-15 12:46:20 +02:00
bergquist
263572813a
replace begin/end with wrapper function
2018-06-15 12:46:20 +02:00
bergquist
8143610024
bus: support multiple dispatch in one transaction
...
this makes it possible to run multiple DispatchCtx
in one transaction. The TransactionManager will
start/end the transaction and pass the dbsession
in the context.Context variable
2018-06-15 12:46:20 +02:00
Marcus Efraimsson
81d34137a8
Merge pull request #11484 from manacker/master
...
alerting: fix mobile notifications for microsoft teams notifier
2018-06-14 15:56:18 +02:00
bergquist
f93d83befe
adds missing return statement
2018-06-06 22:17:19 +02:00
Carl Bergquist
7214ee9024
Merge pull request #12007 from bergquist/provisioning_symlinked_folders
...
Add support for symlinked folders in dashboard provisioning
2018-06-04 16:00:32 +02:00
bergquist
cd4026da6b
Revert "provisioning: turn relative symlinked path into absolut paths"
...
This reverts commit d089b5e05d .
2018-06-04 15:38:37 +02:00
bergquist
d089b5e05d
provisioning: turn relative symlinked path into absolut paths
2018-06-04 15:20:26 +02:00
Carl Bergquist
49d9235433
Merge pull request #12122 from grafana/provisioning_ha
...
Support provisioning in HA setup where modtime differs
2018-06-04 15:12:46 +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
bergquist
f606654c50
provisioning: adds fallback if evalsymlink/abs fails
2018-06-04 09:04:33 +02:00
bergquist
3f5078339c
tests: uses different paths depending on os
2018-06-04 08:27:03 +02:00
bergquist
75ee1e9208
renames intervalSeconds to updateIntervalSeconds
2018-06-04 08:13:20 +02: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
bergquist
333af6fd9b
provisioning: makes the interval for polling for changes configurable
2018-05-31 21:07:34 +02:00
bergquist
c817aecd66
provisioning: only update dashboard if hash of json changed
2018-05-31 21:05:52 +02:00
bergquist
44f5b92fbc
provisioning: only provision if json file is newer then db
2018-05-31 11:38:29 +02:00
bergquist
2bd4c14e5f
make path absolute before following symlink
2018-05-31 09:53:15 +02:00
bergquist
47d3884377
provisioning: follow symlinked folders
...
fixes #11958
2018-05-31 09:38:09 +02:00
bergquist
d5aeae3a90
test: fixes broken test on windows
2018-05-31 08:27:29 +02:00
bergquist
c7acbcdaf5
provisioning: enable relative path's
...
this commit enable relatives path for provisioning dashboards.
this enables easier dev setups
2018-05-30 08:46:44 +02:00
bergquist
1411709db1
provisioning: place testfiles within testdata folder
2018-05-29 16:30:12 +02:00
Marcus Efraimsson
5a96863eed
pin versions of xorm to resolve sql tests
...
Resolves issue with postgres tests.
Also sets timezone of test instance and database to utc to resolve
mysql tests.
Closes #12065
2018-05-28 13:07:41 +02:00
Carl Bergquist
519e58a267
Merge pull request #12071 from grafana/12056_usage_stats
...
Additional anonymous usage stats
2018-05-28 11:23:16 +02:00
Marcus Efraimsson
c9e9f25699
use sql builder for the get system stats sql query
2018-05-28 10:37:17 +02:00
bergquist
238139fad6
alerting: refactor tests
2018-05-25 16:12:34 +02:00
Marcus Efraimsson
fbc44025dc
add usage stats for datasource access mode
2018-05-25 16:06:35 +02:00
Marcus Efraimsson
2ea5b6fe33
add additional usage stats metrics
...
nr of folders
nr of folder permissions
nr of dashboard permissions
nr of snapshots
nr of teams
nr of provisioned dashboards
2018-05-25 14:33:37 +02:00
Torkel Ödegaard
80d694d205
Backend image rendering as plugin ( #11966 )
...
* rendering: headless chrome progress
* renderer: minor change
* grpc: version hell
* updated grpc libs
* wip: minor progess
* rendering: new image rendering plugin is starting to work
* feat: now phantomjs works as well and updated alerting to use new rendering service
* refactor: renamed renderer package and service to rendering to make renderer name less confusing (rendering is internal service that handles the renderer plugin now)
* rendering: now render key is passed and render auth is working in plugin mode
* removed unneeded lines from gitignore
* rendering: now plugin mode supports waiting for all panels to complete rendering
* fix: LastSeenAt fix for render calls, was not set which causes a lot of updates to Last Seen at during rendering, this should fix sqlite db locked issues in seen in previous releases
* change: changed render tz url parameter to use proper timezone name as chrome does not handle UTC offset TZ values
* fix: another update to tz param generation
* renderer: added http mode to renderer service, new ini setting [rendering] server_url
2018-05-24 15:26:27 +02:00
bergquist
c40b0ea1df
test: moves test files to testdata folder
2018-05-18 23:23:13 +02:00
Torkel Ödegaard
6c0752473a
Sqlstore refactor ( #11908 )
...
* refactor: tracing service refactoring
* refactor: sqlstore to instance service
* refactor: sqlstore & registory priority
* refactor: sqlstore refactor wip
* sqlstore: progress on getting tests to work again
* sqlstore: progress on refactoring and getting tests working
* sqlstore: connection string fix
* fix: not sure why this test is not working and required changing expires
* fix: updated grafana-cli
2018-05-18 11:10:10 +02:00
bergquist
78e837cf39
test: increase expire time to avoid tz issues in tests
2018-05-17 14:59:50 +02:00
Dan Cech
1dfff74da9
move database-specific code into dialects ( #11884 )
2018-05-10 16:54:21 +02:00
Torkel Ödegaard
c79b1bef15
Merge branch 'master' into master
2018-05-08 21:23:34 +02:00
Marcus Efraimsson
219118ef4a
Merge pull request #11867 from grafana/11862_migration
...
decrease length of auth_id column in user_auth table
2018-05-08 13:10:22 +02:00
bergquist
b649358734
rename alerting engine to service
2018-05-08 11:56:30 +02:00
bergquist
7e9a10a5fb
renames alerting engine to match other services
2018-05-08 10:53:42 +02:00
Marcus Efraimsson
8ed79d614b
decrease length of auth_id column in user_auth table
...
certain mysql versions don't support having indices with a greater varchar length
than 190.
2018-05-08 09:26:28 +02:00
Torkel Ödegaard
4c6e4e2aa6
fix: fixed gometalinter issues with Discord PR
2018-05-07 17:01:31 +02:00
Carl Bergquist
23738ad4ac
Merge pull request #11801 from grafana/provision-service-refactor
...
Server shutdown flow rewrite & provision service refactor
2018-05-07 16:32:26 +02:00
Torkel Ödegaard
e5e8b9800c
merge: fixed conflicts in discord PR
2018-05-07 15:40:43 +02:00
Dan Cech
b4ad044044
better handling for special chars in db config ( #11662 )
2018-05-07 10:33:33 +02:00
Daniel Lee
2c10f29b0f
Merge pull request #11784 from grafana/11754_auth_migration
...
increase length of auth_id column in user_auth table
2018-05-03 15:30:38 +02:00
Torkel Ödegaard
053c2039bb
refactor: provisioning service refactoring
2018-05-02 19:56:15 +02:00
Marcus Efraimsson
f17100e98e
Merge pull request #11786 from marefr/11625_save_as
...
dashboard: show save as button if user has edit permission
This will show the "Save As..." button in dashboard settings page if the user
has edit permissions (org role admin/editor or viewers_can_edit enabled)
and has at least edit permission in any folder.
2018-05-02 11:15:22 +02:00