grafana/pkg/api/dtos
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
..
acl.go refactor: format files by gofmt 2017-12-11 19:46:05 +03:00
alerting_test.go Fix misspell issues 2018-09-21 11:54:36 +02:00
alerting.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
apikey.go New implementation for API Keys that only stores hashed api keys, and the client key is base64 decoded json web token with the unhashed key, Closes #1440 2015-02-26 17:23:28 +01:00
dashboard.go Provisioning: Show file path of provisioning file in save/delete dialogs (#16706) 2019-04-30 13:32:18 +02:00
datasource.go datasource as cfg: adds readonly datasources 2017-11-15 14:30:32 +01:00
folder.go folders: use new folder service in folder api routes 2018-02-20 13:57:32 +01:00
index.go NavLinks: Make ordering in navigation configurable (#20382) 2019-11-15 09:28:55 +01:00
invite.go ux: org user management changes 2017-12-13 13:16:44 +01:00
models.go pkg/api: Check errors (#19657) 2019-10-08 18:57:53 +02:00
org.go feat(organization): added update org address to http api and to org details settings view, closes #2672 2015-09-08 14:22:44 +02:00
playlist.go Added playlist controls to new react DashNav 2019-02-04 21:08:30 +01:00
plugins.go AddDataSource: Updated page design & categories (#16971) 2019-05-09 11:45:39 +02:00
prefs.go Make golint happier 2018-03-22 22:38:44 +01:00
stream.go feat(grafana_live): more work pushing data to websocket, #4355 2016-03-14 22:26:43 +01:00
user_token.go Feature: Parse user agent string in user auth token api response (#16… (#17504) 2019-06-11 14:12:52 +02:00
user.go API: Restrict anonymous user information access (#18422) 2019-08-12 20:03:48 +02:00