Skip to content

Group creation has delay and allows duplicates#50

Open
rolivares93 wants to merge 2 commits intomainfrom
bug-818/group-creation-delay-and-duplicates
Open

Group creation has delay and allows duplicates#50
rolivares93 wants to merge 2 commits intomainfrom
bug-818/group-creation-delay-and-duplicates

Conversation

@rolivares93
Copy link
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
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
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
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 rolivares93 requested a review from asengupta3 March 17, 2026 14:05
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