Skip to content
This repository has been archived by the owner on Feb 9, 2018. It is now read-only.

Support multiple blogs #148

Open
1 of 9 tasks
vickychijwani opened this issue Nov 5, 2016 · 4 comments
Open
1 of 9 tasks

Support multiple blogs #148

vickychijwani opened this issue Nov 5, 2016 · 4 comments

Comments

@vickychijwani
Copy link
Owner

vickychijwani commented Nov 5, 2016

Pro users would like the option to sign in to multiple accounts blogs and switch between them seamlessly.


Task list:

  • Rework storage architecture alongside other breaking changes for Ghost 1.0 (Ghost 1.0 #162)
  • Build UI for adding / removing blogs and switching among them
  • Remove android:launchMode="singleTop" attribute from LoginActivity in the manifest
  • Add lots of logging in AccountManager to help debug any issues that come up
  • Handle scenario where the password has changed (or Ghost Auth code has expired)
  • Test cases:
    • Trying to add a new account with a blog that was already added earlier (only allow a single account per blog)
    • Preserve the data Realm in the case where, e.g., credentials expire
    • Delete the data Realm when a blog is removed (i.e., logged out)
@nqthqn
Copy link

nqthqn commented Nov 5, 2016

*multiple ghost blogs

@vickychijwani vickychijwani changed the title Support multiple accounts Support multiple blogs Nov 6, 2016
@vickychijwani
Copy link
Owner Author

@NatsN right, sorry, that's what I intended to write down.

@vickychijwani vickychijwani moved this from New Features to High priority in Up next Feb 8, 2017
@vickychijwani vickychijwani mentioned this issue Feb 18, 2017
29 tasks
@vickychijwani
Copy link
Owner Author

Status update: work on this has been stalled so far because Ghost 1.0 is coming out in a few weeks, with big changes. This will be tackled once things settle down.

@vickychijwani
Copy link
Owner Author

One of the hardest parts of this feature is done (in the wip-ghost-1.0 branch currently) - the data layer is now equipped to handle multiple blogs 🙂

The way this works is:

  • Each blog's data is stored in a separate Realm file, named with the base-64 encoded URL of that blog
  • The main (default) Realm stores the metadata for all these blogs, like the blog URLs, credentials, logged-in status (which is false if the credentials that used to work are now known to be expired).
  • At most one blog is considered active at any time. If the active blog has its loggedIn property set to false, Quill will assume at start-up time that the credentials are known to be expired (that's how loggedIn becamse false in the first place) and will prompt for them again. At the moment this prompt is not dismissable, and I'm not sure if it should be.

@vickychijwani vickychijwani moved this from High priority to New Features in Up next Aug 19, 2017
@vickychijwani vickychijwani moved this from New Features to High priority in Up next Aug 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Up next
High priority
Development

No branches or pull requests

2 participants