Skip to content

Conversation

@bsorbo
Copy link
Collaborator

@bsorbo bsorbo commented Jun 24, 2025

This PR adds a new warn_on_unregistered_query_for_clients configuration option to the query registry that provides a migration path for clients to move to actually enforcing registration for their queries. With this setting, unregistered queries will continue to execute, but a warning message will be emitted for later inspection.

How tested?

  • Added/ran unit tests
  • Clean CI build across the project.

@CLAassistant
Copy link

CLAassistant commented Jun 24, 2025

CLA assistant check
All committers have signed the CLA.

@bsorbo bsorbo force-pushed the bsorbo/query-registry-warning-mode branch 2 times, most recently from d58ed8a to e88ba46 Compare June 24, 2025 20:26
This adds a new configuration option 'warn_on_unregistered_query_for_clients'
that allows unregistered queries to execute while logging warnings. This
provides a gradual migration path for teams adopting the query registry.

Key changes:
- Add warn_on_unregistered_query_for_clients config option
- Log warnings for unregistered queries from specified clients
- Queries execute normally (no errors) when in warning mode
- Warnings logged even for clients in allow_any_query_for_clients
- Updated RBS type signatures and comprehensive tests
- Backward compatible - existing configurations unchanged

This enables teams to:
- Monitor query usage patterns before enforcing registration
- Gradually migrate clients to use registered queries
- Maintain visibility during the transition period
@bsorbo bsorbo force-pushed the bsorbo/query-registry-warning-mode branch from e88ba46 to 3bc42d2 Compare June 24, 2025 20:48
@bsorbo bsorbo changed the title WIP: Add warning option for Query Registry clients Add warning option for Query Registry clients Jun 24, 2025
@myronmarston
Copy link
Collaborator

Superseded by #631.

@myronmarston myronmarston deleted the bsorbo/query-registry-warning-mode branch November 8, 2025 15:50
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.

4 participants