grafana/docs/sources
Pete Davids 65940c7726
Dashboard: Allow shortlink generation (#27409)
* 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>
2020-10-14 12:48:48 +02:00
..
administration Docs: Change grafana to Grafana (#28242) 2020-10-14 10:46:22 +02:00
alerting Docs: Remove and update vague link text #27824 (#28055) 2020-10-07 09:31:16 -07:00
auth Docs: Refactor inconsistent unordered lists (#27826) 2020-10-02 11:02:11 -07:00
best-practices Docs: Move files (#27983) 2020-10-09 08:16:25 -07:00
dashboards Docs: Change grafana to Grafana (#28243) 2020-10-14 07:53:06 +02:00
datasources Tracing: Add Tempo data source (#28204) 2020-10-13 19:12:49 +02:00
developers JSON syntax update (#28193) 2020-10-13 11:10:48 +02:00
enterprise <Enterprise Docs> Add instructions to upload license via UI (#28067) 2020-10-09 11:45:15 -06:00
explore Added hyperlink to Prometheus (#28196) 2020-10-13 13:03:20 -04:00
getting-started Docs: Update Permissions documentation (#28144) 2020-10-09 10:08:29 -07:00
http_api Dashboard: Allow shortlink generation (#27409) 2020-10-14 12:48:48 +02:00
installation CloudWatch: Re-implement authentication (#25548) 2020-10-12 17:58:58 +02:00
linking Docs: Refactor inconsistent unordered lists (#27826) 2020-10-02 11:02:11 -07:00
manage-users Docs: Update Permissions documentation (#28144) 2020-10-09 10:08:29 -07:00
packages_api Docs: Fix note format for documentation (#27940) 2020-09-30 12:45:07 -07:00
panels Docs: Move files (#27983) 2020-10-09 08:16:25 -07:00
permissions Docs: Update Permissions documentation (#28144) 2020-10-09 10:08:29 -07:00
plugins Docs: Fixed lazy numbering in all documentation files (#27975) 2020-10-01 12:45:05 -04:00
sharing Docs: Remove and update vague link text #27824 (#28055) 2020-10-07 09:31:16 -07:00
troubleshooting Transformations changes (#27690) 2020-09-22 17:51:18 -04:00
variables Added Dot at the end of line (#28233) 2020-10-13 14:22:46 -04:00
whatsnew Removal of repeated words (#28194) 2020-10-13 11:15:38 -04:00
_index.md Docs: Move files (#27983) 2020-10-09 08:16:25 -07:00
jsearch.md Added grafana 1.x docs to main repo 2015-03-10 08:56:03 +01:00
menu.yaml Tracing: Add Tempo data source (#28204) 2020-10-13 19:12:49 +02:00
search.md Added grafana 1.x docs to main repo 2015-03-10 08:56:03 +01:00
test.md Added grafana 1.x docs to main repo 2015-03-10 08:56:03 +01:00
versions.html_fragment docs(): updated download links 2016-06-23 10:35:47 +02:00