mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 13:39:19 -06:00
586272e5f0
* 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> |
||
---|---|---|
.. | ||
migrations | ||
migrator | ||
mockstore | ||
permissions | ||
searchstore | ||
sqlutil | ||
alert_notification_test.go | ||
alert_notification.go | ||
alert_test.go | ||
alert.go | ||
annotation_cleanup_test.go | ||
annotation_cleanup.go | ||
annotation_test.go | ||
annotation.go | ||
apikey_test.go | ||
apikey.go | ||
dashboard_acl.go | ||
dashboard_provisioning.go | ||
dashboard_snapshot_test.go | ||
dashboard_snapshot.go | ||
dashboard_thumbs_test.go | ||
dashboard_thumbs.go | ||
dashboard_version_test.go | ||
dashboard_version.go | ||
dashboard.go | ||
database_wrapper.go | ||
datasource_test.go | ||
datasource.go | ||
health_test.go | ||
health.go | ||
logger.go | ||
login_attempt_test.go | ||
login_attempt.go | ||
org_test.go | ||
org_users_test.go | ||
org_users.go | ||
org.go | ||
playlist_test.go | ||
playlist.go | ||
plugin_setting.go | ||
preferences_test.go | ||
preferences.go | ||
quota_test.go | ||
quota.go | ||
session.go | ||
sqlbuilder_test.go | ||
sqlbuilder.go | ||
sqlstore_test.go | ||
sqlstore.go | ||
sqlstore.goconvey | ||
star.go | ||
stars_test.go | ||
stats_integration_test.go | ||
stats_test.go | ||
stats.go | ||
store.go | ||
tables.go | ||
tags_test.go | ||
tags.go | ||
team_test.go | ||
team.go | ||
temp_user_test.go | ||
temp_user.go | ||
tls_mysql.go | ||
transactions_test.go | ||
transactions.go | ||
user_test.go | ||
user.go |