Skip to content

Commit

Permalink
fix(mgmt,billing): refactor mgmt message, endpoints and add billing s…
Browse files Browse the repository at this point in the history
…ervice (#130)

Because

- list, create, update, delete and lookup user operations should be admin API that is not exposed to the public internet

This commit

- add billing service so each user is assigned with a billing plan
- redesign mgmt-backend endpoints into Admin and Public APIs
- update the message user fields

Co-authored-by: Ping-Lin Chang <[email protected]>
  • Loading branch information
xiaofei-du and pinglin authored Jan 23, 2023
1 parent b25122d commit 366c0f8
Show file tree
Hide file tree
Showing 9 changed files with 6,441 additions and 5,381 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/buf-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Check buf

on:
pull_request:
paths:
- instill/**
- buf.*

jobs:
check-buf:
Expand All @@ -15,5 +12,4 @@ jobs:
- uses: bufbuild/buf-lint-action@v1
- uses: bufbuild/buf-breaking-action@v1
with:
# The 'main' branch of the GitHub repository that defines the module.
against: 'https://github.com/${GITHUB_REPOSITORY}.git#branch=main'
against: "https://github.com/instill-ai/protobufs.git#branch=main,ref=HEAD~1"
10 changes: 5 additions & 5 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ managed:
- buf.build/googleapis/googleapis
- buf.build/grpc-ecosystem/grpc-gateway
plugins:
- remote: buf.build/protocolbuffers/plugins/python:v3.19.3-1
- remote: buf.build/protocolbuffers/plugins/python:v21.10.0-1
out: gen/python
- remote: buf.build/grpc/plugins/python:v1.45.0-1
- remote: buf.build/grpc/plugins/python:v1.51.1-1
out: gen/python
- remote: buf.build/library/plugins/go:v1.27.1-1
out: gen/go
Expand All @@ -20,19 +20,19 @@ plugins:
opt:
- paths=source_relative
- require_unimplemented_servers=false
- remote: buf.build/grpc-ecosystem/plugins/grpc-gateway:v2.10.3-1
- remote: buf.build/grpc-ecosystem/plugins/grpc-gateway:v2.15.0-1
out: gen/go
opt:
- paths=source_relative
- generate_unbound_methods=true
- remote: buf.build/grpc-ecosystem/plugins/openapiv2:v2.10.3-1
- remote: buf.build/grpc-ecosystem/plugins/openapiv2:v2.15.0-1
out: gen/openapiv2
opt:
- output_format=yaml
- json_names_for_fields=false
- allow_merge=true,merge_file_name=gen/openapiv2
- version=true
- remote: buf.build/sawadashota/plugins/protoc-gen-doc:v1.5.0
- remote: buf.build/sawadashota/plugins/protoc-gen-doc:v1.5.1
out: gen/grpc-doc
opt:
- markdown,README.md,source_relative
4 changes: 2 additions & 2 deletions buf.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ deps:
- remote: buf.build
owner: googleapis
repository: googleapis
commit: 8d7204855ec14631a499bd7393ce1970
commit: 75b4300737fb4efca0831636be94e517
- remote: buf.build
owner: grpc-ecosystem
repository: grpc-gateway
commit: bc28b723cd774c32b6fbc77621518765
commit: a1ecdc58eccd49aa8bea2a7a9022dc27
Loading

0 comments on commit 366c0f8

Please sign in to comment.