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

[Schemas] Connector SDK: Create and get a schema from Conduit #96

Merged
merged 40 commits into from
Jul 2, 2024

Conversation

hariso
Copy link
Contributor

@hariso hariso commented May 31, 2024

Description

Part of ConduitIO/conduit-connector-sdk#132.

Changes in this PR:

  • Adds a gRPC client for the schema service.
  • Adds an in-memory schema service (used in testing)
  • Renames schema's name field to subject.

Depends on ConduitIO/conduit-commons#67.

Quick checks:

  • I have followed the Code Guidelines.
  • There is no other pull request for the same update/change.
  • I have written unit tests.
  • I have made sure that the PR is of reasonable size and can be easily reviewed.

@hariso hariso force-pushed the haris/schema-support-connector-sdk branch from 53ca741 to c042fc0 Compare May 31, 2024 16:37
go.mod Outdated Show resolved Hide resolved
@hariso hariso marked this pull request as ready for review June 10, 2024 13:42
@hariso hariso requested a review from a team as a code owner June 10, 2024 13:42
@hariso hariso changed the title [Schemas] Connector SDK: Create and get a schema from Conduit [Schemas] Connector SDK: Create and get a schema from Conduit Jun 13, 2024
Copy link
Member

@raulb raulb left a comment

Choose a reason for hiding this comment

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

@hariso LGTM

proto/conduit/v1/schema.proto Outdated Show resolved Hide resolved
conduit/schema/client/client.go Outdated Show resolved Hide resolved
@hariso hariso requested review from lovromazgon and raulb June 24, 2024 17:50
conduit/pschema/v1/fromproto/schema.go Outdated Show resolved Hide resolved
conduit/pschema/schema.go Outdated Show resolved Hide resolved
conduit/pschema/v1/grpc_client.go Outdated Show resolved Hide resolved
conduit/pschema/v1/grpc_client.go Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
conduit/pschema/in_memory.go Outdated Show resolved Hide resolved
@raulb raulb requested a review from lovromazgon July 2, 2024 15:21
Copy link
Member

@lovromazgon lovromazgon left a comment

Choose a reason for hiding this comment

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

Good work @raulb, this already looks good. I'd still move some stuff around to make it just right 👌

pconduit/v1/grpc_client.go Outdated Show resolved Hide resolved
pconduit/v1/grpc_client.go Outdated Show resolved Hide resolved
pconduit/in_memory.go Outdated Show resolved Hide resolved
pconduit/doc.go Outdated Show resolved Hide resolved
internal/errors.go Outdated Show resolved Hide resolved
* revert upgraded dependencies

* make linter rules more strict, fix warnings

* remove in memory service and doc.go

* move internal/errors.go to pconnector, create separate package in pconduit, add tests in pconduit toproto/fromproto

* rename cplugin.go to pconnector.go
@raulb raulb merged commit 5221e54 into schema-support Jul 2, 2024
4 of 5 checks passed
@raulb raulb deleted the haris/schema-support-connector-sdk branch July 2, 2024 18:36
@lovromazgon lovromazgon mentioned this pull request Jul 3, 2024
4 tasks
lovromazgon added a commit that referenced this pull request Jul 3, 2024
* [Schemas] Schema service definition, conversion functions (#88)

* update commons

* [Schemas] Connector SDK: Create and get a schema from Conduit (#96)

* [Schemas] Connector SDK: Create and get a schema from Conduit

* remove replace

* change port

* add mocks

* Get by name and version

* update commons

* add tests

* a couple of tests, move around

* update commons

* move around

* update commons

* fix compilation

* update commons

* fix compilation

* update commons

* update commons

* fix

* add in memory schema service

* simplify

* comments

* rename name to subject

* rename package to pschema

* typed mock

* update commons

* go mod tidy

* update commons use schema

* update to latest commons

* simplify proto

* unwrap error and create internal/errors.go

* provide target to client

* update proto schema

* update schema type

* remove dependency

* update grpc_client

* update service schema methods

* update naming to follow convention

* refactor leftover

* Schema support proposed changes (#105)

* revert upgraded dependencies

* make linter rules more strict, fix warnings

* remove in memory service and doc.go

* move internal/errors.go to pconnector, create separate package in pconduit, add tests in pconduit toproto/fromproto

* rename cplugin.go to pconnector.go

---------

Co-authored-by: Raúl Barroso <[email protected]>
Co-authored-by: Lovro Mažgon <[email protected]>

* change how service suffix in proto files is linted

---------

Co-authored-by: Haris Osmanagić <[email protected]>
Co-authored-by: Raúl Barroso <[email protected]>
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.

3 participants