{"action":"created","issue":{"url":"https://api.github.com/repos/inveniosoftware/invenio-collections/issues/13","labels_url":"https://api.github.com/repos/inveniosoftware/invenio-collections/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/inveniosoftware/invenio-collections/issues/13/comments","events_url":"https://api.github.com/repos/inveniosoftware/invenio-collections/issues/13/events","html_url":"https://github.com/inveniosoftware/invenio-collections/pull/13","id":105377746,"number":13,"title":"collections: add validation for collection name","user":{"login":"SamiHiltunen","id":3035183,"avatar_url":"https://avatars.githubusercontent.com/u/3035183?v=3","gravatar_id":"","url":"https://api.github.com/users/SamiHiltunen","html_url":"https://github.com/SamiHiltunen","followers_url":"https://api.github.com/users/SamiHiltunen/followers","following_url":"https://api.github.com/users/SamiHiltunen/following{/other_user}","gists_url":"https://api.github.com/users/SamiHiltunen/gists{/gist_id}","starred_url":"https://api.github.com/users/SamiHiltunen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamiHiltunen/subscriptions","organizations_url":"https://api.github.com/users/SamiHiltunen/orgs","repos_url":"https://api.github.com/users/SamiHiltunen/repos","events_url":"https://api.github.com/users/SamiHiltunen/events{/privacy}","received_events_url":"https://api.github.com/users/SamiHiltunen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/inveniosoftware/invenio-collections/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"SamiHiltunen","id":3035183,"avatar_url":"https://avatars.githubusercontent.com/u/3035183?v=3","gravatar_id":"","url":"https://api.github.com/users/SamiHiltunen","html_url":"https://github.com/SamiHiltunen","followers_url":"https://api.github.com/users/SamiHiltunen/followers","following_url":"https://api.github.com/users/SamiHiltunen/following{/other_user}","gists_url":"https://api.github.com/users/SamiHiltunen/gists{/gist_id}","starred_url":"https://api.github.com/users/SamiHiltunen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamiHiltunen/subscriptions","organizations_url":"https://api.github.com/users/SamiHiltunen/orgs","repos_url":"https://api.github.com/users/SamiHiltunen/repos","events_url":"https://api.github.com/users/SamiHiltunen/events{/privacy}","received_events_url":"https://api.github.com/users/SamiHiltunen/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/inveniosoftware/invenio-collections/milestones/5","html_url":"https://github.com/inveniosoftware/invenio-collections/milestones/v0.1.3","labels_url":"https://api.github.com/repos/inveniosoftware/invenio-collections/milestones/5/labels","id":1293418,"number":5,"title":"v0.1.3","description":null,"creator":{"login":"jirikuncar","id":189798,"avatar_url":"https://avatars.githubusercontent.com/u/189798?v=3","gravatar_id":"","url":"https://api.github.com/users/jirikuncar","html_url":"https://github.com/jirikuncar","followers_url":"https://api.github.com/users/jirikuncar/followers","following_url":"https://api.github.com/users/jirikuncar/following{/other_user}","gists_url":"https://api.github.com/users/jirikuncar/gists{/gist_id}","starred_url":"https://api.github.com/users/jirikuncar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jirikuncar/subscriptions","organizations_url":"https://api.github.com/users/jirikuncar/orgs","repos_url":"https://api.github.com/users/jirikuncar/repos","events_url":"https://api.github.com/users/jirikuncar/events{/privacy}","received_events_url":"https://api.github.com/users/jirikuncar/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":2,"state":"open","created_at":"2015-09-07T09:47:42Z","updated_at":"2015-09-08T13:33:42Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-09-08T13:13:07Z","updated_at":"2015-09-09T11:28:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/inveniosoftware/invenio-collections/pulls/13","html_url":"https://github.com/inveniosoftware/invenio-collections/pull/13","diff_url":"https://github.com/inveniosoftware/invenio-collections/pull/13.diff","patch_url":"https://github.com/inveniosoftware/invenio-collections/pull/13.patch"},"body":"* FIX Adds validation for collection names. Validation will be\r\n  performed each time the name is assigned to.\r\n\r\n* Improves code quality compliance.\r\n\r\nSigned-off-by: Sami Hiltunen <sami.mikael.hiltunen@cern.ch>"},"comment":{"url":"https://api.github.com/repos/inveniosoftware/invenio-collections/issues/comments/138881139","html_url":"https://github.com/inveniosoftware/invenio-collections/pull/13#issuecomment-138881139","issue_url":"https://api.github.com/repos/inveniosoftware/invenio-collections/issues/13","id":138881139,"user":{"login":"SamiHiltunen","id":3035183,"avatar_url":"https://avatars.githubusercontent.com/u/3035183?v=3","gravatar_id":"","url":"https://api.github.com/users/SamiHiltunen","html_url":"https://github.com/SamiHiltunen","followers_url":"https://api.github.com/users/SamiHiltunen/followers","following_url":"https://api.github.com/users/SamiHiltunen/following{/other_user}","gists_url":"https://api.github.com/users/SamiHiltunen/gists{/gist_id}","starred_url":"https://api.github.com/users/SamiHiltunen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamiHiltunen/subscriptions","organizations_url":"https://api.github.com/users/SamiHiltunen/orgs","repos_url":"https://api.github.com/users/SamiHiltunen/repos","events_url":"https://api.github.com/users/SamiHiltunen/events{/privacy}","received_events_url":"https://api.github.com/users/SamiHiltunen/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T11:28:27Z","updated_at":"2015-09-09T11:28:27Z","body":"Added some tests and changed the is_root to check for whether the collection id == 1 instead of checking the number of ancestors. Also, I made is_root into a read-only property"}}