grafana/pkg/services/sqlstore
Kristin Laemmert a33a023629
backend: add PlaylistUIDs to Playlist; remove playlist IDs from API (#49609)
* backend/api: refactor PlaylistId to PlaylistUid
* Add org_id to Get and Update playlist functions
Fix migration - no longer pad the uid; fix mysql syntax

The relevant tests are passing using postgres, mysql and the default sqllite backends, but there are a number of other failing tests when using postgres and myself so I'm not entirely confident with those results.

* fix bad query in GetPlaylistItem and add a test that would have caught the mistake in the first place. Reverted the playlist_uid column addition in playlist_item; it became unnecessary after this PR.

Added default value to the new UID column based on PR feedback.

* break this PRs migration into its own function

* Playlists: Update UI to use the updated API

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2022-06-14 15:32:52 -04:00
..
db Dashboards: Split GetDashboardVersions method (#49967) 2022-06-02 15:59:05 +02:00
migrations backend: add PlaylistUIDs to Playlist; remove playlist IDs from API (#49609) 2022-06-14 15:32:52 -04:00
migrator Chore: Remove Wrapf (#50128) 2022-06-06 22:30:31 +02:00
mockstore backend: add PlaylistUIDs to Playlist; remove playlist IDs from API (#49609) 2022-06-14 15:32:52 -04:00
permissions
searchstore Search (SQL): support dashboardUID query parameter (#50121) 2022-06-02 12:56:01 -07:00
sqlutil
alert.go
alert_notification.go
alert_notification_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
alert_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
annotation.go
annotation_cleanup.go
annotation_cleanup_test.go
annotation_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
apikey.go
apikey_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
dashboard_thumbs.go
dashboard_thumbs_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
database_wrapper.go
datasource.go Chore: Remove Wrapf (#50128) 2022-06-06 22:30:31 +02:00
datasource_test.go Chore: Remove global bus variable (#50765) 2022-06-14 16:07:41 +02:00
health.go
health_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
logger.go
login_attempt.go
login_attempt_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
org.go Chore: Remove global bus variable (#50765) 2022-06-14 16:07:41 +02:00
org_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
org_users.go AccessControl: Replace IsEnterprise checks with license checks (#49572) 2022-05-25 20:40:41 +02:00
org_users_test.go
playlist.go backend: add PlaylistUIDs to Playlist; remove playlist IDs from API (#49609) 2022-06-14 15:32:52 -04:00
playlist_test.go backend: add PlaylistUIDs to Playlist; remove playlist IDs from API (#49609) 2022-06-14 15:32:52 -04:00
plugin_setting.go
plugin_setting_test.go Chore: Remove global bus variable (#50765) 2022-06-14 16:07:41 +02:00
quota.go
quota_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
session.go
sqlbuilder.go
sqlbuilder_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
sqlstore.go Chore: Remove global bus variable (#50765) 2022-06-14 16:07:41 +02:00
sqlstore.goconvey
sqlstore_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
stats.go
stats_integration_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
stats_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
store.go backend: add PlaylistUIDs to Playlist; remove playlist IDs from API (#49609) 2022-06-14 15:32:52 -04:00
tables.go
tags.go
tags_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
team.go RBAC: Make RBAC action names more consistent (#49730) 2022-06-02 13:14:48 +01:00
team_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
temp_user.go
temp_user_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
tls_mysql.go
transactions.go Chore: Remove global bus variable (#50765) 2022-06-14 16:07:41 +02:00
transactions_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00
user.go clean up duplicated user creation code (#50178) 2022-06-07 09:49:18 -04:00
user_test.go Chore: Exclude integration tests from running on test-backend step (#50359) 2022-06-10 11:46:21 -04:00