{"action":"created","issue":{"url":"https://api.github.com/repos/pilosa/pilosa/issues/613","repository_url":"https://api.github.com/repos/pilosa/pilosa","labels_url":"https://api.github.com/repos/pilosa/pilosa/issues/613/labels{/name}","comments_url":"https://api.github.com/repos/pilosa/pilosa/issues/613/comments","events_url":"https://api.github.com/repos/pilosa/pilosa/issues/613/events","html_url":"https://github.com/pilosa/pilosa/issues/613","id":234307184,"number":613,"title":"Provide an API for deleting views","user":{"login":"travisturner","id":410544,"avatar_url":"https://avatars3.githubusercontent.com/u/410544?v=4","gravatar_id":"","url":"https://api.github.com/users/travisturner","html_url":"https://github.com/travisturner","followers_url":"https://api.github.com/users/travisturner/followers","following_url":"https://api.github.com/users/travisturner/following{/other_user}","gists_url":"https://api.github.com/users/travisturner/gists{/gist_id}","starred_url":"https://api.github.com/users/travisturner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travisturner/subscriptions","organizations_url":"https://api.github.com/users/travisturner/orgs","repos_url":"https://api.github.com/users/travisturner/repos","events_url":"https://api.github.com/users/travisturner/events{/privacy}","received_events_url":"https://api.github.com/users/travisturner/received_events","type":"User","site_admin":false},"labels":[{"id":540985516,"url":"https://api.github.com/repos/pilosa/pilosa/labels/enhancement","name":"enhancement","color":"fbca04","default":true}],"state":"open","locked":false,"assignee":{"login":"raskle","id":585044,"avatar_url":"https://avatars1.githubusercontent.com/u/585044?v=4","gravatar_id":"","url":"https://api.github.com/users/raskle","html_url":"https://github.com/raskle","followers_url":"https://api.github.com/users/raskle/followers","following_url":"https://api.github.com/users/raskle/following{/other_user}","gists_url":"https://api.github.com/users/raskle/gists{/gist_id}","starred_url":"https://api.github.com/users/raskle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raskle/subscriptions","organizations_url":"https://api.github.com/users/raskle/orgs","repos_url":"https://api.github.com/users/raskle/repos","events_url":"https://api.github.com/users/raskle/events{/privacy}","received_events_url":"https://api.github.com/users/raskle/received_events","type":"User","site_admin":false},"assignees":[{"login":"raskle","id":585044,"avatar_url":"https://avatars1.githubusercontent.com/u/585044?v=4","gravatar_id":"","url":"https://api.github.com/users/raskle","html_url":"https://github.com/raskle","followers_url":"https://api.github.com/users/raskle/followers","following_url":"https://api.github.com/users/raskle/following{/other_user}","gists_url":"https://api.github.com/users/raskle/gists{/gist_id}","starred_url":"https://api.github.com/users/raskle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raskle/subscriptions","organizations_url":"https://api.github.com/users/raskle/orgs","repos_url":"https://api.github.com/users/raskle/repos","events_url":"https://api.github.com/users/raskle/events{/privacy}","received_events_url":"https://api.github.com/users/raskle/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-06-07T18:50:18Z","updated_at":"2017-08-18T18:44:48Z","closed_at":null,"body":"### Description\r\nThis feature is particularly useful for time-based frames which can have a number of views growing over time. An example is a frame with `timeQuantum = \"D\"` where the user is interested in a rolling window of time like \"that last 30 days\". In this case, it would be useful to provide the ability for views older than 30 days to be deleted while the server is still running.\r\n\r\n### Success criteria (What criteria will consider this ticket closeable?)\r\nAn endpoint exists that will delete a view:\r\n```\r\ncurl -X DELETE localhost:10101/index/i/frame/f/view/standard_20170601\r\n```\r\nAll directories and files associated to the view are removed.\r\nI don't think it makes sense to delete anything other than time-based views at this point, so we could be very strict and return an error if the view is not time-based."},"comment":{"url":"https://api.github.com/repos/pilosa/pilosa/issues/comments/323431742","html_url":"https://github.com/pilosa/pilosa/issues/613#issuecomment-323431742","issue_url":"https://api.github.com/repos/pilosa/pilosa/issues/613","id":323431742,"user":{"login":"raskle","id":585044,"avatar_url":"https://avatars1.githubusercontent.com/u/585044?v=4","gravatar_id":"","url":"https://api.github.com/users/raskle","html_url":"https://github.com/raskle","followers_url":"https://api.github.com/users/raskle/followers","following_url":"https://api.github.com/users/raskle/following{/other_user}","gists_url":"https://api.github.com/users/raskle/gists{/gist_id}","starred_url":"https://api.github.com/users/raskle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raskle/subscriptions","organizations_url":"https://api.github.com/users/raskle/orgs","repos_url":"https://api.github.com/users/raskle/repos","events_url":"https://api.github.com/users/raskle/events{/privacy}","received_events_url":"https://api.github.com/users/raskle/received_events","type":"User","site_admin":false},"created_at":"2017-08-18T18:44:48Z","updated_at":"2017-08-18T18:44:48Z","body":"@travisturner in the case where we have inverse views setup should the Delete View API explicitly name the standard or inverse view to delete them?  Or should Pilosa automatically delete the inverse view?"}}
{"actor":{"display_login":"raskle"}}