grafana/docs/sources/http_api
Ashley Harrison 586272e5f0
Navigation: Introduce a preferences table to store Navbar preferences (#44914)
* First attempt at creating new navbar_preferences table in db

* Apply to every nav item instead of just home

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* Chore: introduce initTestDB options for features

* fix unit tests

* Add another unit test and some logic for detecting if a preference already exists

* tidy up

* Only override IsFeatureToggleEnabled if it's defined

* Extract setNavPreferences out into it's own function, initialise features correctly

* Make the linter happy

* Use new structure

* user essentials mob! 🔱

* user essentials mob! 🔱

* Split NavbarPreferences from Preferences

* user essentials mob! 🔱

* user essentials mob! 🔱

* Fix lint error

* Start adding tests

* Change internal db structure to be a generic json object

* GetJsonData -> GetPreferencesJsonData

* Stop using simplejson + add some more unit tests

* Update pkg/api/preferences.go

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

* Updates following review comments

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* Change patch to upsert, add a unit test

* remove commented out code

* introduce patch user/org preferences methods

* Return Navbar preferences in the get call

* Fix integration test by instantiating JsonData

* Address review comments

* Rename HideFromNavbar -> Hide

* add swagger:model comment

* Add patch to the preferences documentation

* Add openapi annotations

* Add a short description

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* user essentials mob! 🔱

* Update unit tests

* remove unneeded url

* remove outdated comment

* Update integration tests

* update generated swagger

Co-authored-by: Alexandra Vargas <alexa1866@gmail.com>
Co-authored-by: Hugo Häggmark <hugo.haggmark@gmail.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2022-03-17 12:07:20 +00:00
..
_index.md Remove service accounts from public documentation as it's not being released yet (#44658) 2022-01-31 16:37:51 +01:00
access_control.md Access control: allow hiding roles (#46358) 2022-03-15 13:17:45 +00:00
admin.md Docs: Add usage stats preview to doc (#43995) 2022-01-24 14:24:58 +01:00
alerting_notification_channels.md Update alert doc structure (#34659) 2021-05-25 10:51:28 -04:00
alerting.md PackageJson: Prettify markdown/mdx on commit with lint-staged (#37616) 2021-08-06 07:52:36 -06:00
annotations.md PackageJson: Prettify markdown/mdx on commit with lint-staged (#37616) 2021-08-06 07:52:36 -06:00
auth.md PackageJson: Prettify markdown/mdx on commit with lint-staged (#37616) 2021-08-06 07:52:36 -06:00
create-api-tokens-for-org.md PackageJson: Prettify markdown/mdx on commit with lint-staged (#37616) 2021-08-06 07:52:36 -06:00
curl-examples.md PackageJson: Prettify markdown/mdx on commit with lint-staged (#37616) 2021-08-06 07:52:36 -06:00
dashboard_permissions.md Docs: Replace next with latest in aliases (#33054) 2021-04-15 23:08:58 +02:00
dashboard_versions.md Update dashboard_versions.md (#45871) 2022-02-24 16:15:58 -05:00
dashboard.md Doc: Fix escalation issue 903 (#40034) 2021-10-06 01:46:29 +02:00
data_source.md API: return resource ID when deleting datasource with UID and library element (#41342) 2021-11-05 15:06:14 +01:00
datasource_permissions.md Update docs for ds permissions access control permisisons (#43346) 2022-01-11 14:52:33 +01:00
external_group_sync.md Documentation for teams with FGAC (#45321) 2022-02-11 18:00:13 +01:00
folder_dashboard_search.md add default number of returned dashboards (#45755) 2022-02-23 04:28:39 -08:00
folder_permissions.md Docs: Replace next with latest in aliases (#33054) 2021-04-15 23:08:58 +02:00
folder.md PackageJson: Prettify markdown/mdx on commit with lint-staged (#37616) 2021-08-06 07:52:36 -06:00
library_element.md Update docs library element http api (#44493) 2022-02-03 08:46:03 +01:00
licensing.md AccessControl: document FGAC licensing permissions (#39192) 2021-10-05 18:35:01 +02:00
org.md AccessControl: Document orgs roles and orgs endpoints (#42171) 2021-11-24 10:08:55 +01:00
other.md PackageJson: Prettify markdown/mdx on commit with lint-staged (#37616) 2021-08-06 07:52:36 -06:00
playlist.md PackageJson: Prettify markdown/mdx on commit with lint-staged (#37616) 2021-08-06 07:52:36 -06:00
preferences.md Navigation: Introduce a preferences table to store Navbar preferences (#44914) 2022-03-17 12:07:20 +00:00
query_history.md Query history: Add search functionality (#45932) 2022-03-07 12:28:04 +01:00
reporting.md PackageJson: Prettify markdown/mdx on commit with lint-staged (#37616) 2021-08-06 07:52:36 -06:00
short_url.md Short URL: Fix so that orgId is included in generated short URL (#34696) 2021-06-01 14:19:10 +02:00
snapshot.md doc: snapshots: fix JSON response (#44758) 2022-02-02 14:03:14 +01:00
team.md Team access changes for editors when editorsCanAdmin is enabled (#45405) 2022-02-15 17:09:03 +00:00
user.md PackageJson: Prettify markdown/mdx on commit with lint-staged (#37616) 2021-08-06 07:52:36 -06:00