grafana/public/app/features/variables/state
aidanmountford f98e176d7b
Templating: Add bult in __user {name, id, login, email} variable to templating system (#23378)
* Updated templating code to support the $__user variable to expose the current
userid, username, email and login.

Fixed the $__org variable as it was returning the user id instead of the ordId.

Updated the documentation to match

* Updated solution to retrieving $__user variables to pull directly from user record (thereby allowing future access to properties that
might not exist in the contextSvr).

Replicated this initialisation in the variables feature

Corrected typo's in documentation.

* Repaired typecheck issues.

* Updated patch to pull entirely from contextSrv without API calls.

* ... And removed the redundant comments.

* Updated documentation.
2020-06-02 08:47:54 +02:00
..
actions.test.ts Dashboard: Variable without a current value in json model causes crash on load (#24261) 2020-05-05 15:47:48 +02:00
actions.ts Templating: Add bult in __user {name, id, login, email} variable to templating system (#23378) 2020-06-02 08:47:54 +02:00
helpers.ts Variables: breaks variable.ts into 2 separate files utils and types (#22884) 2020-03-24 05:46:31 +01:00
onTimeRangeUpdated.test.ts Variables: breaks variable.ts into 2 separate files utils and types (#22884) 2020-03-24 05:46:31 +01:00
processVariable.test.ts FieldOverride: Support data links via field overrides (#23590) 2020-04-20 07:37:38 +02:00
reducers.test.ts TemplateSrv: expose limited templateSrv in grafana/runtime (#23339) 2020-04-05 21:44:49 -07:00
reducers.ts Variables: breaks variable.ts into 2 separate files utils and types (#22884) 2020-03-24 05:46:31 +01:00
selectors.ts Templating: fixes filtering options with more than 1000 entries (#24614) 2020-05-14 08:09:21 +02:00
sharedReducer.test.ts Dashboard: Variable without a current value in json model causes crash on load (#24261) 2020-05-05 15:47:48 +02:00
sharedReducer.ts Dashboard: Variable without a current value in json model causes crash on load (#24261) 2020-05-05 15:47:48 +02:00
types.ts TemplateSrv: expose limited templateSrv in grafana/runtime (#23339) 2020-04-05 21:44:49 -07:00
variablesReducer.ts Variables: breaks variable.ts into 2 separate files utils and types (#22884) 2020-03-24 05:46:31 +01:00