{"action":"created","issue":{"url":"https://api.github.com/repos/datalad/datalad/issues/986","repository_url":"https://api.github.com/repos/datalad/datalad","labels_url":"https://api.github.com/repos/datalad/datalad/issues/986/labels{/name}","comments_url":"https://api.github.com/repos/datalad/datalad/issues/986/comments","events_url":"https://api.github.com/repos/datalad/datalad/issues/986/events","html_url":"https://github.com/datalad/datalad/issues/986","id":181801151,"number":986,"title":"RFC: do not autogenerate a Dataset id if not defined. Generate one during create (only)","user":{"login":"yarikoptic","id":39889,"avatar_url":"https://avatars.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},"labels":[{"url":"https://api.github.com/repos/datalad/datalad/labels/conference%20agenda%20item","name":"conference agenda item","color":"1d76db"},{"url":"https://api.github.com/repos/datalad/datalad/labels/question","name":"question","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-08T03:18:01Z","updated_at":"2016-10-10T11:46:14Z","closed_at":null,"body":"Currently I can do in any directory:\r\n\r\n```shell\r\nhopa:/tmp\r\n$> python -c 'from datalad.distribution.dataset import Dataset; print(Dataset(\".\").id)'\r\n54e5a0aa-8d05-11e6-95c9-8019340ce7f2\r\n```\r\nwhich imho makes little sense... and in general -- I thought we could discriminate between a Dataset and non-Dataset by checking for their id, and if None - consider it to not correspond to a dataset\r\n\r\nedit 1: well -- ATM the only way to initiate a dataset in existing git/annex repo seems to use `create --force` but not sure if what `--force` does doesn't have side-effects... seems it doesn't and just indeed does only initialization of the dataset if git or annex repo is already there.  May be we should add explicit `--init-only` which, unlike `--force` wouldn't try to create one?"},"comment":{"url":"https://api.github.com/repos/datalad/datalad/issues/comments/252596383","html_url":"https://github.com/datalad/datalad/issues/986#issuecomment-252596383","issue_url":"https://api.github.com/repos/datalad/datalad/issues/986","id":252596383,"user":{"login":"mih","id":136479,"avatar_url":"https://avatars.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},"created_at":"2016-10-10T11:46:13Z","updated_at":"2016-10-10T11:46:13Z","body":"Implication would be no metadata unless there is an ID. I think that was\nmerged already. Or at least there is an issue with this resolution.\n\nOn Oct 10, 2016 13:14, \"Benjamin Poldrack\" <notifications@github.com> wrote:\n\nI'm not sure, what implications it would have for metadata if there wasn't\nan id in this case. May be it makes sense to have None here. @mih\n<https://github.com/mih>?\n\nBut as far as it regards this aspect:\n\nI thought we could discriminate between a Dataset and non-Dataset by\nchecking for their id, and if\nNone - consider it to not correspond to a dataset\n\nHow about Dataset.is_installed() or Dataset.repo is None? Why would you\nneed a third method of figuring out, whether or not there is a dataset? Or\ndo I misunderstand the purpose of your wanted check via Dataset.id?\n\n—\nYou are receiving this because you were mentioned.\n\nReply to this email directly, view it on GitHub\n<https://github.com/datalad/datalad/issues/986#issuecomment-252589711>, or mute\nthe thread\n<https://github.com/notifications/unsubscribe-auth/AAIVH3KbrkT3z3p5l6zJG22Cxnftj-gvks5qyh4EgaJpZM4KRms6>\n.\n"}}
{"actor":{"display_login":"mih"}}