Skip to content

Add graphql backend#528

Merged
conradoverta merged 10 commits intomasterfrom
cm/graphql
Apr 21, 2020
Merged

Add graphql backend#528
conradoverta merged 10 commits intomasterfrom
cm/graphql

Conversation

@conradoverta
Copy link
Copy Markdown
Contributor

Screenshot 2020-04-15 19 33 57

@ravishetye please review the build part and integration with our setup. I have verified with docker compose locally as per screenshot above.

Copy link
Copy Markdown

@ravishetye ravishetye left a comment

Choose a reason for hiding this comment

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

makes sense to me , added questions for my clarification.

@@ -0,0 +1,4 @@
1) Re-run "go run github.com/99designs/gqlgen" when you update the schema.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

would it possible to document the structure of the folder, when would one end up updating which file?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ack

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -0,0 +1,5 @@
1) Get the generator `go get github.com/vektah/dataloaden`
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

dataloader caches the data, or just batches and optimizes the calls to backend/uac?
we only do it for uac because we anticipate only those calls to have the volume which makes sense to batch?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just batches and optimizes if the same call happens over and over, like what happens on collaborators (teams and users).

We don't cache anything between calls as permissions and state might have changed. Caching is a nightmare.

@@ -0,0 +1,6 @@
type AllowedActions {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

are these files auto generated?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No.

@conradoverta conradoverta merged commit ff564c5 into master Apr 21, 2020
@conradoverta conradoverta deleted the cm/graphql branch April 21, 2020 03:20
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