Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Prevent invalid state changes #26

Open
oreoshake opened this issue Sep 29, 2017 · 0 comments
Open

Prevent invalid state changes #26

oreoshake opened this issue Sep 29, 2017 · 0 comments

Comments

@oreoshake
Copy link
Owner

The API doesn't like invalid state changes or even state changes to the current state. This can lead to confusing 400 errors.

For the case where you're doing a state change to the current state, we could raise an error in the client.

For the other cases, we'd probably need to map out the valid transitions and check this prior to making a call.

/cc @brentjo @gregose

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant