grafana/pkg/api
Emil Tullstedt d4e013fd44
NavLinks: Make ordering in navigation configurable (#20382)
The ordering of links in the navigation bar is currently based the order of the slice containing the navigation tree. Since Grafana supports adding more links to the navigation bar with `RunIndexDataHooks` which runs at the very end of the function this means that any link registered through a hook will be placed last in the slice and be displayed last in the menu. With this PR the ordering can be specified with a weight which allows for placing links created by extensions in a more intuitive place where applicable.

Stable sorting is used to ensure that the current FIFO ordering is preserved when either no weight is set or two items shares the same weight.
2019-11-15 09:28:55 +01:00
..
avatar Avatar: Don't log failure to add existing item to cache (#19947) 2019-11-12 18:49:09 +01:00
dtos NavLinks: Make ordering in navigation configurable (#20382) 2019-11-15 09:28:55 +01:00
live pkg/api: Check errors (#19657) 2019-10-08 18:57:53 +02:00
pluginproxy Datasource: Add custom headers on alerting queries (#19508) 2019-10-11 14:28:52 +02:00
routing
static
admin.go
admin_provisioning.go Provisioning: Add API endpoint to reload provisioning configs (#16579) 2019-04-25 09:06:44 +02:00
admin_users.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
admin_users_test.go Auth: Logout disabled user (#17166) 2019-05-23 15:54:47 +03:00
alerting.go API: Restrict anonymous user information access (#18422) 2019-08-12 20:03:48 +02:00
alerting_test.go API: Restrict anonymous user information access (#18422) 2019-08-12 20:03:48 +02:00
annotations.go Annotations: use a single row to represent a region (#17673) 2019-08-16 10:49:30 +02:00
annotations_test.go Annotations: use a single row to represent a region (#17673) 2019-08-16 10:49:30 +02:00
api.go Licensing service (#19903) 2019-11-01 14:56:12 +01:00
apikey.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
app_routes.go move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
basic_auth.go
basic_auth_test.go
common.go pkg/api: Check errors (#19657) 2019-10-08 18:57:53 +02:00
common_test.go Fix: Break redirect loop if oauth_auto_login = true and OAuth login fails (#17974) 2019-07-09 09:37:24 +03:00
dashboard.go api/dashboard: fix panic on UI save (#20137) 2019-11-01 07:57:03 +01:00
dashboard_permission.go
dashboard_permission_test.go
dashboard_snapshot.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
dashboard_snapshot_test.go pkg/api: Check errors (#19657) 2019-10-08 18:57:53 +02:00
dashboard_test.go Provisioning: fix for cannot save provisioned dashboard (#20218) 2019-11-07 10:49:24 +01:00
dataproxy.go Metrics: use consistent naming for exported variables (#18134) 2019-07-16 16:58:46 +02:00
dataproxy_test.go
datasources.go Api: Readonly datasources should not be created via the API (#19006) 2019-09-17 12:29:43 +03:00
datasources_test.go
folder.go API: Minor fix for nil pointer when trying to log error during creating new dashboard via the API (#18003) 2019-07-11 09:45:29 +03:00
folder_permission.go
folder_permission_test.go
folder_test.go Search: Fixes search limits and adds a page parameter (#16458) 2019-04-17 13:07:50 +02:00
frontendsettings.go Licensing service (#19903) 2019-11-01 14:56:12 +01:00
grafana_com_proxy.go http: remove dualstack since its deprecated (#16940) 2019-05-08 10:37:48 +02:00
http_server.go Licensing service (#19903) 2019-11-01 14:56:12 +01:00
http_server_test.go
index.go NavLinks: Make ordering in navigation configurable (#20382) 2019-11-15 09:28:55 +01:00
ldap_debug.go LDAP: Fixing sync issues (#19446) 2019-11-07 14:31:44 +01:00
ldap_debug_test.go LDAP: Fixing sync issues (#19446) 2019-11-07 14:31:44 +01:00
login.go AuthProxy: Can now login with auth proxy and get a login token (#20175) 2019-11-07 17:48:56 +01:00
login_oauth.go OAuth: Generic OAuth role mapping support (#17149) 2019-11-05 21:56:42 +01:00
login_test.go AuthProxy: Can now login with auth proxy and get a login token (#20175) 2019-11-07 17:48:56 +01:00
metrics.go GEL: include the expression count in the request (#20114) 2019-10-31 16:22:00 -07:00
org.go Metrics: use consistent naming for exported variables (#18134) 2019-07-16 16:58:46 +02:00
org_invite.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
org_users.go API: Restrict anonymous user information access (#18422) 2019-08-12 20:03:48 +02:00
password.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
playlist.go Codestyle: Fix some goconst issues (#17530) 2019-06-12 07:27:47 +02:00
playlist_play.go move log package to /infra (#17023) 2019-05-13 08:45:54 +02:00
plugins.go AddDataSource: Updated page design & categories (#16971) 2019-05-09 11:45:39 +02:00
preferences.go
quota.go
render.go
search.go Metrics: use consistent naming for exported variables (#18134) 2019-07-16 16:58:46 +02:00
signup.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
stars.go
team.go API: Minor fix for team creation endpoint when using API key (#18252) 2019-08-08 11:27:47 +03:00
team_members.go Licensing service (#19903) 2019-11-01 14:56:12 +01:00
team_test.go API: Minor fix for team creation endpoint when using API key (#18252) 2019-08-08 11:27:47 +03:00
user.go pkg/util: Check errors (#19832) 2019-10-23 10:40:12 +02:00
user_test.go API: Add `createdAt` and `updatedAt` to api/users/lookup (#19496) 2019-09-30 20:54:09 +01:00
user_token.go Api: Fix auth tokens returning wrong seenAt value (#17980) 2019-07-08 14:30:02 +02:00
user_token_test.go Api: Fix auth tokens returning wrong seenAt value (#17980) 2019-07-08 14:30:02 +02:00