Skip to content
This repository was archived by the owner on Feb 14, 2019. It is now read-only.

Conversation

@CityVibes
Copy link
Contributor

Adding organization endpoints back with deprecation message on use.

@CityVibes CityVibes self-assigned this Apr 21, 2017
@CityVibes CityVibes requested a review from idokleinman April 21, 2017 18:22
Copy link
Contributor

@idokleinman idokleinman left a comment

Choose a reason for hiding this comment

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

I am thinking lib should check - if organization=true and productMode=false - if so then error out and crash the app. Also if product is true and productId not set (0)... Is there a graceful way to do it in Android?

if (!all(signUpInfo.getUsername(), signUpInfo.getPassword(), productId)) {
throw new IllegalArgumentException(
"Email, password, and organization must all be specified");
"Email, password, and product slug must all be specified");
Copy link
Contributor

Choose a reason for hiding this comment

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

product Id not slug

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, changed that now.

@CityVibes
Copy link
Contributor Author

Both organization=true and productMode=false would be in setup library, so I'll check if there's graceful way to crash once I update it. Initially I'd say it's possible as we're obviously accessing those fields during setup.

@CityVibes CityVibes merged commit 8baa367 into master Apr 24, 2017
@CityVibes CityVibes deleted the prod_fixes branch April 24, 2017 21:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants