{"action":"created","issue":{"url":"https://api.github.com/repos/zotero/zotero/issues/888","labels_url":"https://api.github.com/repos/zotero/zotero/issues/888/labels{/name}","comments_url":"https://api.github.com/repos/zotero/zotero/issues/888/comments","events_url":"https://api.github.com/repos/zotero/zotero/issues/888/events","html_url":"https://github.com/zotero/zotero/pull/888","id":123632121,"number":888,"title":"Fix/sync auth form","user":{"login":"adomasven","id":5899315,"avatar_url":"https://avatars.githubusercontent.com/u/5899315?v=3","gravatar_id":"","url":"https://api.github.com/users/adomasven","html_url":"https://github.com/adomasven","followers_url":"https://api.github.com/users/adomasven/followers","following_url":"https://api.github.com/users/adomasven/following{/other_user}","gists_url":"https://api.github.com/users/adomasven/gists{/gist_id}","starred_url":"https://api.github.com/users/adomasven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adomasven/subscriptions","organizations_url":"https://api.github.com/users/adomasven/orgs","repos_url":"https://api.github.com/users/adomasven/repos","events_url":"https://api.github.com/users/adomasven/events{/privacy}","received_events_url":"https://api.github.com/users/adomasven/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-23T10:02:50Z","updated_at":"2016-01-06T04:20:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/zotero/zotero/pulls/888","html_url":"https://github.com/zotero/zotero/pull/888","diff_url":"https://github.com/zotero/zotero/pull/888.diff","patch_url":"https://github.com/zotero/zotero/pull/888.patch"},"body":"Closes #886 \r\nCloses #833 \r\n\r\nDid not really require `Zotero.Library.hasItems` method, but I had implemented it before (my idea was to check for absence of items in current library and presence of items on the sync server), so we may as well keep it - might come in handy."},"comment":{"url":"https://api.github.com/repos/zotero/zotero/issues/comments/169216433","html_url":"https://github.com/zotero/zotero/pull/888#issuecomment-169216433","issue_url":"https://api.github.com/repos/zotero/zotero/issues/888","id":169216433,"user":{"login":"dstillman","id":783082,"avatar_url":"https://avatars.githubusercontent.com/u/783082?v=3","gravatar_id":"","url":"https://api.github.com/users/dstillman","html_url":"https://github.com/dstillman","followers_url":"https://api.github.com/users/dstillman/followers","following_url":"https://api.github.com/users/dstillman/following{/other_user}","gists_url":"https://api.github.com/users/dstillman/gists{/gist_id}","starred_url":"https://api.github.com/users/dstillman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstillman/subscriptions","organizations_url":"https://api.github.com/users/dstillman/orgs","repos_url":"https://api.github.com/users/dstillman/repos","events_url":"https://api.github.com/users/dstillman/events{/privacy}","received_events_url":"https://api.github.com/users/dstillman/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T04:20:30Z","updated_at":"2016-01-06T04:20:30Z","body":"Instead of running a query to update `hasItems` on every item addition/deletion, we should just run a query on-demand in `Zotero.Library::hasItems()`, which will be called at sync time when there's no userID.\r\n\r\n(Also, this will need to be rebased on top of my WebDAV commit — sorry.)"}}