Skip to content

Group creation has delay and allows duplicates#50

Merged
asengupta3 merged 3 commits intomainfrom
bug-818/group-creation-delay-and-duplicates
Mar 31, 2026
Merged

Group creation has delay and allows duplicates#50
asengupta3 merged 3 commits intomainfrom
bug-818/group-creation-delay-and-duplicates

Conversation

@rolivares93
Copy link
Copy Markdown
Contributor

Proposed changes

I updated the upsertOrg function to check for existing orgs before creating them.

Ticket#818

Types of changes

What types of changes does this pull request introduce?

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that does not add functionality but makes code cleaner or more efficient)
  • Tests (new or updated tests)
  • Styles (changes to code styling)
  • CI (continuous integration changes)
  • Other (please describe below)

Additional Notes

.limit(1)
.get();

if (!existing.empty) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe move this out of the upsert-org function. That way it is a little cleaner to read?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think this function can be written in a more human readable way. Right now it is so hard to read :) But that can be a followup PR.

@asengupta3
Copy link
Copy Markdown
Collaborator

@rolivares93 I think the changes look good but just for the sake of following the process, we should merge in main, deploy the latest functions to preview and test the front end against preview to make sure everything works.

@rolivares93 rolivares93 self-assigned this Mar 16, 2026
@rolivares93
Copy link
Copy Markdown
Contributor Author

@asengupta3 could you approve this so we can merge it and test it?

Copy link
Copy Markdown
Collaborator

@asengupta3 asengupta3 left a comment

Choose a reason for hiding this comment

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

LGTM.

@asengupta3 asengupta3 merged commit 3688b8a into main Mar 31, 2026
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