Marcus Efraimsson
79b86466fd
Fix: Alerting Notification channel http api fixes ( #16288 )
...
Fix so that uid can be changed when updating notification
channels through the http api.
Update documentation
2019-03-29 09:42:38 +01:00
Marcus Efraimsson
2ae63e70c0
Alerting: Notification channel http api enhancements ( #16219 )
...
Now returns uid in response to get notification channel by id.
Adds GET/PUT/DELETE support for notification channel by uid,
/api/alert-notifications/uid/:uid.
Break apart alerting and alert notification http api docs in two
pages and update documentation to make it up to date
with current implementation.
Fixes #16012
2019-03-26 18:37:02 +07:00
Daniel Lee
fda7e686f3
Merge pull request #15205 from seanlaff/12556-oauth-pass-thru
...
Add oauth pass-thru option for datasources
2019-03-25 21:52:20 +01:00
Sean Lafferty
b3461c9806
Remove sleeps in test code by overriding time.Now()
2019-03-20 15:34:31 -04:00
Sean Lafferty
3b9b6c571a
Abstract encrypt/encode and decode/decrypt into their own functions
2019-03-20 15:18:22 -04:00
Hugo Häggmark
53c74fa2f5
teams: refactor so that you can only delete teams if you are team admin
2019-03-19 14:01:21 +01:00
Leonard Gram
9f33f00343
teams: refactor.
2019-03-19 14:01:19 +01:00
Leonard Gram
b796027bc6
teams: refactor.
2019-03-19 14:01:19 +01:00
Leonard Gram
d1481cac50
teams: refactored db code.
2019-03-19 14:01:18 +01:00
Hugo Häggmark
6a63725df0
teams: comment explaining input validation
...
Co-Authored-By: xlson <leo@xlson.com>
2019-03-19 14:01:17 +01:00
Leonard Gram
c420af16b1
teams: editor/viewer team admin cant remove the last admin.
2019-03-19 14:01:14 +01:00
Hugo Häggmark
246e128048
teams: changed permission to permission type instead of int
2019-03-19 14:01:14 +01:00
Hugo Häggmark
c826f39a8b
teams: defaulting invalid permission level to member permission level
2019-03-19 14:01:13 +01:00
Leonard Gram
c823ad5de7
team: uses PermissionType instead of int64 for permissions.
2019-03-19 14:01:13 +01:00
Leonard Gram
21d3d27452
teams: editors can't remove the last admin from a team.
2019-03-19 14:01:13 +01:00
Leonard Gram
a6a3d698da
teams: cleanup.
2019-03-19 13:57:30 +01:00
Leonard Gram
89d4db8eb6
teams: team listing shows only your teams (editors).
2019-03-19 13:57:29 +01:00
Hugo Häggmark
3c46b786d2
teams: change back to permissionlevel for Member to 0
2019-03-19 13:57:26 +01:00
Hugo Häggmark
3c74ac3044
teams: update only the selected user
2019-03-19 13:57:25 +01:00
Leonard Gram
aedc478208
teams: test for update team member.
2019-03-19 13:57:24 +01:00
Leonard Gram
2a88052c14
teams: can update team members permission.
2019-03-19 13:57:23 +01:00
Hugo Häggmark
7888457aae
teams: basic ui for permission in team members view
2019-03-19 13:57:23 +01:00
Leonard Gram
af4994ba16
teams: editor added as admin for created teams.
2019-03-19 13:57:22 +01:00
Sean Lafferty
3f9a19dcd5
Merge branch 'master' into 12556-oauth-pass-thru
2019-03-14 13:18:00 -04:00
Carl Bergquist
291ffcb75b
Merge pull request #15457 from bergquist/distributed_cache
...
Distributed cache
2019-03-14 16:16:39 +01:00
Sean Lafferty
f3c52710df
Make recently used auth_module test more robust by adding another 'log in'
2019-03-14 08:40:19 -04:00
Sean Lafferty
8d19ca005f
Merge branch 'master' into 12556-oauth-pass-thru
2019-03-13 14:25:43 -04:00
Sean Lafferty
de338338bf
Remove todo about index on user_id in user_auth because it exists
2019-03-13 13:46:49 -04:00
Sean Lafferty
f17307bb97
Always return most recently used auth_module from GetAuthInfo
2019-03-13 11:29:13 -04:00
Sean Lafferty
d922285ab8
Move oauth token migrations in user_auth_mig
2019-03-11 09:31:03 -04:00
bergquist
66e71b66dd
renames key to cache_key
...
apparently key is a reserved keyword in mysql.
and the error messages doesnt mention that.
can I please have 6h back?
2019-03-11 10:49:55 +01:00
Carl Bergquist
f3753712e0
Revert "Fix Datasource Update to no User/Password"
2019-03-11 07:22:54 +01:00
Marcus Efraimsson
e3b3062107
add nil/length check when delete old login attempts
2019-03-08 13:31:46 +01:00
bergquist
d99af23946
add garbage collector for database cache
2019-03-08 09:09:27 +01:00
bergquist
d4f5789660
cache: initial version of db cache
2019-03-08 09:09:27 +01:00
Marcus Efraimsson
f845a3b841
upgrade xorm packages to latest versions
2019-03-05 21:11:23 +01:00
Carl Bergquist
71bfefa8fb
Merge pull request #15608 from Maddin-619/fix-datasource-update
...
Fix Datasource Update to no User/Password
2019-03-05 14:38:32 +01:00
bergquist
ae9327ff3a
remove UseBool
since we use AllCols
2019-03-05 13:41:40 +01:00
Marcus Efraimsson
d49f0bedd3
fix: prevent datasource json data stored as nil ( #15508 )
...
prevent datasource json data stored as nil
closes #14239
2019-03-02 21:18:26 +01:00
bergquist
8a3a3cccc3
moves metric package to /infra
...
ref #14679
2019-02-24 21:12:51 +01:00
Maddin-619
09cd173e92
updates all cols except created so user and password
...
of the database can be chaned to no user and password
2019-02-22 14:19:15 +01:00
bergquist
3ce99bca66
renames usage state name for auth token
...
as noted, sessions might not be a good name for this metrics.
while devices would be a better name for users I think we should
align the name with the code as much as possible. The ui listing
all auth_tokens per user should probarbly say "devices" instead
2019-02-11 11:08:31 +01:00
bergquist
2be60887ca
adds usage stats for sessions
2019-02-07 16:27:40 +01:00
Marcus Efraimsson
d433ca7d40
fix util for splitting host and port
...
Now you can provide both a default host and a default port
2019-02-04 13:10:32 +01:00
Sean Lafferty
fa22311a95
base64 encode encrypted oauth token fields
2019-02-02 09:03:04 -05:00
Sean Lafferty
4a7cf82f5f
Remove length from text columns
2019-02-01 19:45:27 -05:00
Sean Lafferty
5a59cdf0ef
Add oauth pass-thru option for datasources
2019-02-01 19:40:57 -05:00
Torkel Ödegaard
9a598be4f7
Fixed failing unit test
2019-01-29 21:17:56 +01:00
Torkel Ödegaard
416562bd90
Merge pull request #15102 from mjtrangoni/fix-golint-issues
...
Fix golint issues
2019-01-29 21:12:34 +01:00
Torkel Ödegaard
a2dd6f378f
fixed sqlite issue introduced by #14709
2019-01-29 20:27:01 +01:00