{"action":"opened","number":6,"pull_request":{"url":"https://api.github.com/repos/radiocosmology/alpenhorn/pulls/6","id":114287518,"html_url":"https://github.com/radiocosmology/alpenhorn/pull/6","diff_url":"https://github.com/radiocosmology/alpenhorn/pull/6.diff","patch_url":"https://github.com/radiocosmology/alpenhorn/pull/6.patch","issue_url":"https://api.github.com/repos/radiocosmology/alpenhorn/issues/6","number":6,"state":"open","locked":false,"title":"Allow nested acquisition directory and file structure (fixes #4)","user":{"login":"cubranic","id":600891,"avatar_url":"https://avatars0.githubusercontent.com/u/600891?v=3","gravatar_id":"","url":"https://api.github.com/users/cubranic","html_url":"https://github.com/cubranic","followers_url":"https://api.github.com/users/cubranic/followers","following_url":"https://api.github.com/users/cubranic/following{/other_user}","gists_url":"https://api.github.com/users/cubranic/gists{/gist_id}","starred_url":"https://api.github.com/users/cubranic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cubranic/subscriptions","organizations_url":"https://api.github.com/users/cubranic/orgs","repos_url":"https://api.github.com/users/cubranic/repos","events_url":"https://api.github.com/users/cubranic/events{/privacy}","received_events_url":"https://api.github.com/users/cubranic/received_events","type":"User","site_admin":false},"body":"* Importing a file asks each of the registered acquisition types if the dirname belongs to it. If none can handle it, the rightmost segment of the directory is removed and the process started again.\r\n* First match wins, and the rest of the path to the file becomes the file name.\r\n* The file name is tried on each of the acquisition's file types, and in case of no matches the file is skipped -- we don't try to repeat the loop on the subset of the file name's path segments as we do with acquisitions.\r\n* The `auto_import.import_file` now has one fewer argument, since has to decide where the file's path gets broken into the acquisition vs the file name.\r\n\r\n**Please note:** a number of TODOs are my questions over some implementation details. Let me know what you think.","created_at":"2017-04-05T03:14:06Z","updated_at":"2017-04-05T03:14:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/radiocosmology/alpenhorn/pulls/6/commits","review_comments_url":"https://api.github.com/repos/radiocosmology/alpenhorn/pulls/6/comments","review_comment_url":"https://api.github.com/repos/radiocosmology/alpenhorn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/radiocosmology/alpenhorn/issues/6/comments","statuses_url":"https://api.github.com/repos/radiocosmology/alpenhorn/statuses/6905513affc2952276c4e0b3cf081212969e92f1","head":{"label":"radiocosmology:nested-structure","ref":"nested-structure","sha":"6905513affc2952276c4e0b3cf081212969e92f1","user":{"login":"radiocosmology","id":6320724,"avatar_url":"https://avatars3.githubusercontent.com/u/6320724?v=3","gravatar_id":"","url":"https://api.github.com/users/radiocosmology","html_url":"https://github.com/radiocosmology","followers_url":"https://api.github.com/users/radiocosmology/followers","following_url":"https://api.github.com/users/radiocosmology/following{/other_user}","gists_url":"https://api.github.com/users/radiocosmology/gists{/gist_id}","starred_url":"https://api.github.com/users/radiocosmology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radiocosmology/subscriptions","organizations_url":"https://api.github.com/users/radiocosmology/orgs","repos_url":"https://api.github.com/users/radiocosmology/repos","events_url":"https://api.github.com/users/radiocosmology/events{/privacy}","received_events_url":"https://api.github.com/users/radiocosmology/received_events","type":"Organization","site_admin":false},"repo":{"id":84382689,"name":"alpenhorn","full_name":"radiocosmology/alpenhorn","owner":{"login":"radiocosmology","id":6320724,"avatar_url":"https://avatars3.githubusercontent.com/u/6320724?v=3","gravatar_id":"","url":"https://api.github.com/users/radiocosmology","html_url":"https://github.com/radiocosmology","followers_url":"https://api.github.com/users/radiocosmology/followers","following_url":"https://api.github.com/users/radiocosmology/following{/other_user}","gists_url":"https://api.github.com/users/radiocosmology/gists{/gist_id}","starred_url":"https://api.github.com/users/radiocosmology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radiocosmology/subscriptions","organizations_url":"https://api.github.com/users/radiocosmology/orgs","repos_url":"https://api.github.com/users/radiocosmology/repos","events_url":"https://api.github.com/users/radiocosmology/events{/privacy}","received_events_url":"https://api.github.com/users/radiocosmology/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/radiocosmology/alpenhorn","description":"Alpenhorn is a service for managing an archive of scientific data.","fork":false,"url":"https://api.github.com/repos/radiocosmology/alpenhorn","forks_url":"https://api.github.com/repos/radiocosmology/alpenhorn/forks","keys_url":"https://api.github.com/repos/radiocosmology/alpenhorn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/radiocosmology/alpenhorn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/radiocosmology/alpenhorn/teams","hooks_url":"https://api.github.com/repos/radiocosmology/alpenhorn/hooks","issue_events_url":"https://api.github.com/repos/radiocosmology/alpenhorn/issues/events{/number}","events_url":"https://api.github.com/repos/radiocosmology/alpenhorn/events","assignees_url":"https://api.github.com/repos/radiocosmology/alpenhorn/assignees{/user}","branches_url":"https://api.github.com/repos/radiocosmology/alpenhorn/branches{/branch}","tags_url":"https://api.github.com/repos/radiocosmology/alpenhorn/tags","blobs_url":"https://api.github.com/repos/radiocosmology/alpenhorn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/radiocosmology/alpenhorn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/radiocosmology/alpenhorn/git/refs{/sha}","trees_url":"https://api.github.com/repos/radiocosmology/alpenhorn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/radiocosmology/alpenhorn/statuses/{sha}","languages_url":"https://api.github.com/repos/radiocosmology/alpenhorn/languages","stargazers_url":"https://api.github.com/repos/radiocosmology/alpenhorn/stargazers","contributors_url":"https://api.github.com/repos/radiocosmology/alpenhorn/contributors","subscribers_url":"https://api.github.com/repos/radiocosmology/alpenhorn/subscribers","subscription_url":"https://api.github.com/repos/radiocosmology/alpenhorn/subscription","commits_url":"https://api.github.com/repos/radiocosmology/alpenhorn/commits{/sha}","git_commits_url":"https://api.github.com/repos/radiocosmology/alpenhorn/git/commits{/sha}","comments_url":"https://api.github.com/repos/radiocosmology/alpenhorn/comments{/number}","issue_comment_url":"https://api.github.com/repos/radiocosmology/alpenhorn/issues/comments{/number}","contents_url":"https://api.github.com/repos/radiocosmology/alpenhorn/contents/{+path}","compare_url":"https://api.github.com/repos/radiocosmology/alpenhorn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/radiocosmology/alpenhorn/merges","archive_url":"https://api.github.com/repos/radiocosmology/alpenhorn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/radiocosmology/alpenhorn/downloads","issues_url":"https://api.github.com/repos/radiocosmology/alpenhorn/issues{/number}","pulls_url":"https://api.github.com/repos/radiocosmology/alpenhorn/pulls{/number}","milestones_url":"https://api.github.com/repos/radiocosmology/alpenhorn/milestones{/number}","notifications_url":"https://api.github.com/repos/radiocosmology/alpenhorn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/radiocosmology/alpenhorn/labels{/name}","releases_url":"https://api.github.com/repos/radiocosmology/alpenhorn/releases{/id}","deployments_url":"https://api.github.com/repos/radiocosmology/alpenhorn/deployments","created_at":"2017-03-09T01:16:07Z","updated_at":"2017-03-10T00:51:02Z","pushed_at":"2017-04-05T03:06:52Z","git_url":"git://github.com/radiocosmology/alpenhorn.git","ssh_url":"git@github.com:radiocosmology/alpenhorn.git","clone_url":"https://github.com/radiocosmology/alpenhorn.git","svn_url":"https://github.com/radiocosmology/alpenhorn","homepage":null,"size":215,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"radiocosmology:master","ref":"master","sha":"b1fce41f28e7086a4deca3488423d3384a5e144a","user":{"login":"radiocosmology","id":6320724,"avatar_url":"https://avatars3.githubusercontent.com/u/6320724?v=3","gravatar_id":"","url":"https://api.github.com/users/radiocosmology","html_url":"https://github.com/radiocosmology","followers_url":"https://api.github.com/users/radiocosmology/followers","following_url":"https://api.github.com/users/radiocosmology/following{/other_user}","gists_url":"https://api.github.com/users/radiocosmology/gists{/gist_id}","starred_url":"https://api.github.com/users/radiocosmology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radiocosmology/subscriptions","organizations_url":"https://api.github.com/users/radiocosmology/orgs","repos_url":"https://api.github.com/users/radiocosmology/repos","events_url":"https://api.github.com/users/radiocosmology/events{/privacy}","received_events_url":"https://api.github.com/users/radiocosmology/received_events","type":"Organization","site_admin":false},"repo":{"id":84382689,"name":"alpenhorn","full_name":"radiocosmology/alpenhorn","owner":{"login":"radiocosmology","id":6320724,"avatar_url":"https://avatars3.githubusercontent.com/u/6320724?v=3","gravatar_id":"","url":"https://api.github.com/users/radiocosmology","html_url":"https://github.com/radiocosmology","followers_url":"https://api.github.com/users/radiocosmology/followers","following_url":"https://api.github.com/users/radiocosmology/following{/other_user}","gists_url":"https://api.github.com/users/radiocosmology/gists{/gist_id}","starred_url":"https://api.github.com/users/radiocosmology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radiocosmology/subscriptions","organizations_url":"https://api.github.com/users/radiocosmology/orgs","repos_url":"https://api.github.com/users/radiocosmology/repos","events_url":"https://api.github.com/users/radiocosmology/events{/privacy}","received_events_url":"https://api.github.com/users/radiocosmology/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/radiocosmology/alpenhorn","description":"Alpenhorn is a service for managing an archive of scientific data.","fork":false,"url":"https://api.github.com/repos/radiocosmology/alpenhorn","forks_url":"https://api.github.com/repos/radiocosmology/alpenhorn/forks","keys_url":"https://api.github.com/repos/radiocosmology/alpenhorn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/radiocosmology/alpenhorn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/radiocosmology/alpenhorn/teams","hooks_url":"https://api.github.com/repos/radiocosmology/alpenhorn/hooks","issue_events_url":"https://api.github.com/repos/radiocosmology/alpenhorn/issues/events{/number}","events_url":"https://api.github.com/repos/radiocosmology/alpenhorn/events","assignees_url":"https://api.github.com/repos/radiocosmology/alpenhorn/assignees{/user}","branches_url":"https://api.github.com/repos/radiocosmology/alpenhorn/branches{/branch}","tags_url":"https://api.github.com/repos/radiocosmology/alpenhorn/tags","blobs_url":"https://api.github.com/repos/radiocosmology/alpenhorn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/radiocosmology/alpenhorn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/radiocosmology/alpenhorn/git/refs{/sha}","trees_url":"https://api.github.com/repos/radiocosmology/alpenhorn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/radiocosmology/alpenhorn/statuses/{sha}","languages_url":"https://api.github.com/repos/radiocosmology/alpenhorn/languages","stargazers_url":"https://api.github.com/repos/radiocosmology/alpenhorn/stargazers","contributors_url":"https://api.github.com/repos/radiocosmology/alpenhorn/contributors","subscribers_url":"https://api.github.com/repos/radiocosmology/alpenhorn/subscribers","subscription_url":"https://api.github.com/repos/radiocosmology/alpenhorn/subscription","commits_url":"https://api.github.com/repos/radiocosmology/alpenhorn/commits{/sha}","git_commits_url":"https://api.github.com/repos/radiocosmology/alpenhorn/git/commits{/sha}","comments_url":"https://api.github.com/repos/radiocosmology/alpenhorn/comments{/number}","issue_comment_url":"https://api.github.com/repos/radiocosmology/alpenhorn/issues/comments{/number}","contents_url":"https://api.github.com/repos/radiocosmology/alpenhorn/contents/{+path}","compare_url":"https://api.github.com/repos/radiocosmology/alpenhorn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/radiocosmology/alpenhorn/merges","archive_url":"https://api.github.com/repos/radiocosmology/alpenhorn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/radiocosmology/alpenhorn/downloads","issues_url":"https://api.github.com/repos/radiocosmology/alpenhorn/issues{/number}","pulls_url":"https://api.github.com/repos/radiocosmology/alpenhorn/pulls{/number}","milestones_url":"https://api.github.com/repos/radiocosmology/alpenhorn/milestones{/number}","notifications_url":"https://api.github.com/repos/radiocosmology/alpenhorn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/radiocosmology/alpenhorn/labels{/name}","releases_url":"https://api.github.com/repos/radiocosmology/alpenhorn/releases{/id}","deployments_url":"https://api.github.com/repos/radiocosmology/alpenhorn/deployments","created_at":"2017-03-09T01:16:07Z","updated_at":"2017-03-10T00:51:02Z","pushed_at":"2017-04-05T03:06:52Z","git_url":"git://github.com/radiocosmology/alpenhorn.git","ssh_url":"git@github.com:radiocosmology/alpenhorn.git","clone_url":"https://github.com/radiocosmology/alpenhorn.git","svn_url":"https://github.com/radiocosmology/alpenhorn","homepage":null,"size":215,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/radiocosmology/alpenhorn/pulls/6"},"html":{"href":"https://github.com/radiocosmology/alpenhorn/pull/6"},"issue":{"href":"https://api.github.com/repos/radiocosmology/alpenhorn/issues/6"},"comments":{"href":"https://api.github.com/repos/radiocosmology/alpenhorn/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/radiocosmology/alpenhorn/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/radiocosmology/alpenhorn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/radiocosmology/alpenhorn/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/radiocosmology/alpenhorn/statuses/6905513affc2952276c4e0b3cf081212969e92f1"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":137,"deletions":39,"changed_files":4}}
{"actor":{"display_login":"cubranic"}}