www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit d08db42f7bd2ebcd6c904cb74be84ecff19cb8dd
parent 73d88421bb67e52428dabbe0e9506c595f8f6753
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 25 Oct 2017 23:51:25 -0400

Additional debugging for group sync issue

https://forums.zotero.org/discussion/68299/group-library-not-showing-up-report-id-198634382

Diffstat:
Mchrome/content/zotero/xpcom/sync/syncRunner.js | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/sync/syncRunner.js b/chrome/content/zotero/xpcom/sync/syncRunner.js @@ -371,8 +371,10 @@ Zotero.Sync.Runner_Module = function (options = {}) { } let remoteGroupVersions = yield client.getGroupVersions(keyInfo.userID); + Zotero.debug(remoteGroupVersions); let remoteGroupIDs = Object.keys(remoteGroupVersions).map(id => parseInt(id)); let skippedGroups = Zotero.Sync.Data.Local.getSkippedGroups(); + Zotero.debug(skippedGroups); // Remove skipped groups if (syncAllLibraries) { @@ -390,10 +392,12 @@ Zotero.Sync.Runner_Module = function (options = {}) { // If syncing all libraries, mark any that don't exist, are outdated, or are // archived locally for update. Group is added to the library list after downloading. if (!group || group.version < remoteGroupVersions[id] || group.archived) { + Zotero.debug(`Marking group ${id} to download`); groupsToDownload.push(id); } // If not outdated, just add to library list else { + Zotero.debug(`Adding group library ${group.libraryID} to sync`); libraries.push(group.libraryID); } } @@ -425,6 +429,8 @@ Zotero.Sync.Runner_Module = function (options = {}) { .filter(id => Zotero.Libraries.get(id).libraryType == 'group') .map(id => Zotero.Groups.getGroupIDFromLibraryID(id)) } + Zotero.debug("Local groups:"); + Zotero.debug(localGroups); remotelyMissingGroups = Zotero.Utilities.arrayDiff(localGroups, remoteGroupIDs) .map(id => Zotero.Groups.get(id)); } @@ -547,6 +553,8 @@ Zotero.Sync.Runner_Module = function (options = {}) { } // Note: If any non-group library types become archivable, they'll need to be unarchived here. + Zotero.debug("Final libraries to sync:"); + Zotero.debug(libraries); return [...new Set(libraries)]; });