{"action":"created","issue":{"url":"https://api.github.com/repos/uavaustin/orchestra/issues/15","repository_url":"https://api.github.com/repos/uavaustin/orchestra","labels_url":"https://api.github.com/repos/uavaustin/orchestra/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/uavaustin/orchestra/issues/15/comments","events_url":"https://api.github.com/repos/uavaustin/orchestra/issues/15/events","html_url":"https://github.com/uavaustin/orchestra/issues/15","id":306212112,"number":15,"title":"Wait until file is no longer being written to in imagery service file backend","user":{"login":"bloof-bb","id":5787517,"avatar_url":"https://avatars3.githubusercontent.com/u/5787517?v=4","gravatar_id":"","url":"https://api.github.com/users/bloof-bb","html_url":"https://github.com/bloof-bb","followers_url":"https://api.github.com/users/bloof-bb/followers","following_url":"https://api.github.com/users/bloof-bb/following{/other_user}","gists_url":"https://api.github.com/users/bloof-bb/gists{/gist_id}","starred_url":"https://api.github.com/users/bloof-bb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bloof-bb/subscriptions","organizations_url":"https://api.github.com/users/bloof-bb/orgs","repos_url":"https://api.github.com/users/bloof-bb/repos","events_url":"https://api.github.com/users/bloof-bb/events{/privacy}","received_events_url":"https://api.github.com/users/bloof-bb/received_events","type":"User","site_admin":false},"labels":[{"id":736891626,"url":"https://api.github.com/repos/uavaustin/orchestra/labels/bug","name":"bug","color":"ee0701","default":true},{"id":870852353,"url":"https://api.github.com/repos/uavaustin/orchestra/labels/service/imagery","name":"service/imagery","color":"1d5591","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/uavaustin/orchestra/milestones/1","html_url":"https://github.com/uavaustin/orchestra/milestone/1","labels_url":"https://api.github.com/repos/uavaustin/orchestra/milestones/1/labels","id":3157980,"number":1,"title":"Competition Ready","description":"Basic requirements so we can fly. Nice-to-have things aren't included here.","creator":{"login":"bloof-bb","id":5787517,"avatar_url":"https://avatars3.githubusercontent.com/u/5787517?v=4","gravatar_id":"","url":"https://api.github.com/users/bloof-bb","html_url":"https://github.com/bloof-bb","followers_url":"https://api.github.com/users/bloof-bb/followers","following_url":"https://api.github.com/users/bloof-bb/following{/other_user}","gists_url":"https://api.github.com/users/bloof-bb/gists{/gist_id}","starred_url":"https://api.github.com/users/bloof-bb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bloof-bb/subscriptions","organizations_url":"https://api.github.com/users/bloof-bb/orgs","repos_url":"https://api.github.com/users/bloof-bb/repos","events_url":"https://api.github.com/users/bloof-bb/events{/privacy}","received_events_url":"https://api.github.com/users/bloof-bb/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":3,"state":"open","created_at":"2018-03-03T04:49:05Z","updated_at":"2018-03-18T04:20:19Z","due_on":"2018-06-13T07:00:00Z","closed_at":null},"comments":1,"created_at":"2018-03-18T04:20:19Z","updated_at":"2018-03-18T21:26:24Z","closed_at":null,"author_association":"OWNER","body":"If a particularly large image is being copied over, there's a good chance that the the file will be read in before another process is done copying the file into that directory. I'm pretty sure this is the problem since dropping an image in that folder is giving me either the full size image, or smaller images of varying sizes which are chopped off a bit and aren't rendering well.\r\n\r\nJust before running [this step](https://github.com/uavaustin/orchestra/blob/41bf0c81e0d4872259bad8d27cd8b50db756533c/services/imagery/src/backends/file-backend.js#L38) is where we'll need to make sure the file isn't being written to before preceding. "},"comment":{"url":"https://api.github.com/repos/uavaustin/orchestra/issues/comments/374049443","html_url":"https://github.com/uavaustin/orchestra/issues/15#issuecomment-374049443","issue_url":"https://api.github.com/repos/uavaustin/orchestra/issues/15","id":374049443,"user":{"login":"bloof-bb","id":5787517,"avatar_url":"https://avatars3.githubusercontent.com/u/5787517?v=4","gravatar_id":"","url":"https://api.github.com/users/bloof-bb","html_url":"https://github.com/bloof-bb","followers_url":"https://api.github.com/users/bloof-bb/followers","following_url":"https://api.github.com/users/bloof-bb/following{/other_user}","gists_url":"https://api.github.com/users/bloof-bb/gists{/gist_id}","starred_url":"https://api.github.com/users/bloof-bb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bloof-bb/subscriptions","organizations_url":"https://api.github.com/users/bloof-bb/orgs","repos_url":"https://api.github.com/users/bloof-bb/repos","events_url":"https://api.github.com/users/bloof-bb/events{/privacy}","received_events_url":"https://api.github.com/users/bloof-bb/received_events","type":"User","site_admin":false},"created_at":"2018-03-18T21:26:24Z","updated_at":"2018-03-18T21:26:24Z","author_association":"OWNER","body":"Yeah I'm having a problem finding a graceful way to solve this one, what some people recommend (though it's kinda hacky in a way) is just to wait a little bit and see if the file got larger, if it didn't, then you're good to go."}}
{"actor":{"display_login":"bloof-bb"}}