{"action":"opened","issue":{"url":"https://api.github.com/repos/inveniosoftware/invenio-pidstore/issues/96","repository_url":"https://api.github.com/repos/inveniosoftware/invenio-pidstore","labels_url":"https://api.github.com/repos/inveniosoftware/invenio-pidstore/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/inveniosoftware/invenio-pidstore/issues/96/comments","events_url":"https://api.github.com/repos/inveniosoftware/invenio-pidstore/issues/96/events","html_url":"https://github.com/inveniosoftware/invenio-pidstore/issues/96","id":188199198,"number":96,"title":"docs: fix resolver example to use invenio_records.api.Record","user":{"login":"lnielsen","id":1698163,"avatar_url":"https://avatars.githubusercontent.com/u/1698163?v=3","gravatar_id":"","url":"https://api.github.com/users/lnielsen","html_url":"https://github.com/lnielsen","followers_url":"https://api.github.com/users/lnielsen/followers","following_url":"https://api.github.com/users/lnielsen/following{/other_user}","gists_url":"https://api.github.com/users/lnielsen/gists{/gist_id}","starred_url":"https://api.github.com/users/lnielsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lnielsen/subscriptions","organizations_url":"https://api.github.com/users/lnielsen/orgs","repos_url":"https://api.github.com/users/lnielsen/repos","events_url":"https://api.github.com/users/lnielsen/events{/privacy}","received_events_url":"https://api.github.com/users/lnielsen/received_events","type":"User","site_admin":false},"labels":[{"id":236551744,"url":"https://api.github.com/repos/inveniosoftware/invenio-pidstore/labels/Type:%20bug","name":"Type: bug","color":"ff2a00","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/inveniosoftware/invenio-pidstore/milestones/7","html_url":"https://github.com/inveniosoftware/invenio-pidstore/milestones/v1.0.0","labels_url":"https://api.github.com/repos/inveniosoftware/invenio-pidstore/milestones/7/labels","id":1363884,"number":7,"title":"v1.0.0","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":2,"closed_issues":49,"state":"open","created_at":"2015-10-19T13:13:43Z","updated_at":"2016-11-09T09:21:52Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-11-09T09:21:52Z","updated_at":"2016-11-09T09:21:52Z","closed_at":null,"body":"The [resolver example](https://github.com/inveniosoftware/invenio-pidstore/blob/master/invenio_pidstore/__init__.py#L188-L191) in usage documentation needs to be reverted back to original state:\r\n\r\nFrom:\r\n```python\r\n>>> from invenio_pidstore.resolver import Resolver\r\n>>> records = {}\r\n>>> resolver = Resolver(pid_type='recid', object_type='rec',\r\n...    getter=records.get)\r\n```\r\n\r\nTo:\r\n```python\r\n>>> from invenio_pidstore.resolver import Resolver\r\n>>> from invenio_records.api import Record\r\n>>> resolver = Resolver(pid_type='recid', object_type='rec',\r\n...    getter=Record.get_record)\r\n```\r\n\r\nSee discussion in [#93](https://github.com/inveniosoftware/invenio-pidstore/pull/93#issuecomment-259364899)"}}
{"actor":{"display_login":"lnielsen"}}