Skip to content

Conversation

@joshsmith
Copy link
Contributor

What's in this PR?

This adds a sign_up_context to User that allows us to track how a user signed up.

Also adds skippable state transitions.

def next("selected_roles", "select_skills"), do: {:ok, "selected_skills"}
def next("selected_roles", "skip_skills"), do: {:ok, "selected_skills"}
def next("skipped_roles", "select_skills"), do: {:ok, "selected_skills"}
def next("skipped_roles", "skip_skills"), do: {:ok, "selected_skills"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wrote tests that are failing here, due to expecting a "skip_skills" transition to return a "skipped_skills". Basically, I assumed this was an oversight.

If I was mistaken and we really want the same final state in all 4 cases here, that state should, in my opinion, something not-misleading, such as "onboarded".

@joshsmith joshsmith force-pushed the add-sign-up-context branch from 2a73a7e to adea6cc Compare March 27, 2017 18:01
@joshsmith joshsmith merged commit ee13cfd into develop Mar 27, 2017
@joshsmith joshsmith deleted the add-sign-up-context branch March 27, 2017 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants