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

DPLT-1084 Add Hasura CLI config #167

Merged
merged 3 commits into from Aug 7, 2023
Merged

Conversation

morgsmccauley
Copy link
Collaborator

@morgsmccauley morgsmccauley commented Aug 7, 2023

This PR adds the initial Hasura setup as config so that it can by deployed reproducibly when setting up new instances.

Typically, this config would be the source of truth for our Hasura instances, and tied to some CI pipeline to deploy it. But, this isn't feasible in our case since our config is dynamic (new indexers modify the metadata). For now, this config can be used for new instances of Hasura to ensure we have the desired initial setup.

To use this config, you'll need to have the Hasura CLI installed and cd in to the hasura/ directory. There are two main pieces to this config:

  • metadata - defines what databases exists, which tables are tracked, and their associated permissions
  • migration - defines the DB schema, and its evolution

It's a bit weird that we have both the hasura/ and hasura-authentication-service directories, I might end up moving auth under hasura/ in a future PR.

@morgsmccauley morgsmccauley requested a review from a team as a code owner August 7, 2023 02:12
@morgsmccauley morgsmccauley merged commit 6218297 into main Aug 7, 2023
@morgsmccauley morgsmccauley deleted the DPLT-1084-hasura-config branch August 7, 2023 21:57
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