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

Add public accessors to query condition data #198

Merged
merged 2 commits into from
Feb 13, 2025
Merged

Add public accessors to query condition data #198

merged 2 commits into from
Feb 13, 2025

Conversation

rroelke
Copy link
Member

@rroelke rroelke commented Feb 13, 2025

While writing tests for SC-51070 I stumbled into the in-capability of checking what the values inside a query condition expression actually are using a pub API.

This pull request changes the in-capability to a capability.

@rroelke rroelke requested a review from davisp February 13, 2025 00:32
Copy link
Collaborator

@davisp davisp left a comment

Choose a reason for hiding this comment

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

Only question is that conditional Debug trait but that's more of a "What am I missing?" sort of question.

@@ -234,7 +234,7 @@ impl Debug for Enumeration {

/// Wraps an [Enumeration] which has been created by [Enumeration::extend].
/// This can be added to a [SchemaEvolution].
#[derive(Debug)]
#[cfg_attr(any(test, feature = "pod"), derive(Debug))]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why make this conditional?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was broken before. Enumeration does not impl Debug without the pod feature, since the implementation is to construct EnumerationData and call the Debug impl of that.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Gotchya, thanks!

@rroelke rroelke merged commit 637bf2f into main Feb 13, 2025
3 checks passed
@rroelke rroelke deleted the rr/qc-access branch February 13, 2025 19:31
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