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] Add subject, version to metadata, remove ID #67

Merged
merged 22 commits into from
Jun 28, 2024

Conversation

hariso
Copy link
Contributor

@hariso hariso commented Jun 12, 2024

Description

While working on ConduitIO/conduit#1605, we realized that our current approach of fetching a schema by ID doesn't make it possible to return the schema name and version. Since the combination of a name and version is unique, and also makes it possible to return the schema name and version, we are replacing the ID with name+version.

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 requested a review from a team as a code owner June 12, 2024 17:11
@hariso hariso changed the base branch from main to schema-support June 12, 2024 17:12
opencdc/record.go Outdated Show resolved Hide resolved
@hariso hariso requested a review from lovromazgon June 20, 2024 12:32
schema/instance.go Show resolved Hide resolved
schema/instance.go Outdated Show resolved Hide resolved
schema/instance.go Show resolved Hide resolved
schema/record.go Outdated Show resolved Hide resolved
proto/opencdc/v1/opencdc.proto Outdated Show resolved Hide resolved
opencdc/errors.go Outdated Show resolved Hide resolved
@raulb raulb requested a review from lovromazgon June 28, 2024 13:09
@raulb raulb changed the title [Schemas] Add name, version to metadata, remove ID [Schemas] Add subject, version to metadata, remove ID Jun 28, 2024
@raulb raulb requested a review from lovromazgon June 28, 2024 15:46
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.

:shipit:

@raulb raulb changed the base branch from schema-support to main June 28, 2024 15:51
@raulb raulb changed the base branch from main to schema-support June 28, 2024 15:53
@raulb raulb merged commit e49cf7a into schema-support Jun 28, 2024
4 of 5 checks passed
@raulb raulb deleted the haris/schema-support-use-name-and-version branch June 28, 2024 15:55
raulb added a commit that referenced this pull request Jun 28, 2024
* [Schemas] Add subject, version to metadata, remove ID (#67)

* [Schemas] Add name, version to metadata, remove ID

* attach schema to record

* move function

* move function

* key and payload schema

* rename

* fix

* remove ID field

* split methods

* update type

* remove unused error

* add schema proto

* update proto

* bring key schema type back

* refactor instance in favor of schema type

* better naming

* use subject and version on metadata

* update comments

* fix

* update proto

* fix comment

---------

Co-authored-by: Raúl Barroso <ra.barroso@gmail.com>

* fix message ids

---------

Co-authored-by: Haris Osmanagić <haris@meroxa.io>
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