{"action":"created","issue":{"url":"https://api.github.com/repos/CodeScience/BOSS/issues/6","labels_url":"https://api.github.com/repos/CodeScience/BOSS/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/CodeScience/BOSS/issues/6/comments","events_url":"https://api.github.com/repos/CodeScience/BOSS/issues/6/events","html_url":"https://github.com/CodeScience/BOSS/issues/6","id":113937317,"number":6,"title":"As an LMA Admin I want to enforce that no License nor the associated Lead may be deleted so that we don't ever lose those critical records","user":{"login":"jengler74","id":7884339,"avatar_url":"https://avatars.githubusercontent.com/u/7884339?v=3","gravatar_id":"","url":"https://api.github.com/users/jengler74","html_url":"https://github.com/jengler74","followers_url":"https://api.github.com/users/jengler74/followers","following_url":"https://api.github.com/users/jengler74/following{/other_user}","gists_url":"https://api.github.com/users/jengler74/gists{/gist_id}","starred_url":"https://api.github.com/users/jengler74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jengler74/subscriptions","organizations_url":"https://api.github.com/users/jengler74/orgs","repos_url":"https://api.github.com/users/jengler74/repos","events_url":"https://api.github.com/users/jengler74/events{/privacy}","received_events_url":"https://api.github.com/users/jengler74/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ronkiker","id":11616194,"avatar_url":"https://avatars.githubusercontent.com/u/11616194?v=3","gravatar_id":"","url":"https://api.github.com/users/ronkiker","html_url":"https://github.com/ronkiker","followers_url":"https://api.github.com/users/ronkiker/followers","following_url":"https://api.github.com/users/ronkiker/following{/other_user}","gists_url":"https://api.github.com/users/ronkiker/gists{/gist_id}","starred_url":"https://api.github.com/users/ronkiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronkiker/subscriptions","organizations_url":"https://api.github.com/users/ronkiker/orgs","repos_url":"https://api.github.com/users/ronkiker/repos","events_url":"https://api.github.com/users/ronkiker/events{/privacy}","received_events_url":"https://api.github.com/users/ronkiker/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/CodeScience/BOSS/milestones/1","html_url":"https://github.com/CodeScience/BOSS/milestones/Sprint%200","labels_url":"https://api.github.com/repos/CodeScience/BOSS/milestones/1/labels","id":1414323,"number":1,"title":"Sprint 0","description":"","creator":{"login":"jengler74","id":7884339,"avatar_url":"https://avatars.githubusercontent.com/u/7884339?v=3","gravatar_id":"","url":"https://api.github.com/users/jengler74","html_url":"https://github.com/jengler74","followers_url":"https://api.github.com/users/jengler74/followers","following_url":"https://api.github.com/users/jengler74/following{/other_user}","gists_url":"https://api.github.com/users/jengler74/gists{/gist_id}","starred_url":"https://api.github.com/users/jengler74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jengler74/subscriptions","organizations_url":"https://api.github.com/users/jengler74/orgs","repos_url":"https://api.github.com/users/jengler74/repos","events_url":"https://api.github.com/users/jengler74/events{/privacy}","received_events_url":"https://api.github.com/users/jengler74/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":0,"state":"open","created_at":"2015-11-16T18:26:04Z","updated_at":"2015-11-17T17:55:57Z","due_on":"2015-11-25T08:00:00Z","closed_at":null},"comments":2,"created_at":"2015-10-28T22:14:52Z","updated_at":"2015-11-17T21:18:10Z","closed_at":null,"body":"Trigger(?) on **Lead** prevents the record from being deleted when a License looks up to it or when Lead.License is not null.\r\n\r\nTrigger(?) on **License** prevents the record from being deleted, \"License records may not be deleted per your  System Administrator.\"\r\n\r\nAC:\r\n- [ ] If a User chooses to delete a Lead record where either\r\n   - Lead.License != NULL OR\r\n   - Lead.ID = any License.Lead\r\n - Then the record is not deleted\r\n - Informational-level warning displays \"To prevent errors, Leads may not be deleted when associated to a License.\"\r\n\r\n- [ ] If a User chooses to delete a License record\r\n  - Record is not deleted\r\n  - Informational-level warning displays \"To prevent errors, License records may not be deleted under any conditions.\""},"comment":{"url":"https://api.github.com/repos/CodeScience/BOSS/issues/comments/157510016","html_url":"https://github.com/CodeScience/BOSS/issues/6#issuecomment-157510016","issue_url":"https://api.github.com/repos/CodeScience/BOSS/issues/6","id":157510016,"user":{"login":"ronkiker","id":11616194,"avatar_url":"https://avatars.githubusercontent.com/u/11616194?v=3","gravatar_id":"","url":"https://api.github.com/users/ronkiker","html_url":"https://github.com/ronkiker","followers_url":"https://api.github.com/users/ronkiker/followers","following_url":"https://api.github.com/users/ronkiker/following{/other_user}","gists_url":"https://api.github.com/users/ronkiker/gists{/gist_id}","starred_url":"https://api.github.com/users/ronkiker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronkiker/subscriptions","organizations_url":"https://api.github.com/users/ronkiker/orgs","repos_url":"https://api.github.com/users/ronkiker/repos","events_url":"https://api.github.com/users/ronkiker/events{/privacy}","received_events_url":"https://api.github.com/users/ronkiker/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T21:18:10Z","updated_at":"2015-11-17T21:18:10Z","body":"@jengler74 - Here's a screenshot of what it the standard addError method produces in a Trigger when attempting to delete a Lead where the License__c != NULL. \r\n\r\n\r\n![screen shot 2015-11-17 at 1 16 30 pm](https://cloud.githubusercontent.com/assets/11616194/11225164/8d401f3a-8d2d-11e5-966c-970daa07481f.png)\r\n\r\n"}}