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: Invites: Redirect to /posts/%site% #1185

Closed
wants to merge 1 commit into from

Conversation

lezama
Copy link
Contributor

@lezama lezama commented Dec 2, 2015

Fixes #1148

cc @ebinnion @roccotripaldi for an early review

@lezama lezama added [Type] Bug When a feature is broken and / or not performing as intended [Status] In Progress People Management labels Dec 2, 2015
@lezama lezama added this to the People Management: m6 milestone Dec 2, 2015
@lezama lezama self-assigned this Dec 2, 2015
acceptInvite() {
const { invite } = this.props;
acceptInvite( invite, () => {
page( this.props.redirectTo );
Copy link
Contributor

Choose a reason for hiding this comment

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

It doesn't look like we're doing any error handling here. I understand it's probably more edge case to handle errors here (since we validate an invite before showing the user this UI), but it is possible that a user is mobile and lost connection or somehow opened another tab and took an action which invalidated an invite.

In this case, we shouldn't redirect the user and tell him/her that it was successful.

@ebinnion
Copy link
Contributor

ebinnion commented Dec 2, 2015

I left a comment about error handling. In my testing, I am still getting redirected to /posts after accepting an invite while logged in.

@@ -21,6 +22,14 @@ export default React.createClass( {

displayName: 'InviteAcceptLoggedIn',

acceptInvite() {
Copy link
Member

Choose a reason for hiding this comment

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

perhaps change this method name to simply accept
seeing acceptInvite written so close together feels a little confusing.

@lezama
Copy link
Contributor Author

lezama commented Dec 4, 2015

Closing this in favour of #1261

@lezama lezama closed this Dec 4, 2015
@lezama lezama deleted the fix/invites-redirect-posts-specific-site branch December 4, 2015 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
People Management [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants