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

Migration to add invite confirmed field. #21

Merged
merged 1 commit into from
Jun 23, 2018

Conversation

rahulgi
Copy link
Member

@rahulgi rahulgi commented Jun 22, 2018

No description provided.

@rahulgi rahulgi requested review from tinaroh, osdiab and markulrich June 22, 2018 21:42
Copy link
Member

@osdiab osdiab left a comment

Choose a reason for hiding this comment

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

A couple questions before approving

inviteOps.length
);
continue;
} else if (inviteOps.length > 1) {
Copy link
Member

Choose a reason for hiding this comment

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

Are we just skipping these? why?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, these inviteOps checks were just to see if anybody had requested an invite multiple times. Nobody has, so I can just remove this block altogether.

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, jk, I can't remove it since the "RAHA" user has never requested an invite and should be skipped for now. No one's requested multiple invites though.

invite_confirmed: true
});
} else if (requestInviteFromMemberId !== inviteOpData.to_uid) {
console.log(
Copy link
Member

Choose a reason for hiding this comment

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

Does this happen? what do we do with those?

Copy link
Member Author

Choose a reason for hiding this comment

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

It did.. I fixed them manually since they were all clearly errors from our more manual days.

@osdiab
Copy link
Member

osdiab commented Jun 22, 2018

Also does this mean that we are now keeping track of both trust operations and invite_confirmed field? How do we ensure they're consistent with one another?

@rahulgi
Copy link
Member Author

rahulgi commented Jun 22, 2018

The recently landed change to api (rahafoundation/raha-api#49) ensures that the members collection stays up to date after this migration. That PR is generally with the goal of moving closer to a world where we can rely on the members collection to reflect the current state of the world and no longer have to re-create it each time we load the app.

@rahulgi rahulgi force-pushed the rg-migration-add-is-invite-confirmed-field branch from 3c8f693 to c8f0087 Compare June 22, 2018 23:50
@rahulgi rahulgi changed the base branch from rg-migration-standardize-request-invite-from-uid-fieldname to master June 22, 2018 23:52
@rahulgi rahulgi force-pushed the rg-migration-add-is-invite-confirmed-field branch from c8f0087 to 56c77f9 Compare June 22, 2018 23:54
@rahulgi rahulgi requested a review from osdiab June 23, 2018 00:01
@rahulgi rahulgi merged commit cc1e3d6 into master Jun 23, 2018
@rahulgi rahulgi deleted the rg-migration-add-is-invite-confirmed-field branch June 23, 2018 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants