Repository navigation
Conversation
Only map missing values to an empty string, instead of treating numeric zero as missing. Co-authored-by: generaltony007 <[email protected]>
Cover integer and floating zero timestamps, DNS transaction ID and NOERROR code zero, single-value and CSV saves, and missing-value compatibility. Co-authored-by: generaltony007 <[email protected]>
Note the cut and cut.save zero-value data-loss fix. Co-authored-by: generaltony007 <[email protected]>
Co-authored-by: generaltony007 <[email protected]>
Contributor
Author
|
Could a maintainer review the zero-valued cut and saved-output field fix and let me know the next step? Please point out any changes needed before human review, or let me know if you'd prefer this PR closed. Thanks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Cut extraction ends with
str(current or ""), so numeric zero is silently exported as an empty string. This affects fields such as DNS transaction ID0, DNS response code0(NOERROR), and zero-valued timestamps. Both single-value saves and CSV output lose those values.Only treat
Noneas missing before the final string conversion. Existing dedicated handling for bytes, booleans, headers and certificates is unchanged. Other values follow the documented string conversion, including empty containers rather than treating them as absent.Tests cover integer/floating zero timestamps, DNS ID/response code zero, missing-value compatibility, and single-value/CSV saves. Four new cases fail on unchanged source.
uv run --no-sync tox -e lintand changed Python files' format check pass.Tests used the existing environment with
--no-sync; the latest dependency-lock updates were not installed for this run.Checklist