Skip to content

defaultToGlobal available in SRClient#4148

Open
Gremi64 (gremi64) wants to merge 6 commits intoconfluentinc:masterfrom
gremi64:master
Open

defaultToGlobal available in SRClient#4148
Gremi64 (gremi64) wants to merge 6 commits intoconfluentinc:masterfrom
gremi64:master

Conversation

@gremi64
Copy link
Copy Markdown

What

You can now use the "defaultToGlobal" parameter from the "SchemaRegistryClient.getCompatibility".
I implemented it in the "CachedSchemaRegistryClient".

Checklist

Please answer the questions with Y, N or N/A if not applicable.

  • [N] Contains customer facing changes? Including API/behavior changes
  • [N] Is this change gated behind config(s)?
  • [N] Did you add sufficient unit test and/or integration test coverage for this PR?
    • There was no test for the "getCompatibility", but this PR just allow user to use something already approved in the "RestService".
  • [N] Does this change require modifying existing system tests or adding new system tests?
    • If so, include tracking information for the system test changes
  • [N] Must this be released together with other change(s), either in this repo or another one?
    • If so, please include the link(s) to the changes that must be released together

References

JIRA:
As asked in this Issue : #2053 (comment)

Test & Review

Open questions / Follow-ups

Should i implement it in the "MockSchemaRegistryClient" too ? I can't figure what it should do... as it is a mock...

@gremi64 Gremi64 (gremi64) requested a review from a team as a code owner February 18, 2026 17:31
@confluent-cla-assistant
Copy link
Copy Markdown

confluent-cla-assistant bot commented Feb 18, 2026

🎉 All Contributor License Agreements have been signed. Ready to merge.
✅ gremi64
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

@rayokota
Copy link
Copy Markdown
Member

/sem-approve

Copy link
Copy Markdown
Member

@rayokota Robert Yokota (rayokota) left a comment

Choose a reason for hiding this comment

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

Thanks Gremi64 (@gremi64) , left some comments

}

@Override
public Config getConfig(String subject, boolean defaultToGlobal) throws IOException, RestClientException {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Line is too long, try adding a newline before String subject

return getConfig(subject).getCompatibilityLevel();
}

default String getCompatibility(String subject, boolean defaultToGlobal) throws IOException, RestClientException {
Copy link
Copy Markdown
Member

@rayokota Robert Yokota (rayokota) Apr 1, 2026

Choose a reason for hiding this comment

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

Line is too long, try adding a newline before String subject

throw new UnsupportedOperationException();
}

default Config getConfig(String subject, boolean defaultToGlobal) throws IOException, RestClientException {
Copy link
Copy Markdown
Member

@rayokota Robert Yokota (rayokota) Apr 1, 2026

Choose a reason for hiding this comment

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

Line is too long, try adding a newline before String subject

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