grafana/pkg/models
Anthony Templeton 3680b95b44 Auth: Duplicate API Key Name Handle With Useful HTTP Code (#17905)
* API: Duplicate API Key Name Handle With Useful HTTP Code

* 17447: make changes requested during review

- use dialect.IsUniqueContraintViolation
- change if statement to match others
- return error properly

* Revert "17447: make changes requested during review"

This reverts commit a4a674ea83.

* API: useful http code on duplicate api key error w/ tests

* API: API Key Duplicate Handling

fixed small typo associated with error
2019-07-11 11:20:34 +03:00
..
address.go
alert.go Alerting: Add tags to alert rules (#10989) 2019-06-06 13:29:30 +02:00
alert_notifications.go Chore: a bit of spring cleaning (#16710) 2019-04-23 11:24:47 +03:00
alert_test.go Alerting: Add tags to alert rules (#10989) 2019-06-06 13:29:30 +02:00
apikey.go Auth: Duplicate API Key Name Handle With Useful HTTP Code (#17905) 2019-07-11 11:20:34 +03:00
context.go move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
dashboard_acl.go Chore: a bit of spring cleaning (#16710) 2019-04-23 11:24:47 +03:00
dashboard_acl_test.go
dashboard_snapshot.go snapshots: Move external snapshot creation to backend 2018-12-10 16:36:32 -05:00
dashboard_version.go build: upgrades to golang 1.12.4 (#16545) 2019-04-15 09:18:28 +02:00
dashboards.go Provisioning: Show file path of provisioning file in save/delete dialogs (#16706) 2019-04-30 13:32:18 +02:00
dashboards_test.go
datasource.go Usage Stats: Update known datasource plugins (#17787) 2019-06-26 21:15:45 +02:00
datasource_cache.go http: remove dualstack since its deprecated (#16940) 2019-05-08 10:37:48 +02:00
datasource_cache_test.go Build: use golangci-lint as a make command (#17739) 2019-07-02 16:06:59 +03:00
folders.go
health.go
helpflags.go
home_dashboard.go
login_attempt.go
models.go
notifications.go Chore: a bit of spring cleaning (#16710) 2019-04-23 11:24:47 +03:00
org.go
org_user.go Fixed gofmt issue in PR #16093 2019-03-20 10:58:20 +01:00
playlist.go
plugin_settings.go
preferences.go
quotas.go
saml.go Auth: SAML login button. (#17932) 2019-07-05 15:24:52 +02:00
search.go
star.go
stats.go metrics: expose stats about roles as metrics (#17469) 2019-06-06 16:39:35 +02:00
streams.go
tags.go
tags_test.go
team.go teams: refactor so that you can only delete teams if you are team admin 2019-03-19 14:01:21 +01:00
team_member.go Teams: show proper label for each auth provider (#17860) 2019-07-03 16:52:10 +03:00
temp_user.go
test_data.go
user.go Users: show badges for each auth provider (#17869) 2019-07-10 12:06:51 +03:00
user_auth.go Users: Disable users removed from LDAP (#16820) 2019-05-21 14:52:49 +03:00
user_token.go Auth: Enable retries and transaction for some db calls for auth tokens (#16785) 2019-04-30 14:42:01 +02:00