Skip to content

DGS-23025 Add AssociatedNameStrategy#454

Merged
Robert Yokota (rayokota) merged 20 commits intomasterfrom
assoc-strategy
Mar 13, 2026
Merged

DGS-23025 Add AssociatedNameStrategy#454
Robert Yokota (rayokota) merged 20 commits intomasterfrom
assoc-strategy

Conversation

@rayokota
Copy link
Copy Markdown
Member

@rayokota Robert Yokota (rayokota) commented Feb 23, 2026

What

  • Add AssociatedNameStrategy, which is now the default
  • Also add RecordNameStrategy and TopicRecordNameStrategy
  • Modified SubjectNameStrategyFunc to support async implementations (returns string | Promise)
  • Add tests

Checklist

  • [Y] Contains customer facing changes? Including API/behavior changes
  • [Y] Did you add sufficient unit test and/or integration test coverage for this PR?
    • If not, please explain why it is not required

References

JIRA:

Test & Review

Open questions / Follow-ups

@rayokota Robert Yokota (rayokota) requested a review from a team as a code owner February 23, 2026 23:26
Copilot AI review requested due to automatic review settings February 23, 2026 23:26
@rayokota Robert Yokota (rayokota) requested a review from a team as a code owner February 23, 2026 23:26
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds support for AssociatedNameStrategy in the TypeScript schema registry client, which allows subject names to be determined by querying associations stored in the schema registry. The PR also adds support for RecordNameStrategy and TopicRecordNameStrategy, and makes the SubjectNameStrategyFunc type support both synchronous and asynchronous implementations.

Changes:

  • Added AssociatedNameStrategy that queries schema registry associations to determine subject names
  • Added RecordNameStrategy and TopicRecordNameStrategy for schema-based subject naming
  • Modified SubjectNameStrategyFunc to support async implementations (returns string | Promise<string>)
  • Added association-related types and API methods to the schema registry client
  • Added comprehensive test coverage for the new strategies

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
schemaregistry/serde/serde.ts Core implementation of AssociatedNameStrategy, RecordNameStrategy, TopicRecordNameStrategy, and related helper functions; modified SubjectNameStrategyFunc signature to support async
schemaregistry/serde/avro.ts Added getRecordName method to AvroSerializer and AvroDeserializer; configured subject name strategy in constructors
schemaregistry/serde/json.ts Added getRecordName method to JsonSerializer and JsonDeserializer; configured subject name strategy in constructors
schemaregistry/serde/protobuf.ts Added getRecordName method to ProtobufSerializer and ProtobufDeserializer; configured subject name strategy in constructors
schemaregistry/schemaregistry-client.ts Added Association-related types, LifecyclePolicy enum, and API methods for managing associations
schemaregistry/mock-schemaregistry-client.ts Implemented association management in mock client; modified getBySubjectAndId to support empty subject lookups
schemaregistry/test/serde/avro.spec.ts Added comprehensive tests for RecordNameStrategy, TopicRecordNameStrategy, and AssociatedNameStrategy

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread schemaregistry/serde/serde.ts Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread schemaregistry/serde/serde.ts Outdated
Comment thread schemaregistry/serde/serde.ts
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread schemaregistry/schemaregistry-client.ts
Comment thread schemaregistry/mock-schemaregistry-client.ts
Comment thread schemaregistry/serde/serde.ts
Comment thread schemaregistry/serde/serde.ts Outdated
Comment thread schemaregistry/serde/serde.ts
Comment thread schemaregistry/serde/serde.ts
Comment thread schemaregistry/serde/serde.ts
Comment thread schemaregistry/serde/serde.ts
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread schemaregistry/serde/serde.ts Outdated
Comment thread schemaregistry/test/serde/avro.spec.ts
Comment thread schemaregistry/serde/serde.ts Outdated
Comment thread schemaregistry/serde/serde.ts
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread schemaregistry/serde/serde.ts
Comment thread schemaregistry/schemaregistry-client.ts
@sonarqube-confluent
Copy link
Copy Markdown

Quality Gate failed Quality Gate failed

Failed conditions
58.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@rayokota Robert Yokota (rayokota) merged commit 232fc36 into master Mar 13, 2026
2 of 3 checks passed
@rayokota Robert Yokota (rayokota) deleted the assoc-strategy branch March 13, 2026 15:38
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