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

Domains: better error handling for initial domains suggestion search #5222

Merged
merged 1 commit into from
May 9, 2016

Conversation

gwwar
Copy link
Contributor

@gwwar gwwar commented May 4, 2016

This PR adds better error handling when we cannot find any default domain suggestions. We normally shouldn't hit this case, but we may see this when we encounter timeouts on WWD.

Before:
screen shot 2016-05-04 at 12 17 15 pm

After:
screen shot 2016-05-04 at 2 26 10 pm

cc @umurkontaci @rralian @aidvu

@gwwar gwwar self-assigned this May 4, 2016
@gwwar gwwar added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Feature Group] Emails & Domains Features related to email integrations and domain management. labels May 4, 2016
@gwwar gwwar added this to the Plans: Iteration 2 milestone May 4, 2016
@retrofox
Copy link
Contributor

retrofox commented May 5, 2016

I could't reproduce an error but not in this line.

image

image

I did it in line 312. BTW the error handling here is very similar to the changes in this PR.

@umurkontaci
Copy link
Contributor

Just a note, we need test this in singup flow and while the domain registrations are disabled as well.

@aidvu
Copy link
Contributor

aidvu commented May 6, 2016

The error is for default suggestions. Just return WP_Error from the endpoint. I'll test it tomorrow if you don't have time.

@aidvu aidvu added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels May 8, 2016
@aidvu
Copy link
Contributor

aidvu commented May 8, 2016

LGTM

Before fix:
before fix

After fix:
after fix

@gwwar gwwar merged commit b8af351 into master May 9, 2016
@gwwar gwwar deleted the fix/initial-domain-suggestions-error-handling branch May 9, 2016 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature Group] Emails & Domains Features related to email integrations and domain management.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants