Skip to content

Fix identity field mappings deleting log record fields - #170

Open
Shubham-Padkonde wants to merge 1 commit into
github:mainfrom
Shubham-Padkonde:fix/identity-field-renames
Open

Shubham-Padkonde wants to merge 1 commit into
github:mainfrom
Shubham-Padkonde:fix/identity-field-renames

Conversation

@Shubham-Padkonde

Copy link
Copy Markdown

RenamerPlugin(msg="msg") deletes the message field: it first assigns the value to the same key and then deletes that key. Formatting the resulting record raises AttributeError instead of producing the log message.

Pop the source value before assigning the destination so identity mappings preserve the field. Both strict and non-strict modes have regression coverage. Existing missing-field and ordinary rename behavior is unchanged. Includes the patch version bump required by the contribution guide.

Validation: 78 tests pass with 100% coverage; Ruff and Pyright pass. Both new regression cases fail before the fix.

@Shubham-Padkonde
Shubham-Padkonde requested a review from a team as a code owner October 2, 2026 09:52
Copilot AI balanced review requested due to automatic review settings October 2, 2026 09:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

This branch has not been deployed

No deployments
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