Page MenuHomeMusing Studio

Add anonymous post syncing
Closed, ResolvedPublic

Description

From writeas-cli #12:

Overview
Users should be able to sync anonymous posts to their accounts.

Dependencies
This requires user authentication (T191) to work.

Implementation
This should use the go-writeas library to claim all posts stored locally (in user's posts.psv file). Each post successfully claimed should be removed from the posts.psv file; any errored posts should stay in the file and the user notified, so user can decide what to do with them.

See below for details on potential messaging to use.


$ writeas sync --help
Sync anonymous posts to a Write.as account.

The writeas CLI stores ownership information per individual post on your computer by default. However, you can create an account on Write.as...
$ writeas sync
Not logged in. Run: writeas login
$ writeas sync
Adding aaaaaa111111 to user baer... OK
Adding baaaaa111112 to user baer... OK
Done.

Questions:

  • Should writeas sync essentially be an alias/replacement for writeas login when user hasn't yet logged in? This could mean signing up with writeas auth

Revisions and Commits

Event Timeline

matt claimed this task.
matt raised the priority of this task from to High.
matt updated the task description. (Show Details)
matt added a project: Write.as CLI.
matt moved this task to Backlog on the Write.as CLI board.
matt added a subscriber: matt.
matt added a subtask: Restricted Maniphest Task.Nov 1 2015, 8:55 PM
matt changed the visibility from "All Users" to "Public (No Login Required)".
matt added a project: Restricted Project.Nov 2 2015, 5:23 PM
matt moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.Nov 2 2015, 5:26 PM
matt closed subtask Restricted Maniphest Task as Resolved.Nov 4 2015, 1:15 AM
matt lowered the priority of this task from High to Low.Sep 3 2016, 5:04 AM
matt removed matt as the assignee of this task.Nov 19 2017, 3:07 AM

Additional questions we might want to answer:

  • should there be a confirmation/warning if we are importing all posts?
  • should we ask one at a time?
    • if so should we pull the title and an excerpt during confirmation?

I'd say the assumed behavior will be that all posts are imported. This is the behavior on the web app, and will be the behavior on the Android app, as well.

sync might be a little ambiguous, especially with our upcoming T584 changes. Maybe something like claim or own instead?