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

Allow empty string values for $__conditionAll macro #960

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SpencerTorres
Copy link
Collaborator

Fixes #947 but may also break #262.

It makes sense to allow empty strings for this macro, anyone who wishes to exclude the macro can use $__all in their query to get the 1=1 functionality.

Changes:

  • Empty string will no longer replace the macro with 1=1
  • Changelog

Copy link
Collaborator

@bossinc bossinc left a comment

Choose a reason for hiding this comment

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

Seems reasonable!

@bossinc bossinc enabled auto-merge (squash) August 27, 2024 23:30
Copy link
Contributor

@aangelisc aangelisc left a comment

Choose a reason for hiding this comment

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

This LGTM also, are we expecting that this will be a potential breaking change?

@sbengo
Copy link

sbengo commented Oct 29, 2024

Hi @SpencerTorres , is there any chance the PR will be merged and available in the upcoming releases?

@SpencerTorres
Copy link
Collaborator Author

@sbengo I agree we need to be careful with changing the behavior of this macro, I think we'll follow the suggestion of making a new one for the new behavior

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.

[Bug?] Macro $__conditionalAll sets 1=1 in empty variable values
4 participants