{"action":"created","issue":{"url":"https://api.github.com/repos/datalad/datalad/issues/1421","repository_url":"https://api.github.com/repos/datalad/datalad","labels_url":"https://api.github.com/repos/datalad/datalad/issues/1421/labels{/name}","comments_url":"https://api.github.com/repos/datalad/datalad/issues/1421/comments","events_url":"https://api.github.com/repos/datalad/datalad/issues/1421/events","html_url":"https://github.com/datalad/datalad/pull/1421","id":216360306,"number":1421,"title":"Advanced magic in `crawl` test, need exorcist ;-)","user":{"login":"mih","id":136479,"avatar_url":"https://avatars2.githubusercontent.com/u/136479?v=3","gravatar_id":"","url":"https://api.github.com/users/mih","html_url":"https://github.com/mih","followers_url":"https://api.github.com/users/mih/followers","following_url":"https://api.github.com/users/mih/following{/other_user}","gists_url":"https://api.github.com/users/mih/gists{/gist_id}","starred_url":"https://api.github.com/users/mih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mih/subscriptions","organizations_url":"https://api.github.com/users/mih/orgs","repos_url":"https://api.github.com/users/mih/repos","events_url":"https://api.github.com/users/mih/events{/privacy}","received_events_url":"https://api.github.com/users/mih/received_events","type":"User","site_admin":false},"labels":[{"id":63778590,"url":"https://api.github.com/repos/datalad/datalad/labels/bug","name":"bug","color":"fc2929","default":true},{"id":519289523,"url":"https://api.github.com/repos/datalad/datalad/labels/on%20hold%20-%20input%20required","name":"on hold - input required","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-03-23T09:23:27Z","updated_at":"2017-03-23T11:37:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/datalad/datalad/pulls/1421","html_url":"https://github.com/datalad/datalad/pull/1421","diff_url":"https://github.com/datalad/datalad/pull/1421.diff","patch_url":"https://github.com/datalad/datalad/pull/1421.patch"},"body":"I am trying to debug a test failure in the crawler for the new `subdataset` command. It \"fails\" because it doesn't return subdatasets for a Dataset that is an empty directory (hence not installed). However, the old Dataset.get_subdatasets() happily reports the presence of subdatasets. Here is the situation using the old code:\r\n````\r\n> /home/mih/hacking/datalad/git/datalad/interface/crawl.py(150)__call__()\r\n-> subdatasets = Dataset(os.curdir).get_subdatasets(recursive=recursive)\r\n(Pdb) ds=Dataset(os.curdir)\r\n(Pdb) ds.path\r\n'/tmp/datalad_temp_test_crawl_api_recursiveVTk5BI'\r\n(Pdb) Dataset(os.curdir).get_subdatasets(recursive=recursive)\r\n['path1', 'path1/path1_1', 'path2', 'path_to_fail']\r\n(Pdb) import os\r\n(Pdb) os.listdir(ds.path)\r\n[]\r\n````\r\n\r\nSo the beast is not there, yet it has subdatasets. I assume that is GitPython still remembering things it should have forgotton. The new code, doesn't use GitPython functionality, so it returns an empty list -- as also the old code should have done IMHO.\r\n\r\nSomehow, not sure how to tackle this.\r\n\r\nIn any case, the new code is in #1423 "},"comment":{"url":"https://api.github.com/repos/datalad/datalad/issues/comments/288692288","html_url":"https://github.com/datalad/datalad/pull/1421#issuecomment-288692288","issue_url":"https://api.github.com/repos/datalad/datalad/issues/1421","id":288692288,"user":{"login":"yarikoptic","id":39889,"avatar_url":"https://avatars0.githubusercontent.com/u/39889?v=3","gravatar_id":"","url":"https://api.github.com/users/yarikoptic","html_url":"https://github.com/yarikoptic","followers_url":"https://api.github.com/users/yarikoptic/followers","following_url":"https://api.github.com/users/yarikoptic/following{/other_user}","gists_url":"https://api.github.com/users/yarikoptic/gists{/gist_id}","starred_url":"https://api.github.com/users/yarikoptic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarikoptic/subscriptions","organizations_url":"https://api.github.com/users/yarikoptic/orgs","repos_url":"https://api.github.com/users/yarikoptic/repos","events_url":"https://api.github.com/users/yarikoptic/events{/privacy}","received_events_url":"https://api.github.com/users/yarikoptic/received_events","type":"User","site_admin":false},"created_at":"2017-03-23T11:37:56Z","updated_at":"2017-03-23T11:37:56Z","body":"Will look at code when get to work - smells like I had a mock to avoid something"}}
{"actor":{"display_login":"yarikoptic"}}