After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 749900 - Collections in "collections dialog" aren't displayed
Collections in "collections dialog" aren't displayed
Status: RESOLVED FIXED
Product: gnome-documents
Classification: Core
Component: general
3.16.x
Other All
: Normal normal
: ---
Assigned To: GNOME documents maintainer(s)
GNOME documents maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-05-26 12:25 UTC by Alessandro Bono
Modified: 2015-10-15 14:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
query: Display collections in "collection dialog" (1.56 KB, patch)
2015-05-26 12:35 UTC, Alessandro Bono
none Details | Review
query: Display collections in "collection dialog" (1.77 KB, patch)
2015-05-26 13:23 UTC, Alessandro Bono
none Details | Review
query: Display collections in "collection dialog" (1.78 KB, patch)
2015-05-26 13:58 UTC, Alessandro Bono
committed Details | Review
selections, query: Different collections for Books and Documents (3.01 KB, patch)
2015-10-14 11:27 UTC, Alessandro Bono
none Details | Review
selections, query: Different collections for Books and Documents (3.14 KB, patch)
2015-10-15 14:24 UTC, Alessandro Bono
committed Details | Review

Description Alessandro Bono 2015-05-26 12:25:48 UTC
steps to reproduce:
1. select one or more objects
2. click "Add to collection"

Result: no collections displayed
Expected result: my collections displayed
Comment 1 Alessandro Bono 2015-05-26 12:35:34 UTC
Created attachment 304004 [details] [review]
query: Display collections in "collection dialog"

Fallout from 17322bb4b627ebfef0b8c36ba22d390d0910faa6
Comment 2 Debarshi Ray 2015-05-26 13:13:32 UTC
Review of attachment 304004 [details] [review]:

Thanks for tracking this down, Alessandro.

::: src/query.js
@@ +226,2 @@
         else
+            collectionsIdentifier = LOCAL_COLLECTIONS_IDENTIFIER;

We don't need the if condition and the collectionsIdentifier variable anymore. Just directly use LOCAL_COLLECTIONS_IDENTIFIER in the statement below. As it used to be before commit 17322bb4b627ebfef0b8c36ba22d390d0910faa6
Comment 3 Alessandro Bono 2015-05-26 13:23:03 UTC
Created attachment 304010 [details] [review]
query: Display collections in "collection dialog"

Fallout from 17322bb4b627ebfef0b8c36ba22d390d0910faa6
Comment 4 Alessandro Bono 2015-05-26 13:58:41 UTC
Created attachment 304011 [details] [review]
query: Display collections in "collection dialog"

Fallout from 17322bb4b627ebfef0b8c36ba22d390d0910faa6
Comment 5 Debarshi Ray 2015-05-26 15:31:43 UTC
Review of attachment 304011 [details] [review]:

Perfect, thanks.
Comment 6 Pranav Kant 2015-05-27 12:26:46 UTC
Attachment 304011 [details] pushed as 5e9d776 - query: Display collections in "collection dialog"
Comment 7 Pranav Kant 2015-05-27 12:33:26 UTC
[master] pushed as 5e9d776 - query: Display collections in "collection dialog"
[gnome-3-16] pushed as 78b56af - query: Display collections in "collection dialog"
Comment 8 Alessandro Bono 2015-10-14 11:18:02 UTC
The patch introduces a regression: before there were different collections for Books and Documents ('gb:collection:local:' vs 'gd:collection:local:') now we have the same collections in both (only 'gd:collection:local:').
Comment 9 Alessandro Bono 2015-10-14 11:27:16 UTC
Created attachment 313255 [details] [review]
selections, query: Different collections for Books and Documents
Comment 10 Debarshi Ray 2015-10-15 14:21:24 UTC
Review of attachment 313255 [details] [review]:

Oh, dear. What was I thinking when reviewing the earlier patch? Anyway, this looks correct to me, but I would like to have some more text in the commit message that makes it clear that the earlier patch was an utter mistake.
Comment 11 Alessandro Bono 2015-10-15 14:24:44 UTC
Created attachment 313376 [details] [review]
selections, query: Different collections for Books and Documents

Restore separate collections for Books and Documents, and fix the
queries accordingly.
This reverts 5e9d776ae276cb660104bb19d8d4743c5f2f6747
Comment 12 Debarshi Ray 2015-10-15 14:49:13 UTC
Review of attachment 313376 [details] [review]:

Thanks. Pushed to master, gnome-3-18 and gnome-3-16.