Skip to content

Add enableAt to RuleSet#470

Merged
Robert Yokota (rayokota) merged 2 commits intomasterfrom
enable-at
Mar 20, 2026
Merged

Add enableAt to RuleSet#470
Robert Yokota (rayokota) merged 2 commits intomasterfrom
enable-at

Conversation

@rayokota
Copy link
Copy Markdown
Member

@rayokota Robert Yokota (rayokota) commented Mar 13, 2026

Add enableAt to RuleSet. Also update CHANGELOG

What

Checklist

  • Contains customer facing changes? Including API/behavior changes
  • 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

Copilot AI review requested due to automatic review settings March 13, 2026 23:10
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 PR introduces an enableAt field on RuleSet and uses it in the Serde rule-execution path to conditionally disable rule execution based on the configured environment.

Changes:

  • Add enableAt?: string to the RuleSet interface.
  • Plumb enableAt through executeRulesWithPhase into RuleContext.
  • Update rule disabling logic to skip rules unless enableAt is unset/ALL/CLIENT.

Reviewed changes

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

File Description
schemaregistry/serde/serde.ts Reads RuleSet.enableAt, propagates it via RuleContext, and gates rule execution in isDisabled.
schemaregistry/schemaregistry-client.ts Extends the public RuleSet type to include the new enableAt property.

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

You can also share your feedback on Copilot code review. Take the survey.

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

@rayokota Robert Yokota (rayokota) merged commit 7252386 into master Mar 20, 2026
3 checks passed
@rayokota Robert Yokota (rayokota) deleted the enable-at branch March 20, 2026 16:28
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