Skip to content

fix: filter of initial numeric values#222

Merged
sbcgua merged 2 commits intosbcgua:masterfrom
mbtools:empty-filter
Feb 19, 2026
Merged

fix: filter of initial numeric values#222
sbcgua merged 2 commits intosbcgua:masterfrom
mbtools:empty-filter

Conversation

@mbtools
Copy link
Copy Markdown
Contributor

@mbtools mbtools commented Feb 9, 2026

Unfortunately, some tests for the filter lib are incorrectly setting initial values. The tests pass although there is a bug in the "empty filter".

This fixes the "empty filter" so it correctly skips initial numeric values (i.e. 0) and fixes the corresponding test cases.

Unfortunately, some tests for the filter lib are incorrectly setting initial values. The tests pass although there is a bug in 
the "empty filter". 

This fixes the "empty filter" so it correctly skips initial numeric values (i.e. `0`) and fixes the corresponding test cases.
@sbcgua
Copy link
Copy Markdown
Owner

sbcgua commented Feb 15, 2026

Yeah, a subtle bug. Thanks.
Just one doubt if the null value should also be considered non-empty ... i'd say it is, or? (whereas false is non-empty)

@mbtools
Copy link
Copy Markdown
Contributor Author

mbtools commented Feb 15, 2026

Null doesn’t mean “nothing” like an empty string (""), an empty array ([]), or an empty object ({}), but rather “no value”. I would keep it.

@mbtools
Copy link
Copy Markdown
Contributor Author

mbtools commented Feb 17, 2026

Closes #121

@mbtools
Copy link
Copy Markdown
Contributor Author

mbtools commented Feb 19, 2026

Can we merge this since it's blocking an abapgit fix?

@sbcgua sbcgua merged commit 1282c31 into sbcgua:master Feb 19, 2026
5 checks passed
@sbcgua
Copy link
Copy Markdown
Owner

sbcgua commented Feb 19, 2026

Yes, merged. Thanks for the fix.

P.S. still in doubt about the "null" but as it worked the same before, so not a regression anyway. Let's keep as it is now

@mbtools mbtools deleted the empty-filter branch February 19, 2026 15:30
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