1. 14 Oct, 2020 1 commit
    • Dashboard: Allow shortlink generation (#27409) · 65940c77
      * intial frontend resolution/redirection logic
      
      * backend scaffolding
      
      * enough of the frontend to actually test end to end
      
      * bugfixes
      
      * add tests
      
      * cleanup
      
      * explore too hard for now
      
      * fix build
      
      * Docs: add docs
      
      * FE test
      
      * redirect directly from backend
      
      * validate incoming uids
      
      * add last_seen_at
      
      * format documentation
      
      * more documentation feedback
      
      * very shaky migration of get route to middleware
      
      * persist unix timestamps
      
      * add id, orgId to table
      
      * fixes for orgId scoping
      
      * whoops forgot the middleware
      
      * only redirect to absolute URLs under the AppUrl domain
      
      * move lookup route to /goto/:uid, stop manually setting 404 response code
      
      * renaming things according to PR feedback
      
      * tricky deletion
      
      * sneaky readd
      
      * fix test
      
      * more BE renaming
      
      * FE updates -- no more @ts-ignore hacking :) and accounting for subpath
      
      * Simplify code
      
      Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
      
      * Short URLs: Drop usage of bus
      
      Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
      
      * ShortURLService: Make injectable
      
      Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
      
      * Rename file
      
      Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
      
      * Add handling of url parsing and creating of full shortURL to backend
      
      * Update test, remove unused imports
      
      * Update pkg/api/short_urls.go
      
      Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
      
      * Add correct import
      
      * Pass context to short url service
      
      * Remove not needed error log
      
      * Rename dto and field to denote URL rather than path
      
      * Update api docs based on feedback/suggestion
      
      * Rename files to singular
      
      * Revert to send relative path to backend
      
      * Fixes after review
      
      * Return dto when creating short URL that includes the full url
      
      Use full url to provide shorten URL to the user
      
      * Fix after review
      
      * Fix relative url path when creating new short url
      
      Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
      Co-authored-by: Ivana <ivana.huckova@gmail.com>
      Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
      Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
      Pete Davids committed
  2. 12 Oct, 2020 1 commit
    • AlertingNG: POC of evaluator under feature flag. (#27922) · 4acbcd70
      * New feature toggle for enabling alerting NG
      
      * Initial commit
      
      * Modify evaluate alert API request
      
      * Check for unique labels in alert execution result dataframes
      
      * Remove print statement
      
      * Additional minor fixes/comments
      
      * Fix lint issues
      
      * Add API endpoint for evaluating panel queries
      
      * Push missing renaming
      
      * add refId for condition to API
      
      * add refId for condition to API
      
      * switch dashboard based eval to get method
      
      * add from/to params to dashboard based eval
      
      * add from/to params to  eval endpoint
      
      Co-authored-by: kyle <kyle@grafana.com>
      Sofia Papagiannaki committed
  3. 07 Sep, 2020 1 commit
  4. 23 Jul, 2020 1 commit
  5. 16 Jul, 2020 1 commit
  6. 08 Jul, 2020 1 commit
    • Alerting: Support storing sensitive notifier settings securely/encrypted (#25114) · 292c985b
      Support storing sensitive notification settings securely/encrypted.
      Move slack notifier url and api token to secure settings.
      Migrating slack notifier to store token and url encrypted is currently 
      a manual process by saving an existing slack alert notification channel.
      saving an existing slack alert notification channel will reset the stored 
      non-secure url and token.
      
      Closes #25113
      Ref #25967
      
      Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
      Mitsuhiro Tanda committed
  7. 15 Apr, 2020 1 commit
  8. 09 Apr, 2020 1 commit
  9. 04 Mar, 2020 1 commit
  10. 28 Feb, 2020 1 commit
  11. 25 Feb, 2020 1 commit
  12. 15 Jan, 2020 1 commit
  13. 14 Jan, 2020 1 commit
  14. 10 Jan, 2020 1 commit
  15. 15 Nov, 2019 1 commit
    • NavLinks: Make ordering in navigation configurable (#20382) · d4e013fd
      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.
      Emil Tullstedt committed
  16. 08 Oct, 2019 1 commit
  17. 16 Aug, 2019 1 commit
    • Annotations: use a single row to represent a region (#17673) · 6335509a
      * SQLite migrations
      
      * cleanup
      
      * migrate end times
      
      * switch to update with a query
      
      * real migration
      
      * anno migrations
      
      * remove old docs
      
      * set isRegion from time changes
      
      * use <> for is not
      
      * add comment and fix index decleration
      
      * single validation place
      
      * add test
      
      * fix test
      
      * add upgrading docs
      
      * use AnnotationEvent
      
      * fix import
      
      * remove regionId from typescript
      Ryan McKinley committed
  18. 12 Aug, 2019 1 commit
    • API: Restrict anonymous user information access (#18422) · 8fd153ed
      Existing /api/alert-notifications now requires at least editor access.
      Existing /api/alert-notifiers now requires at least editor access.
      New /api/alert-notifications/lookup returns less information than
      /api/alert-notifications and can be access by any authenticated user.
      Existing /api/org/users now requires org admin role.
      New /api/org/users/lookup returns less information than
      /api/org/users and can be access by users that are org admins,
      admin in any folder or admin of any team.
      UserPicker component now uses /api/org/users/lookup instead
      of /api/org/users.
      
      Fixes #17318
      Marcus Efraimsson committed
  19. 25 Jun, 2019 1 commit
    • Alerting: Improve alert rule testing (#16286) · 5713048f
      * tsdb: add support for setting debug flag of tsdb query
      
      * alerting: adds debug flag in eval context
      
      Debug flag is set when testing an alert rule and this debug
      flag is used to return more debug information in test aler rule
      response. This debug flag is also provided to tsdb queries so
      datasources can optionally add support for returning additional
      debug data
      
      * alerting: improve test alert rule ui
      
      Adds buttons for expand/collapse json and copy json to clipboard,
      very similar to how the query inspector works.
      
      * elasticsearch: implement support for tsdb query debug flag
      
      * elasticsearch: embedding client response in struct
      
      * alerting: return proper query model when testing rule
      Marcus Efraimsson committed
  20. 11 Jun, 2019 1 commit
  21. 09 May, 2019 1 commit
  22. 30 Apr, 2019 1 commit
  23. 08 Mar, 2019 1 commit
  24. 05 Feb, 2019 1 commit
  25. 04 Feb, 2019 2 commits
  26. 16 Jan, 2019 1 commit
  27. 19 Nov, 2018 1 commit
  28. 15 Nov, 2018 1 commit
  29. 31 Oct, 2018 1 commit
  30. 17 Oct, 2018 1 commit
  31. 16 Oct, 2018 1 commit
  32. 15 Oct, 2018 1 commit
  33. 21 Sep, 2018 1 commit
    • Fix misspell issues · 3689bb77
      See,
      $ gometalinter --disable-all --enable misspell --deadline 10m --vendor ./...
      pkg/api/dtos/alerting_test.go:32:13:warning: "expectes" is a misspelling of "expects" (misspell)
      pkg/api/static/static.go:2:18:warning: "Unknwon" is a misspelling of "Unknown" (misspell)
      pkg/components/imguploader/azureblobuploader.go:55:48:warning: "conatiner" is a misspelling of "container" (misspell)
      pkg/login/ldap_settings.go:51:115:warning: "compatability" is a misspelling of "compatibility" (misspell)
      pkg/middleware/auth_proxy_test.go:122:22:warning: "Destory" is a misspelling of "Destroy" (misspell)
      pkg/middleware/logger.go:2:18:warning: "Unknwon" is a misspelling of "Unknown" (misspell)
      pkg/services/notifications/codes.go:9:13:warning: "Unknwon" is a misspelling of "Unknown" (misspell)
      pkg/services/session/mysql.go:170:3:warning: "Destory" is a misspelling of "Destroy" (misspell)
      pkg/services/session/mysql.go:171:24:warning: "Destory" is a misspelling of "Destroy" (misspell)
      pkg/services/session/session.go:95:4:warning: "Destory" is a misspelling of "Destroy" (misspell)
      pkg/services/session/session.go:96:1:warning: "Destory" is a misspelling of "Destroy" (misspell)
      pkg/services/session/session.go:167:25:warning: "Destory" is a misspelling of "Destroy" (misspell)
      pkg/setting/setting.go:1:18:warning: "Unknwon" is a misspelling of "Unknown" (misspell)
      pkg/tsdb/cloudwatch/cloudwatch.go:199:14:warning: "resolutin" is a misspelling of "resolutions" (misspell)
      pkg/tsdb/cloudwatch/cloudwatch.go:270:15:warning: "resolutin" is a misspelling of "resolutions" (misspell)
      pkg/tsdb/elasticsearch/response_parser.go:531:24:warning: "Unkown" is a misspelling of "Unknown" (misspell)
      pkg/tsdb/elasticsearch/client/search_request.go:113:7:warning: "initaite" is a misspelling of "initiate" (misspell)
      
      Note: Unknwon is a library name, and Destory a mysql typo.
      Mario Trangoni committed
  34. 20 Aug, 2018 1 commit
  35. 02 Jul, 2018 1 commit
  36. 05 Jun, 2018 3 commits
  37. 04 Jun, 2018 1 commit