{"action":"opened","number":2121,"pull_request":{"url":"https://api.github.com/repos/datalad/datalad/pulls/2121","id":167714732,"html_url":"https://github.com/datalad/datalad/pull/2121","diff_url":"https://github.com/datalad/datalad/pull/2121.diff","patch_url":"https://github.com/datalad/datalad/pull/2121.patch","issue_url":"https://api.github.com/repos/datalad/datalad/issues/2121","number":2121,"state":"open","locked":false,"title":"[WIP] ENH: Add initial implementation of addurls plugin","user":{"login":"kyleam","id":1297788,"avatar_url":"https://avatars2.githubusercontent.com/u/1297788?v=4","gravatar_id":"","url":"https://api.github.com/users/kyleam","html_url":"https://github.com/kyleam","followers_url":"https://api.github.com/users/kyleam/followers","following_url":"https://api.github.com/users/kyleam/following{/other_user}","gists_url":"https://api.github.com/users/kyleam/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleam/subscriptions","organizations_url":"https://api.github.com/users/kyleam/orgs","repos_url":"https://api.github.com/users/kyleam/repos","events_url":"https://api.github.com/users/kyleam/events{/privacy}","received_events_url":"https://api.github.com/users/kyleam/received_events","type":"User","site_admin":false},"body":"This covers some basic features mentioned at gh-1665.\r\n\r\nThe few things it can do:\r\n\r\n  * Data from a CSV or JSON file can be used to construct URLs and\r\n    file names to be passed to 'git annex addurl'.\r\n\r\n    The field names from the data file (header names for CSV or\r\n    properties for JSON) can be used as placeholders like\r\n    \"{participant_id}.mgz\".  However, names with \"!\" or \":\" aren't\r\n    currently supported because these are interpreted as formatting\r\n    flags.\r\n\r\n  * Subdatasets can be created by using \"//\" in the filename format\r\n    string.\r\n\r\n  * fast=True will pass --fast to 'git annex addurl'.\r\n\r\nSome of what it can't do:\r\n\r\n  * It doesn't yet have an option for specifying which columns should\r\n    be used as metadata.\r\n\r\n  * There's no support for the Content-Disposition filename.\r\n\r\n  * There isn't a jobs flag that's passed --jobs=N to 'git annex\r\n    addurl'.\r\n\r\n  * There aren't any reserved formatting keys like \"url_filename\" or\r\n    \"disposition_filename\".\r\n\r\n  * There isn't a non-'git annex addurl' download option (e.g.,\r\n    providers.download).\r\n\r\n    And if we want to provide a non-addurl option, perhaps my choice\r\n    to call this plugin `addurls` wasn't a good one.\r\n\r\n\r\nAnd it of course needs tests.\r\n\r\n### Changes\r\n\r\n- [X] This is in progress\r\n\r\nPlease have a look @datalad/developers\r\n","created_at":"2018-02-07T14:55:26Z","updated_at":"2018-02-07T14:55:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/datalad/datalad/pulls/2121/commits","review_comments_url":"https://api.github.com/repos/datalad/datalad/pulls/2121/comments","review_comment_url":"https://api.github.com/repos/datalad/datalad/pulls/comments{/number}","comments_url":"https://api.github.com/repos/datalad/datalad/issues/2121/comments","statuses_url":"https://api.github.com/repos/datalad/datalad/statuses/96ea3f60ee8818e57cb557a2bf7ba04f2d6cc5a5","head":{"label":"kyleam:enh-import-urls","ref":"enh-import-urls","sha":"96ea3f60ee8818e57cb557a2bf7ba04f2d6cc5a5","user":{"login":"kyleam","id":1297788,"avatar_url":"https://avatars2.githubusercontent.com/u/1297788?v=4","gravatar_id":"","url":"https://api.github.com/users/kyleam","html_url":"https://github.com/kyleam","followers_url":"https://api.github.com/users/kyleam/followers","following_url":"https://api.github.com/users/kyleam/following{/other_user}","gists_url":"https://api.github.com/users/kyleam/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleam/subscriptions","organizations_url":"https://api.github.com/users/kyleam/orgs","repos_url":"https://api.github.com/users/kyleam/repos","events_url":"https://api.github.com/users/kyleam/events{/privacy}","received_events_url":"https://api.github.com/users/kyleam/received_events","type":"User","site_admin":false},"repo":{"id":113788453,"name":"datalad","full_name":"kyleam/datalad","owner":{"login":"kyleam","id":1297788,"avatar_url":"https://avatars2.githubusercontent.com/u/1297788?v=4","gravatar_id":"","url":"https://api.github.com/users/kyleam","html_url":"https://github.com/kyleam","followers_url":"https://api.github.com/users/kyleam/followers","following_url":"https://api.github.com/users/kyleam/following{/other_user}","gists_url":"https://api.github.com/users/kyleam/gists{/gist_id}","starred_url":"https://api.github.com/users/kyleam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyleam/subscriptions","organizations_url":"https://api.github.com/users/kyleam/orgs","repos_url":"https://api.github.com/users/kyleam/repos","events_url":"https://api.github.com/users/kyleam/events{/privacy}","received_events_url":"https://api.github.com/users/kyleam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kyleam/datalad","description":"Keep scientific data under control with git  and git-annex","fork":true,"url":"https://api.github.com/repos/kyleam/datalad","forks_url":"https://api.github.com/repos/kyleam/datalad/forks","keys_url":"https://api.github.com/repos/kyleam/datalad/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kyleam/datalad/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kyleam/datalad/teams","hooks_url":"https://api.github.com/repos/kyleam/datalad/hooks","issue_events_url":"https://api.github.com/repos/kyleam/datalad/issues/events{/number}","events_url":"https://api.github.com/repos/kyleam/datalad/events","assignees_url":"https://api.github.com/repos/kyleam/datalad/assignees{/user}","branches_url":"https://api.github.com/repos/kyleam/datalad/branches{/branch}","tags_url":"https://api.github.com/repos/kyleam/datalad/tags","blobs_url":"https://api.github.com/repos/kyleam/datalad/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kyleam/datalad/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kyleam/datalad/git/refs{/sha}","trees_url":"https://api.github.com/repos/kyleam/datalad/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kyleam/datalad/statuses/{sha}","languages_url":"https://api.github.com/repos/kyleam/datalad/languages","stargazers_url":"https://api.github.com/repos/kyleam/datalad/stargazers","contributors_url":"https://api.github.com/repos/kyleam/datalad/contributors","subscribers_url":"https://api.github.com/repos/kyleam/datalad/subscribers","subscription_url":"https://api.github.com/repos/kyleam/datalad/subscription","commits_url":"https://api.github.com/repos/kyleam/datalad/commits{/sha}","git_commits_url":"https://api.github.com/repos/kyleam/datalad/git/commits{/sha}","comments_url":"https://api.github.com/repos/kyleam/datalad/comments{/number}","issue_comment_url":"https://api.github.com/repos/kyleam/datalad/issues/comments{/number}","contents_url":"https://api.github.com/repos/kyleam/datalad/contents/{+path}","compare_url":"https://api.github.com/repos/kyleam/datalad/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kyleam/datalad/merges","archive_url":"https://api.github.com/repos/kyleam/datalad/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kyleam/datalad/downloads","issues_url":"https://api.github.com/repos/kyleam/datalad/issues{/number}","pulls_url":"https://api.github.com/repos/kyleam/datalad/pulls{/number}","milestones_url":"https://api.github.com/repos/kyleam/datalad/milestones{/number}","notifications_url":"https://api.github.com/repos/kyleam/datalad/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kyleam/datalad/labels{/name}","releases_url":"https://api.github.com/repos/kyleam/datalad/releases{/id}","deployments_url":"https://api.github.com/repos/kyleam/datalad/deployments","created_at":"2017-12-10T22:28:28Z","updated_at":"2017-12-10T22:28:31Z","pushed_at":"2018-02-07T14:49:38Z","git_url":"git://github.com/kyleam/datalad.git","ssh_url":"git@github.com:kyleam/datalad.git","clone_url":"https://github.com/kyleam/datalad.git","svn_url":"https://github.com/kyleam/datalad","homepage":"http://datalad.org","size":11181,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"datalad:master","ref":"master","sha":"7dc948a98683661b36cda82b194c20de231a3fdf","user":{"login":"datalad","id":8927200,"avatar_url":"https://avatars2.githubusercontent.com/u/8927200?v=4","gravatar_id":"","url":"https://api.github.com/users/datalad","html_url":"https://github.com/datalad","followers_url":"https://api.github.com/users/datalad/followers","following_url":"https://api.github.com/users/datalad/following{/other_user}","gists_url":"https://api.github.com/users/datalad/gists{/gist_id}","starred_url":"https://api.github.com/users/datalad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datalad/subscriptions","organizations_url":"https://api.github.com/users/datalad/orgs","repos_url":"https://api.github.com/users/datalad/repos","events_url":"https://api.github.com/users/datalad/events{/privacy}","received_events_url":"https://api.github.com/users/datalad/received_events","type":"Organization","site_admin":false},"repo":{"id":14052034,"name":"datalad","full_name":"datalad/datalad","owner":{"login":"datalad","id":8927200,"avatar_url":"https://avatars2.githubusercontent.com/u/8927200?v=4","gravatar_id":"","url":"https://api.github.com/users/datalad","html_url":"https://github.com/datalad","followers_url":"https://api.github.com/users/datalad/followers","following_url":"https://api.github.com/users/datalad/following{/other_user}","gists_url":"https://api.github.com/users/datalad/gists{/gist_id}","starred_url":"https://api.github.com/users/datalad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datalad/subscriptions","organizations_url":"https://api.github.com/users/datalad/orgs","repos_url":"https://api.github.com/users/datalad/repos","events_url":"https://api.github.com/users/datalad/events{/privacy}","received_events_url":"https://api.github.com/users/datalad/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/datalad/datalad","description":"Keep scientific data under control with git  and git-annex","fork":false,"url":"https://api.github.com/repos/datalad/datalad","forks_url":"https://api.github.com/repos/datalad/datalad/forks","keys_url":"https://api.github.com/repos/datalad/datalad/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datalad/datalad/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datalad/datalad/teams","hooks_url":"https://api.github.com/repos/datalad/datalad/hooks","issue_events_url":"https://api.github.com/repos/datalad/datalad/issues/events{/number}","events_url":"https://api.github.com/repos/datalad/datalad/events","assignees_url":"https://api.github.com/repos/datalad/datalad/assignees{/user}","branches_url":"https://api.github.com/repos/datalad/datalad/branches{/branch}","tags_url":"https://api.github.com/repos/datalad/datalad/tags","blobs_url":"https://api.github.com/repos/datalad/datalad/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datalad/datalad/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datalad/datalad/git/refs{/sha}","trees_url":"https://api.github.com/repos/datalad/datalad/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datalad/datalad/statuses/{sha}","languages_url":"https://api.github.com/repos/datalad/datalad/languages","stargazers_url":"https://api.github.com/repos/datalad/datalad/stargazers","contributors_url":"https://api.github.com/repos/datalad/datalad/contributors","subscribers_url":"https://api.github.com/repos/datalad/datalad/subscribers","subscription_url":"https://api.github.com/repos/datalad/datalad/subscription","commits_url":"https://api.github.com/repos/datalad/datalad/commits{/sha}","git_commits_url":"https://api.github.com/repos/datalad/datalad/git/commits{/sha}","comments_url":"https://api.github.com/repos/datalad/datalad/comments{/number}","issue_comment_url":"https://api.github.com/repos/datalad/datalad/issues/comments{/number}","contents_url":"https://api.github.com/repos/datalad/datalad/contents/{+path}","compare_url":"https://api.github.com/repos/datalad/datalad/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datalad/datalad/merges","archive_url":"https://api.github.com/repos/datalad/datalad/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datalad/datalad/downloads","issues_url":"https://api.github.com/repos/datalad/datalad/issues{/number}","pulls_url":"https://api.github.com/repos/datalad/datalad/pulls{/number}","milestones_url":"https://api.github.com/repos/datalad/datalad/milestones{/number}","notifications_url":"https://api.github.com/repos/datalad/datalad/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datalad/datalad/labels{/name}","releases_url":"https://api.github.com/repos/datalad/datalad/releases{/id}","deployments_url":"https://api.github.com/repos/datalad/datalad/deployments","created_at":"2013-11-01T19:40:08Z","updated_at":"2018-02-03T18:09:37Z","pushed_at":"2018-02-07T14:55:19Z","git_url":"git://github.com/datalad/datalad.git","ssh_url":"git@github.com:datalad/datalad.git","clone_url":"https://github.com/datalad/datalad.git","svn_url":"https://github.com/datalad/datalad","homepage":"http://datalad.org","size":11576,"stargazers_count":86,"watchers_count":86,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":26,"mirror_url":null,"archived":false,"open_issues_count":382,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":26,"open_issues":382,"watchers":86,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/datalad/datalad/pulls/2121"},"html":{"href":"https://github.com/datalad/datalad/pull/2121"},"issue":{"href":"https://api.github.com/repos/datalad/datalad/issues/2121"},"comments":{"href":"https://api.github.com/repos/datalad/datalad/issues/2121/comments"},"review_comments":{"href":"https://api.github.com/repos/datalad/datalad/pulls/2121/comments"},"review_comment":{"href":"https://api.github.com/repos/datalad/datalad/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/datalad/datalad/pulls/2121/commits"},"statuses":{"href":"https://api.github.com/repos/datalad/datalad/statuses/96ea3f60ee8818e57cb557a2bf7ba04f2d6cc5a5"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":276,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"kyleam"}}