graphql-hive icon indicating copy to clipboard operation
graphql-hive copied to clipboard

Ensure user and personal org creation after successful sign up/in

Open kamilkisiela opened this issue 3 years ago • 1 comments

Creates a special Mutation.ensureMe that can be only accessed by @hive/app. Removes the MessageBus, Redis and all that crap :)

The entire logic runs within a PG transaction and is triggered when a user sign in/up successfully. This way we do much less calls to DB. Of course there could be a situation when something fails but I think it's less error prone than current implementation, at least less complex.

  • [ ] needs to be tested on staging

Closes #491

kamilkisiela avatar Oct 20 '22 19:10 kamilkisiela

⚠️ No Changeset found

Latest commit: ffd55f279b1b3f1378bbf6f6c1fbb909b626ef02

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Oct 20 '22 19:10 changeset-bot[bot]