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 for the orgs #73

Merged
merged 2 commits into from
May 23, 2024
Merged

Fix for the orgs #73

merged 2 commits into from
May 23, 2024

Conversation

yashsinghcodes
Copy link
Member

@yashsinghcodes yashsinghcodes commented May 21, 2024

Now I have made it simple and it follows:

get all workflow -> check if there is any workflow with org that do not exist -> if does recreate that org -> add user to that org -> get all the orgs in user check if they even exists -> if not recreate that org -> add user to that org -> check if user still has no orgs(len(user.Orgs) == 0) just create a default one (after every correction).

I have tested the code locally and it seems to fix the issue I once had even If I remove the part where default org is created at the time of registration it still seems to handle the case perfectly.

@frikky frikky merged commit 6e42578 into Shuffle:main May 23, 2024
2 of 3 checks passed
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.

None yet

2 participants