Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Welcome Tour: Migration rules for tour items #5173

Closed
ErisDS opened this issue Apr 21, 2015 · 11 comments
Closed

Welcome Tour: Migration rules for tour items #5173

ErisDS opened this issue Apr 21, 2015 · 11 comments
Labels
server / core Issues relating to the server or core of Ghost

Comments

@ErisDS
Copy link
Member

ErisDS commented Apr 21, 2015

This issue is part of the welcome tour feature and should be implemented behind a config flag (not labs) to start with. An example of how to do this exists in this PR.


There is a decision to be made about whether existing Ghost users are shown the tour, or whether we should default the items to 'seen' for exising users.

By far and away the easiest option from a technical perspective would be to show the tour to all existing users. There's always a chance they'll find something they didn't know about, and it only takes two clicks to dismiss them all. If this is considered OK then this issue can be closed as there's nothing to do here.

If it's decided this would be too annoying and we need to ensure existing users don't see the tour, then we need to implement a migration similar to the one that exists for permissions fixtures which checks if the database migration is upgrading to or through the relevant version, and inserts a piece of JSON marking each item as seen into the user table for each user.

@ErisDS ErisDS added data server / core Issues relating to the server or core of Ghost labels Apr 21, 2015
@acburdine
Copy link
Member

@ErisDS if we want to go ahead with the "don't show users the new tour," I could get something working for #6302 -> although that might hold it back a bit.

Honestly, given the mockup, and the fact that just clicking "opt out of these tips" will not show any tips anymore, I don't think it's that big of a deal to just show them to everyone. Even some old users might learn something 😄

@ErisDS
Copy link
Member Author

ErisDS commented Jan 25, 2016

@acburdine that sounds sane to me. @JohnONolan what do you think: is it ok to show a welcome tour to all existing users providing it's possible to dismiss it with a single click, or do we need to make sure we only ever show it to new users setting up a blog for the first time?

@JohnONolan
Copy link
Member

Defo all users. Including ones who are invited to Ghost (rather than setting up a blog for the first time)

Though presumably we should ship a database modification with the release of this feature which sets the value of "tour-done" (or whatever) to "true" ?

@ErisDS
Copy link
Member Author

ErisDS commented Jan 25, 2016

Cool! That database update is already done, all users have a tour field, intention is to store more than just true/false, so we can add new tour items in future to go with new features and show these: Spec here: #5172

Should be able to move forward with this @acburdine ?

@acburdine
Copy link
Member

Yeah I think so. Only thing now is if you want me to get the tour feature done before db migration 005 lands so that the migration can go there.

@ErisDS
Copy link
Member Author

ErisDS commented Jan 28, 2016

@acburdine the migration is already done.

tour: {type: 'text', maxlength: 65535, nullable: true},

@acburdine
Copy link
Member

No I meant the modification to auto-hide all the new tours for existing users 😄

@ErisDS
Copy link
Member Author

ErisDS commented Jan 28, 2016

I'm totally lost! We don't want to auto-hide all the new tours for existing users.

@acburdine
Copy link
Member

Though presumably we should ship a database modification with the release of this feature which sets the value of "tour-done" (or whatever) to "true" ?

That led me to assume we'd hide the tours for existing users, but if not then i misunderstood 😄

@acburdine
Copy link
Member

So, given that we've established to show the tour to everyone, regardless of whether they're new or old, this issue should be able to be closed I think?

@ErisDS
Copy link
Member Author

ErisDS commented Feb 3, 2016

👍

@ErisDS ErisDS closed this as completed Feb 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
server / core Issues relating to the server or core of Ghost
Projects
None yet
Development

No branches or pull requests

3 participants