From d8463e251788f41c1d0dfab122f37647e9d72427 Mon Sep 17 00:00:00 2001 From: Adam Lehechka <42357034+alehechka@users.noreply.github.com> Date: Wed, 27 Jul 2022 08:24:38 -0500 Subject: [PATCH] Complete Code Migration --- .circleci/config.yml | 60 -------------------------------------------- .gitignore | 9 +++---- CHANGELOG.md | 12 ++++++--- README.md | 4 ++- 4 files changed, 15 insertions(+), 70 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 4c0b894..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,60 +0,0 @@ -version: 2 - -definitions: - workspace: &workspace - docker: - # specify the version - - image: circleci/golang:1.15 - - job_presets: &job_presets - build: - <<: *workspace - steps: - - checkout - - run: - command: | - PROTOC_ZIP=protoc-3.14.0-linux-x86_64.zip - curl -OL https://github.com/google/protobuf/releases/download/v3.14.0/$PROTOC_ZIP - sudo unzip -o $PROTOC_ZIP -d /usr/local/protoc - sudo chmod +xr -R /usr/local/protoc - sudo ln -s /usr/local/protoc/bin/protoc /usr/local/bin - sudo ln -s /usr/local/protoc/include/google /usr/local/include/google - go get -u github.com/golang/protobuf/protoc-gen-go - curl -sSfL https://github.com/golangci/golangci-lint/releases/download/v1.31.0/golangci-lint-1.31.0-linux-amd64.tar.gz | tar zx -C /tmp/ - sudo mv /tmp/golangci-lint-1.31.0-linux-amd64/golangci-lint /usr/local/bin - sudo chmod +x /usr/local/bin/golangci-lint - - run: make lint - - run: make all tag=${CIRCLE_TAG} - - persist_to_workspace: - root: . - paths: - - ./* - publish: - <<: *workspace - steps: - - attach_workspace: - at: . - - run: - command: | - sudo apt-get install jq file - sh ./misc/github-release.sh - -jobs: - <<: *job_presets - -workflows: - version: 2 - build_and_publish: - jobs: - - build: - filters: - tags: - only: /v[0-9]+(\.[0-9]+)*/ - - publish: - requires: - - build - filters: - branches: - ignore: /.*/ - tags: - only: /v[0-9]+(\.[0-9]+)*/ diff --git a/.gitignore b/.gitignore index 32f396f..ed59bfb 100644 --- a/.gitignore +++ b/.gitignore @@ -16,9 +16,6 @@ # dist/ -example/**/google -example/**/graphql -example/**/schema.graphql -example/**/github.com -example/**/app -playground + +**/graphql/app +**/grpc/app diff --git a/CHANGELOG.md b/CHANGELOG.md index c8467ea..a2fe952 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # CHANGELOG +## UNRELEASED + +- Resolve Import Issues ([#4](https://github.com/alehechka/forked-grpc-graphql-gateway/pull/4)) +- Convert module path ([#3](https://github.com/alehechka/forked-grpc-graphql-gateway/pull/3)) +- Refactor GraphqlHandler to expose host and DialOptions ([#1](https://github.com/alehechka/forked-grpc-graphql-gateway/pull/1)) +- Resolve source_relative not respecting subpath proto files ([#2](https://github.com/alehechka/forked-grpc-graphql-gateway/pull/2)) + ## v0.22.0 - support parths=source_relative option [#51](https://github.com/ysugimoto/grpc-graphql-gateway/pull/51) @@ -138,7 +145,7 @@ Then typename is `User_Type_User`. ### Convert field name to CamelCase option -In protocol buffers, all message field name should define as *lower_snake_case* referred by [Style Guide](https://developers.google.com/protocol-buffers/docs/style#message_and_field_names). But in GraphQL Schema, typically each field name should define as *lowerCamelCase*, so we add more option in `protoc-gen-graphql`: +In protocol buffers, all message field name should define as _lower_snake_case_ referred by [Style Guide](https://developers.google.com/protocol-buffers/docs/style#message_and_field_names). But in GraphQL Schema, typically each field name should define as _lowerCamelCase_, so we add more option in `protoc-gen-graphql`: ```shell protoc -I. @@ -163,7 +170,7 @@ type User_Type_User { } ``` -To keep backward compatibility, compile as *lower_snake_case* as default. If you want to define any graphql field as lowerCamelCase, please supply this option. +To keep backward compatibility, compile as _lower_snake_case_ as default. If you want to define any graphql field as lowerCamelCase, please supply this option. ## v0.12.0 @@ -196,7 +203,6 @@ If middleware returns `MiddlewareError`, the runtime error will be: {"data": null, "errors": [{"message": "Message field value of MiddlewareError", "extensions": {"code": "Code field value of MiddlewareError"}]} ``` - ## v0.9.1 ### Changed middleware fucntion type diff --git a/README.md b/README.md index 45ff87c..702dd5d 100644 --- a/README.md +++ b/README.md @@ -255,7 +255,9 @@ Currently we don't support some Protobuf types: ## Author -Yoshiaki Sugimoto +Original Author - [Yoshiaki Sugimoto](https://github.com/ysugimoto/grpc-graphql-gateway) + +Due to personal requirements and certain breaking changes, this repository has been migrated into new one. Full credits for the basis of the code go to [@ysugimoto](https://github.com/ysugimoto) ## License