3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00
grafana/pkg/services
Steve Simpson 6ea97e41fb
Alerting: Consistently return Prometheus-style responses from rules APIs. ()
* Alerting: Consistently return Prometheus-style responses from rules APIs.

This commit is part refactor and part fix. The /rules API occasionally returns
error responses which are inconsistent with other error responses. This fixes
that, and adds a function to map from Prometheus error type and HTTP code.

* Fix integration tests

* Linter happiness

* Make linter more happy

* Fix up one more place returning non-Prometheus responses
2024-04-19 21:03:20 +02:00
..
accesscontrol RBAC: Add actionsets struct and write path () 2024-04-19 15:38:14 +01:00
annotations Chore: Replace sqlstore with db interface () 2024-04-04 15:04:47 +02:00
anonymous Auth: Add IsClientEnabled and IsEnabled for the authn.Service and authn.Client interfaces () 2024-04-15 10:54:50 +02:00
apikey Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
apiserver Plugins: Pass cancellable context during API server creation () 2024-04-19 09:22:14 +03:00
auth Session: set authID and authenticatedBy () 2024-04-11 10:25:29 +02:00
authn AuthZ: Further protect admin endpoints () 2024-04-16 15:48:12 +01:00
caching Fixing typos () 2023-06-22 09:43:38 +01:00
cleanup Auth: Fix email verification bypass when using basic authentication () 2024-02-16 18:54:59 +01:00
cloudmigration CloudMigrations: Move business logic out of api layer () 2024-04-17 15:43:09 -04:00
contexthandler Tracing: Improve HTTP request/middleware spans and standalone apiserver () 2024-04-11 13:28:23 +02:00
correlations Chore: Replace sqlstore with db interface () 2024-04-04 15:04:47 +02:00
dashboardimport Add FolderUID for library elements () 2024-04-09 12:27:43 +02:00
dashboards Dashboard: Allow auto refresh option when saving a dashboard () 2024-04-11 12:31:47 +03:00
dashboardsnapshots Snapshots: Viewers can not create a Snapshot () 2024-03-22 14:31:01 -03:00
dashboardversion Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
datasourceproxy Errors: Make errors the same in dev as prod () 2023-10-30 14:06:26 -04:00
datasources Provisioning: datasources auto deletion () 2024-04-08 11:45:39 +02:00
encryption Chore: use any rather than interface{} () 2023-08-30 18:46:47 +03:00
extsvcauth Better tracing during extSvcAcc registration () 2024-03-21 16:41:10 +01:00
featuremgmt Chore: Replace backend platform codeownership () 2024-04-19 19:12:59 +02:00
folder Add FolderUID for library elements () 2024-04-09 12:27:43 +02:00
gcom Cloud migrations: create endpoint to create an access token () 2024-03-25 12:43:28 -03:00
grpcserver Storage Api: Adds traces () 2024-04-16 08:30:51 -06:00
guardian Folders: Allow listing folders with write permission () 2024-03-15 14:05:27 +02:00
hooks Hooks: Remove AddLoginHook and RunLogin hooks () 2023-08-17 09:51:45 +02:00
kmsproviders Secrets: Make the Migrator extensible () 2023-06-19 23:44:01 +02:00
ldap User: Clean up update functions () 2024-04-16 16:33:50 +02:00
libraryelements Add FolderUID for library elements () 2024-04-09 12:27:43 +02:00
librarypanels Add FolderUID for library elements () 2024-04-09 12:27:43 +02:00
licensing Chore: Clean up old navigation () 2023-04-14 09:43:11 +01:00
live Grafana: Replace magic number with a constant variable in response status () 2024-02-27 18:39:51 +02:00
login User: Fix GetByID () 2024-04-16 15:24:34 +02:00
loginattempt Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
navtree Explore: Move app to under explore > traces () 2024-04-17 14:18:06 +01:00
ngalert Alerting: Consistently return Prometheus-style responses from rules APIs. () 2024-04-19 21:03:20 +02:00
notifications Refactor: Email verification () 2024-03-14 13:25:28 +01:00
oauthtoken Fix: Refresh token when id_token is expired () 2024-02-05 16:44:25 +01:00
org User: use update function for password updates () 2024-04-17 15:24:36 +02:00
playlist Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
plugindashboards Chore: removing folderId from plugindashboard service () 2024-01-16 11:08:39 +01:00
pluginsintegration Return plugin error when requesting settings () 2024-04-18 14:29:02 +02:00
preference Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
provisioning Provisioning: datasources auto deletion () 2024-04-08 11:45:39 +02:00
publicdashboards Chore: Replace sqlstore with db interface () 2024-04-04 15:04:47 +02:00
query Feature Flags: use FeatureToggles interface where possible () 2024-04-04 12:22:31 -04:00
queryhistory Query History: Count using SQL, not post query () 2024-02-20 07:32:40 -06:00
quota Chore: Replace sqlstore with db interface () 2024-04-04 15:04:47 +02:00
rendering Feature Flags: use FeatureToggles interface where possible () 2024-04-04 12:22:31 -04:00
screenshot Remove extra defers in screenshot sevice () 2024-03-20 07:13:16 +00:00
search Add MFolderIDsServiceCount to count folderIDs in services pkg () 2024-01-25 11:10:35 +01:00
searchusers Grafana: Replace magic number with a constant variable in response status () 2024-02-27 18:39:51 +02:00
searchV2 Chore: Replace sqlstore with db interface () 2024-04-04 15:04:47 +02:00
secrets Chore: Replace sqlstore with db interface () 2024-04-04 15:04:47 +02:00
serviceaccounts Feature Flags: use FeatureToggles interface where possible () 2024-04-04 12:22:31 -04:00
shorturls Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
signingkeys SigningKeys: Add added_at when creating new signing key () 2024-03-25 09:58:40 +01:00
sqlstore SQLStore: Improve recursive CTE support detection () 2024-04-17 08:37:47 -04:00
ssosettings Auth: encrypt/decrypt SAML secrets in SSO settings service () 2024-04-18 15:16:59 +03:00
star Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
stats Chore: Replace sqlstore with db interface () 2024-04-04 15:04:47 +02:00
store Storage Api: Adds traces () 2024-04-16 08:30:51 -06:00
supportbundles Feature Flags: use FeatureToggles interface where possible () 2024-04-04 12:22:31 -04:00
tag Chore: Update test database initialization () 2024-02-09 09:35:39 -05:00
team Chore: Replace sqlstore with db interface () 2024-04-04 15:04:47 +02:00
temp_user User: email verification completion () 2024-03-28 16:05:33 +01:00
updatechecker Chore: Making versioncheck url rely on config instead of being hardcoded () 2024-04-11 12:04:53 +02:00
user User: use update function for password updates () 2024-04-17 15:24:36 +02:00
validations chore: move validations model into the validations service () 2023-01-23 15:10:14 -05:00