{"action":"created","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/9031","repository_url":"https://api.github.com/repos/grafana/grafana","labels_url":"https://api.github.com/repos/grafana/grafana/issues/9031/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/9031/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/9031/events","html_url":"https://github.com/grafana/grafana/issues/9031","id":249975225,"number":9031,"title":"[Feature request] Overwrite id of notification_channels and version of dashboards","user":{"login":"Luke1887","id":23240809,"avatar_url":"https://avatars1.githubusercontent.com/u/23240809?v=4","gravatar_id":"","url":"https://api.github.com/users/Luke1887","html_url":"https://github.com/Luke1887","followers_url":"https://api.github.com/users/Luke1887/followers","following_url":"https://api.github.com/users/Luke1887/following{/other_user}","gists_url":"https://api.github.com/users/Luke1887/gists{/gist_id}","starred_url":"https://api.github.com/users/Luke1887/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luke1887/subscriptions","organizations_url":"https://api.github.com/users/Luke1887/orgs","repos_url":"https://api.github.com/users/Luke1887/repos","events_url":"https://api.github.com/users/Luke1887/events{/privacy}","received_events_url":"https://api.github.com/users/Luke1887/received_events","type":"User","site_admin":false},"labels":[{"id":81198721,"url":"https://api.github.com/repos/grafana/grafana/labels/type:%20feature%20request","name":"type: feature request","color":"dddddd","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-14T09:18:53Z","updated_at":"2018-04-11T18:36:10Z","closed_at":null,"author_association":"NONE","body":"- What Grafana version are you using?\r\n  5.0.0-pre1 dd40394\r\n\r\n- What datasource are you using?\r\n  elasticsearch/graphite\r\n\r\n- What OS are you running grafana on?\r\n  RHEL 7\r\n\r\n- What did you do?\r\n  Import dashboards and notification channels via api\r\n  In my team we save dashboards and notification channels and datasources like they are via \"view json\" or my.grafana.server/api/alert-notifications in a git repo. From this repo we import dashboard/datasources/notification_channels via http-api. Notification channels get on each creation a new id, this is in our case very inappropriate because the channel ist linked by the channel id and not - like with datasources - by the name. \r\n\r\nThe Problem here is: we have 2 grafana instances: one for live and one for testing. We generate dashboards/channels/source on git-changes and do not copy db from one server to an other..\r\n\r\n- What was the expected result?\r\n  In my team we save dashboards and notification channels like they are via \"view json\" or my.grafana.server/api/alert-notifications in a git repo. \r\n  I am expeting, that all field, even \"id\" of dashboards or \"notification channels\" or \"version\" of dashboards will be taken from slug.\r\n\r\n- What happened instead?\r\n  Settings of fields \"version\" or \"id\" are ignored.\r\n \r\nIt would be great if dashboards will link the notification name instead of id - or - if overwriting of id would be possible. I would prefer linking it the name like in datasources.\r\nIt would be also wonderful if the field \"version\" in dashboards might be overwritten"},"comment":{"url":"https://api.github.com/repos/grafana/grafana/issues/comments/380553343","html_url":"https://github.com/grafana/grafana/issues/9031#issuecomment-380553343","issue_url":"https://api.github.com/repos/grafana/grafana/issues/9031","id":380553343,"user":{"login":"randallt","id":7264834,"avatar_url":"https://avatars0.githubusercontent.com/u/7264834?v=4","gravatar_id":"","url":"https://api.github.com/users/randallt","html_url":"https://github.com/randallt","followers_url":"https://api.github.com/users/randallt/followers","following_url":"https://api.github.com/users/randallt/following{/other_user}","gists_url":"https://api.github.com/users/randallt/gists{/gist_id}","starred_url":"https://api.github.com/users/randallt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randallt/subscriptions","organizations_url":"https://api.github.com/users/randallt/orgs","repos_url":"https://api.github.com/users/randallt/repos","events_url":"https://api.github.com/users/randallt/events{/privacy}","received_events_url":"https://api.github.com/users/randallt/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T18:36:10Z","updated_at":"2018-04-11T18:36:10Z","author_association":"NONE","body":"Looks like I ran into an issue migrating dashboards from a Grafana 4 server to a new Grafana 5 server. I recreated the notification channels manually. I didn't know this would break the dashboard alerts. When I imported dashboards that use alerts, several of them were completely wrong."}}
{"actor":{"display_login":"randallt"}}