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

feat(database,grpc-sdk)!: compiled schema fields as gRPC schema type fields #313

Merged
merged 2 commits into from
Sep 5, 2022

Conversation

kon14
Copy link
Contributor

@kon14 kon14 commented Sep 5, 2022

This PR makes it so that all Database gRPC schema type responses return the compiled schema fields (base fields + extension fields) in fields.
I'm converting these schema types in a util atm, but once the schema types are finally properly typed we could make this a schema class method or getter instead.

I also cleaned up db proto types around schema extensions and whatnot.

Fixed an outdated schema fields field name reference in a publishSchema() call.
Fixed a bug introduced earlier today (8d5471b8) that resulted in schema stitching taking place before extension merging in gRPC schema recreation.

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other (please describe)

Does this PR introduce a breaking change?

  • Yes
  • No

Cleaned up the Database's proto file.
This should only affect custom microservices.
Simply upgrading to the latest version of grpc-sdk should suffice.

The PR fulfills these requirements:

  • It's submitted to the main branch
  • When resolving a specific issue, it's referenced in the PR's description (e.g. fix #xxx, where "xxx" is the issue number)

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature

Other information:

fix(database): publishSchema bus call using wrong fields field name
refactor(database,grpc-sdk)!: clean up schema extension gRPC types

BREAKING CHANGE:
Database protofile update.
Custom microservices should simply upgrade to their grpc-sdk.
Fixes a bug introduced earlier today (8d5471b) where schema stitching
would take place too early for gRPC scheam creation requests.
@kkopanidis kkopanidis merged commit da5b18a into main Sep 5, 2022
@kkopanidis kkopanidis deleted the db-grpc-extensions branch September 5, 2022 15:08
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