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

Initial Stately schema, generated code, and usage in GlobalSettings #221

Merged
merged 9 commits into from
Sep 3, 2024

Conversation

bhollis
Copy link
Contributor

@bhollis bhollis commented Aug 30, 2024

This is step 1 in adopting StatelyDB as a replacement for Postgres. StatelyDB is a new document database I've been building.

For now, StatelyDB is in private preview, so folks can't self-service set up a store or use the console, but I can manually add contributors if anyone is interested.

This PR does a few things:

  1. Creates a StatelyDB schema representing all of our existing data types.
  2. Generates a TypeScript client with typed objects from schema.
  3. Create a client bound to our store (i.e. database), which I have already created out of band.
  4. Update our Kubernetes config to pass the STATELY_CLIENT_ID and STATELY_CLIENT_SECRET auth parameters as environment variables. I've already installed these in the cluster out of band.
  5. Update the platform_info route to attempt to load GlobalSettings from StatelyDB, before falling back to Postgres. This should prevent any disruption if there is a problem while making the switch. This is the only runtime interaction with StatelyDB at this point.

@bhollis
Copy link
Contributor Author

bhollis commented Sep 2, 2024

OK, perfect. I'm currently at the point where I need to set up a test store and point the tests at that.

@bhollis bhollis merged commit 84b65b9 into master Sep 3, 2024
1 check passed
@bhollis bhollis deleted the stately branch September 3, 2024 19:36
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.

1 participant