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

chore: remove the bff-sdk directory & add the command gql-sdk-upgrade to the Makefile #291

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

dayuy
Copy link
Contributor

@dayuy dayuy commented Nov 26, 2023

What type of PR is this?

/kind cleanup
/kind flake

What this PR does / why we need it

remove the bff-sdk directory & add the command gql-sdk-upgrade to the Makefile. automatically upgrade the SDK version.

Which issue(s) this PR fixes

Fixes #

Special notes for your reviewer

Makefile Outdated
@@ -254,6 +254,10 @@ gql-gen:
build-graphql-server: gql-gen
@CGO_ENABLED=0 GOOS=linux go build -o bin/graphql-server graphql-server/go-server/main.go

# sdk for graphql-server api
gql-sdk-upgrade:
docker run -v $(shell pwd)/graphql-server/go-server/graph/schema:/schema 172.22.96.34/dev-branch/arcadia-bff-sdk:main
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps we should push the image 172.22.96.34/dev-branch/arcadia-bff-sdk:main to dockerhub. @bjwswang @Abirdcfly

Copy link
Collaborator

Choose a reason for hiding this comment

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

Taking it a step further, should we make the make gql-sdk-upgrade command auto-triggered to automatically run in github action as soon as some files change?

Copy link
Collaborator

Choose a reason for hiding this comment

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

1st. Never tag/use image with a internal image registry. Cause we are opensourced project!
2nd. yes. Make this a github action and triggered automatically. The generated sdk should be published to a publish npm registry.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. Using the image kubebb/gql-sdk-generator:main
  2. Put the Github action on my to do list, I need to learn how to write the workflow.

@dayuy
Copy link
Contributor Author

dayuy commented Nov 28, 2023

Usage:

If you have made changes to any *.gql files, you need to follow the steps below before pushing the commit.

  1. make gql-sdk-generator
  2. check whether the SDK has been published successfully

@bjwswang bjwswang merged commit 935795b into kubeagi:main Nov 28, 2023
8 checks passed
nkwangleiGIT pushed a commit to nkwangleiGIT/arcadia that referenced this pull request Dec 1, 2023
chore: remove the bff-sdk directory & add the command gql-sdk-upgrade to the Makefile
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.

4 participants