Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty playlists cannot be deleted #11133

Closed
flopp999 opened this issue Mar 7, 2018 · 2 comments · Fixed by #11595
Closed

Empty playlists cannot be deleted #11133

flopp999 opened this issue Mar 7, 2018 · 2 comments · Fixed by #11595

Comments

@flopp999
Copy link
Contributor

flopp999 commented Mar 7, 2018

Please include this information:

  • What Grafana version are you using?
    5.0
  • What datasource are you using?
    Influx
  • What OS are you running grafana on?
    Debian
  • What did you do?
    Trying to delete existing empty playlist
  • What was the expected result?
    See attachment
  • What happened instead?
    It still exist

I have upgraded from 4.6.3 -> 5.0

When I try to edit the playlist, it open a page to create a new playlist.

playlist

@flopp999 flopp999 changed the title Grafana 5.0 - Playlist can't delete Grafana 5.0 - Playlist, cannot be deleted Mar 7, 2018
@bergquist bergquist changed the title Grafana 5.0 - Playlist, cannot be deleted Empty playlists cannot be deleted Mar 7, 2018
@glitchsys
Copy link

glitchsys commented Apr 5, 2018

Same problem, same version of Grafana (5.0.0). I have a playlist that can't be deleted. If I click on "Edit" it brings me to a blank playlist, even the Name is blank. Name should have been the name of the playlist I was trying to edit. I tried creating a new playlist with the same exact name but it only resulted me in having 2 playlists with the same name, I can delete the new one but not the original one.

@glitchsys
Copy link

glitchsys commented Apr 5, 2018

I figured out how to delete the playlists from the database. I'm using postgresql and I was able to:

grafana=# delete from playlist;
DELETE 2
grafana=# alter sequence playlist_id_seq restart;
ALTER SEQUENCE
grafana=# delete from playlist_item;
DELETE 4
grafana=# alter sequence playlist_item_id_seq restart;
ALTER SEQUENCE

I'm sure with some database manipulation you could fix the missing playlist but for me I only had 3 playlists and they were easy enough to re-create so it was easier for me to just wipe the tables and re-build the playlists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants