Skip to content

Restore dyff rename detection option removed in PR #961#977

Closed
Copilot wants to merge 3 commits intomasterfrom
copilot/fix-rename-detection-issue
Closed

Restore dyff rename detection option removed in PR #961#977
Copilot wants to merge 3 commits intomasterfrom
copilot/fix-rename-detection-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 17, 2026

PR #961 inadvertently removed the dyff.DetectRenames(true) compare option from printDyffReport, breaking rename detection in dyff output format.

  • Re-add dyff.DetectRenames(true) to the compare options in diff/report.go
  • Add TestPrintDyffReportDetectsRenames test to verify that dyff rename detection correctly correlates renamed resources and outputs field-level diffs instead of full document add/remove

Copilot AI linked an issue Apr 17, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix rename detection functionality in helm-diff Restore dyff rename detection option removed in PR #961 Apr 17, 2026
Copilot AI requested a review from yxxhero April 17, 2026 10:14
@yxxhero
Copy link
Copy Markdown
Collaborator

yxxhero commented Apr 17, 2026

@copilot add tests for this issue.

Agent-Logs-Url: https://github.com/databus23/helm-diff/sessions/b7013dd7-5178-48fd-9249-ce54b121d833

Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 17, 2026

@copilot add tests for this issue.

Added TestPrintDyffReportDetectsRenames in 78decd7. The test creates a report with a removed and added resource that differ only in metadata.name, then verifies dyff's rename detection correlates them and outputs a metadata.name field-level change rather than full document add/remove.

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.

rename detection no longer working

2 participants