Skip to content

fix: filter of initial numeric values - #222

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

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

Conversation

@mbtools

@mbtools mbtools commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

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

sbcgua commented Feb 15, 2026

Copy link
Copy Markdown
Owner

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

mbtools commented Feb 15, 2026

Copy link
Copy Markdown
Contributor Author

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

mbtools commented Feb 17, 2026

Copy link
Copy Markdown
Contributor Author

Closes #121

@mbtools

mbtools commented Feb 19, 2026

Copy link
Copy Markdown
Contributor Author

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

sbcgua commented Feb 19, 2026

Copy link
Copy Markdown
Owner

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