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

People: Remove normalization of successful invite validations #3540

Merged
merged 1 commit into from
Feb 24, 2016

Conversation

ebinnion
Copy link
Contributor

Alternative to #3293

Previously, the API returned either an array or an object of successful invite validations. Now that the API has been updated to always return an array for successful validations in r131590-wpcom, we can remove this normalization in Calypso.

To test:

  • Checkout update/people-invite-create-validate-normalizze branch
  • Go to /people/new/$site
  • Attempt to add usernames or email addresses
  • Ensure that nothing is broken :)
  • To test if validation works properly, you can test that tokens get a status by entering localStorage.setItem( 'debug', 'calypso:my-sites:people:invites' ); in the console

cc @lezama for review since he worked on the initial normalization and has a better handle on the issues.

Previously, the API returned either an array or an object of successful invite validations. Now that the API has been updated to always return an array for successful validations in r131590-wpcom, we can remove this normalization in Calypso.
@ebinnion ebinnion added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. People Management labels Feb 24, 2016
@ebinnion ebinnion self-assigned this Feb 24, 2016
@ebinnion ebinnion added this to the People Management: m7 milestone Feb 24, 2016
@lezama lezama 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 Feb 24, 2016
ebinnion added a commit that referenced this pull request Feb 24, 2016
…ove-success-normalize

People: Remove normalization of successful invite validations
@ebinnion ebinnion merged commit 1f4bb5e into master Feb 24, 2016
@ebinnion ebinnion deleted the update/invite-validation-remove-success-normalize branch February 24, 2016 20:01
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