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 740974 - Disable online accounts support
Disable online accounts support
Status: RESOLVED FIXED
Product: gnome-documents
Classification: Core
Component: books
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Books Maintainers
GNOME documents maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-12-01 13:56 UTC by Bastien Nocera
Modified: 2015-03-25 13:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
books: Disable online accounts for now (1022 bytes, patch)
2014-12-16 11:47 UTC, Bastien Nocera
reviewed Details | Review
books: Disable online accounts for now (1.53 KB, patch)
2014-12-16 11:54 UTC, Bastien Nocera
accepted-commit_now Details | Review
books: Disable online accounts for now (2.30 KB, patch)
2014-12-16 12:06 UTC, Bastien Nocera
committed Details | Review
books: Don't show "add online sources" without books (1023 bytes, patch)
2014-12-16 15:10 UTC, Bastien Nocera
committed Details | Review
selections: Hide "Share" button in Books (1.76 KB, patch)
2014-12-19 19:28 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2014-12-01 13:56:42 UTC
I don't think that the same online accounts can be used to both PDFs/documents and books. So we should disable online accounts support for now, in gnome-books.
Comment 1 Bastien Nocera 2014-12-16 11:47:05 UTC
Created attachment 292801 [details] [review]
books: Disable online accounts for now

Until we can figure out which of the providers could be populating
our view with ePubs or comics, just disable online accounts.
Comment 2 Bastien Nocera 2014-12-16 11:54:50 UTC
Created attachment 292802 [details] [review]
books: Disable online accounts for now

Until we can figure out which of the providers could be populating
our view with ePubs or comics, just disable online accounts.
Comment 3 Debarshi Ray 2014-12-16 11:58:21 UTC
Review of attachment 292801 [details] [review]:

It might be better to turn things off inside SourceManager (see src/search.js). We could also turn off the goaClient in src/application.js.

::: src/application.js
@@ +396,2 @@
         this._sourceAddedId = sourceManager.connect('item-added', Lang.bind(this, this._refreshMiners));
         this._sourceRemovedId = sourceManager.connect('item-removed', Lang.bind(this, this._refreshMiners));

This is still going to start the miners if an account is added while the app is running, and will show the online sources in the search dropdown.
Comment 4 Debarshi Ray 2014-12-16 12:00:33 UTC
Review of attachment 292802 [details] [review]:

Maybe turn off the Goa.Client.new_sync in src/application.js too?
Comment 5 Bastien Nocera 2014-12-16 12:06:40 UTC
Created attachment 292804 [details] [review]
books: Disable online accounts for now

Until we can figure out which of the providers could be populating
our view with ePubs or comics, just disable online accounts.
Comment 6 Debarshi Ray 2014-12-16 12:17:41 UTC
Review of attachment 292804 [details] [review]:

Perfect. Thanks for the patch, Bastien.
Comment 7 Bastien Nocera 2014-12-16 15:10:53 UTC
Created attachment 292839 [details] [review]
books: Don't show "add online sources" without books

If there are no books on the system, don't show the "Add online
sources" link to gnome-control-center.
Comment 8 Debarshi Ray 2014-12-16 18:22:54 UTC
Review of attachment 292839 [details] [review]:

Thanks for the patch, Bastien. Looks good to me.

One minor nitpick. The subject sounds a bit confusing to me. Particularly the "without books" part. Maybe something like 'books: Don't show "add online source" when empty' ? Up to you.
Comment 9 Bastien Nocera 2014-12-17 15:45:51 UTC
Comment on attachment 292804 [details] [review]
books: Disable online accounts for now

Attachment 292804 [details] pushed as 0c68c18 - books: Disable online accounts for now
Comment 10 Bastien Nocera 2014-12-17 15:47:10 UTC
commit 8a35471a788a652fbc3a4eea881dbf66f504c09c
Author: Bastien Nocera <hadess@hadess.net>
Date:   Tue Dec 16 16:08:12 2014 +0100

    books: Don't show "add online sources" when empty
    
    If there are no books on the system, don't show the "Add online
    sources" link to gnome-control-center.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=740974
Comment 11 Debarshi Ray 2014-12-19 18:59:16 UTC
Since we are disabling online accounts in gnome-books, we should also hide the 'share' button from the selection view because it only works for Google content at the moment.

Reopening.
Comment 12 Bastien Nocera 2014-12-19 19:28:03 UTC
Created attachment 293087 [details] [review]
selections: Hide "Share" button in Books

As it only works with Google Docs, and that's disabled in gnome-books.
Comment 13 Debarshi Ray 2014-12-19 21:13:04 UTC
Review of attachment 293087 [details] [review]:

Looks good to me.
Comment 14 Bastien Nocera 2014-12-23 08:53:54 UTC
Attachment 293087 [details] pushed as 5315cef - selections: Hide "Share" button in Books
Comment 15 Bastien Nocera 2015-03-25 13:50:47 UTC
Reassigning to new default assignee.