{"action":"created","issue":{"url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/issues/54","labels_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/issues/54/comments","events_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/issues/54/events","html_url":"https://github.com/projecthydra-labs/curation_concerns/issues/54","id":93863134,"number":54,"title":"Adding a file creates an embargo and lease that are not requested","user":{"login":"escowles","id":856924,"avatar_url":"https://avatars.githubusercontent.com/u/856924?v=3","gravatar_id":"","url":"https://api.github.com/users/escowles","html_url":"https://github.com/escowles","followers_url":"https://api.github.com/users/escowles/followers","following_url":"https://api.github.com/users/escowles/following{/other_user}","gists_url":"https://api.github.com/users/escowles/gists{/gist_id}","starred_url":"https://api.github.com/users/escowles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/escowles/subscriptions","organizations_url":"https://api.github.com/users/escowles/orgs","repos_url":"https://api.github.com/users/escowles/repos","events_url":"https://api.github.com/users/escowles/events{/privacy}","received_events_url":"https://api.github.com/users/escowles/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-08T18:52:55Z","updated_at":"2015-07-09T16:25:24Z","closed_at":null,"body":"When I run the [add_file feature test](https://github.com/projecthydra-labs/curation_concerns/blob/master/spec/features/add_file_spec.rb), it creates a Work and GenericFile as expected.  But it also creates a lease and an embargo for both of them.  The Work lease/embargo are blank, but the GenericFile lease/embargo are populated."},"comment":{"url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/issues/comments/120057973","html_url":"https://github.com/projecthydra-labs/curation_concerns/issues/54#issuecomment-120057973","issue_url":"https://api.github.com/repos/projecthydra-labs/curation_concerns/issues/54","id":120057973,"user":{"login":"escowles","id":856924,"avatar_url":"https://avatars.githubusercontent.com/u/856924?v=3","gravatar_id":"","url":"https://api.github.com/users/escowles","html_url":"https://github.com/escowles","followers_url":"https://api.github.com/users/escowles/followers","following_url":"https://api.github.com/users/escowles/following{/other_user}","gists_url":"https://api.github.com/users/escowles/gists{/gist_id}","starred_url":"https://api.github.com/users/escowles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/escowles/subscriptions","organizations_url":"https://api.github.com/users/escowles/orgs","repos_url":"https://api.github.com/users/escowles/repos","events_url":"https://api.github.com/users/escowles/events{/privacy}","received_events_url":"https://api.github.com/users/escowles/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T16:25:24Z","updated_at":"2015-07-09T16:25:24Z","body":"In my tests, about 37% of a ~20 sec test was interacting with the Embargo objects.  So if this is happening everywhere, it could be a huge performance impact."}}