{"action":"created","issue":{"url":"https://api.github.com/repos/isenseDev/rSENSE/issues/1912","labels_url":"https://api.github.com/repos/isenseDev/rSENSE/issues/1912/labels{/name}","comments_url":"https://api.github.com/repos/isenseDev/rSENSE/issues/1912/comments","events_url":"https://api.github.com/repos/isenseDev/rSENSE/issues/1912/events","html_url":"https://github.com/isenseDev/rSENSE/issues/1912","id":54055699,"number":1912,"title":"Admin can press a \"Delete\" button on a project with data sets with no feedback as to why it failed","user":{"login":"stowellm","id":1039162,"avatar_url":"https://avatars.githubusercontent.com/u/1039162?v=3","gravatar_id":"","url":"https://api.github.com/users/stowellm","html_url":"https://github.com/stowellm","followers_url":"https://api.github.com/users/stowellm/followers","following_url":"https://api.github.com/users/stowellm/following{/other_user}","gists_url":"https://api.github.com/users/stowellm/gists{/gist_id}","starred_url":"https://api.github.com/users/stowellm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stowellm/subscriptions","organizations_url":"https://api.github.com/users/stowellm/orgs","repos_url":"https://api.github.com/users/stowellm/repos","events_url":"https://api.github.com/users/stowellm/events{/privacy}","received_events_url":"https://api.github.com/users/stowellm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/isenseDev/rSENSE/labels/Bug","name":"Bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"jaypoulz","id":1039164,"avatar_url":"https://avatars.githubusercontent.com/u/1039164?v=3","gravatar_id":"","url":"https://api.github.com/users/jaypoulz","html_url":"https://github.com/jaypoulz","followers_url":"https://api.github.com/users/jaypoulz/followers","following_url":"https://api.github.com/users/jaypoulz/following{/other_user}","gists_url":"https://api.github.com/users/jaypoulz/gists{/gist_id}","starred_url":"https://api.github.com/users/jaypoulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaypoulz/subscriptions","organizations_url":"https://api.github.com/users/jaypoulz/orgs","repos_url":"https://api.github.com/users/jaypoulz/repos","events_url":"https://api.github.com/users/jaypoulz/events{/privacy}","received_events_url":"https://api.github.com/users/jaypoulz/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2015-01-12T13:54:40Z","updated_at":"2015-01-30T14:36:13Z","closed_at":null,"body":"**General description:** An admin that owns a project with data sets can either navigate to the project's edit page or the admin's projects on the profile page and have the Delete button show up.  However, in both cases, the delete fails since the project contains data sets.  There is no feedback as to why clicking delete does nothing.\r\n\r\n**live/dev/localhost:** dev\r\n**iSENSE Version:** v5.8-238-g084b967\r\n**Logged in (Y or N):** Y\r\n**Admin (Y or N):** Y\r\n\r\n**OS:** Ubuntu 14.04 LTS\r\n**Browser/Version:** Chrome 39.0.2171.95\r\n\r\n**Steps to Reproduce:**\r\n1. Log in as admin\r\n2. Create a project\r\n3. Add a number field to the project and save\r\n4. Add a data set (one row suffices) and save\r\n\r\nPath A:\r\n5. Navigate back to this project's page\r\n6. Click edit\r\n7. Click delete.  Note it did not delete and there is no error pop-up\r\n\r\nPath B:\r\n5. Navigate to the admin's profile\r\n6. Click the \"My Projects\" tab\r\n7. Click delete on the project you just created.  Note it did not delete and there is no error pop-up\r\n\r\n**Associated Image(s):**"},"comment":{"url":"https://api.github.com/repos/isenseDev/rSENSE/issues/comments/72209937","html_url":"https://github.com/isenseDev/rSENSE/issues/1912#issuecomment-72209937","issue_url":"https://api.github.com/repos/isenseDev/rSENSE/issues/1912","id":72209937,"user":{"login":"stowellm","id":1039162,"avatar_url":"https://avatars.githubusercontent.com/u/1039162?v=3","gravatar_id":"","url":"https://api.github.com/users/stowellm","html_url":"https://github.com/stowellm","followers_url":"https://api.github.com/users/stowellm/followers","following_url":"https://api.github.com/users/stowellm/following{/other_user}","gists_url":"https://api.github.com/users/stowellm/gists{/gist_id}","starred_url":"https://api.github.com/users/stowellm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stowellm/subscriptions","organizations_url":"https://api.github.com/users/stowellm/orgs","repos_url":"https://api.github.com/users/stowellm/repos","events_url":"https://api.github.com/users/stowellm/events{/privacy}","received_events_url":"https://api.github.com/users/stowellm/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T14:36:13Z","updated_at":"2015-01-30T14:36:13Z","body":"@jaypoulz - I've patched it and will submit a PR shortly.  Btw, needed to change the line:\r\n`<% cls = 'btn btn-danger'; if can_delete? @project then cls += ' disabled' end %>`\r\nto:\r\n`<% cls = 'btn btn-danger'; if !can_delete? @project then cls += ' disabled' end %>`\r\n:camel: "}}