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

Fix a team membership migration bug #16

Merged
merged 3 commits into from
Sep 12, 2023
Merged

Conversation

stnguyen90
Copy link
Contributor

@stnguyen90 stnguyen90 commented Sep 8, 2023

The create team membership API fails if an invalid email, phone, or name are supplied. We can get rid of all of those params because the we can look up the user by user id and user id should always be available.

image

Related issue:

@stnguyen90 stnguyen90 linked an issue Sep 8, 2023 that may be closed by this pull request
2 tasks
The create team membership API fails if an invalid email, phone, or
name are supplied. We can get rid of all of those params because the
we can look up the user by user id and user id should always be
available.

In addition, the create team membership API will fail if an empty string
is passed for the url. We have to use the latest SDK where we can omit
the url param.
@stnguyen90 stnguyen90 force-pushed the fix-create-team-membership branch from 1f13bef to 77049ab Compare September 8, 2023 02:05
@stnguyen90 stnguyen90 linked an issue Sep 8, 2023 that may be closed by this pull request
2 tasks
Copy link
Member

@PineappleIOnic PineappleIOnic left a comment

Choose a reason for hiding this comment

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

Lgtm

composer.json Outdated Show resolved Hide resolved
src/Migration/Sources/Appwrite.php Outdated Show resolved Hide resolved
@stnguyen90 stnguyen90 force-pushed the fix-create-team-membership branch from 77049ab to 7189b2e Compare September 8, 2023 16:52
@stnguyen90 stnguyen90 requested a review from abnegate September 8, 2023 16:52
Using asterisks is easier to understand thant remembering what ^
and ~ mean.
@stnguyen90 stnguyen90 force-pushed the fix-create-team-membership branch from 7189b2e to 60db4c3 Compare September 8, 2023 16:53
@abnegate abnegate merged commit 3f6e6df into main Sep 12, 2023
@stnguyen90 stnguyen90 deleted the fix-create-team-membership branch October 18, 2024 00:32
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.

Ensure team memberships are migrated
3 participants