-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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? |
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. |
3c8f693
to
c8f0087
Compare
c8f0087
to
56c77f9
Compare
No description provided.