Skip to content

fix 3merge null values#4542

Open
tgzsolt wants to merge 2 commits into
kptdev:mainfrom
nokia:fix-3merge-null
Open

fix 3merge null values#4542
tgzsolt wants to merge 2 commits into
kptdev:mainfrom
nokia:fix-3merge-null

Conversation

@tgzsolt
Copy link
Copy Markdown

@tgzsolt tgzsolt commented May 27, 2026

Description

fix the 3merge for an edge case related to null value

Motivation

3way merge does not use the Updated value for a key if Dest and Origin values both are null.

Fix

Do not return nil (it will delete the key from result) when original value is also null (or the key missing)

Copilot AI review requested due to automatic review settings May 27, 2026 12:09
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels May 27, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented May 27, 2026

Deploy Preview for kptdocs ready!

Name Link
🔨 Latest commit 5abaeaa
🔍 Latest deploy log https://app.netlify.com/projects/kptdocs/deploys/6a1938f842f19100087cff14
😎 Deploy Preview https://deploy-preview-4542--kptdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels May 28, 2026
Copilot AI review requested due to automatic review settings May 28, 2026 14:51
@tgzsolt tgzsolt force-pushed the fix-3merge-null branch from 59be6ca to 2ae79a2 Compare May 28, 2026 14:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

Comment thread pkg/lib/update/merge3/visitor.go Outdated
Comment thread pkg/lib/update/merge3/visitor.go Outdated
Comment thread pkg/lib/update/merge3/visitor.go Outdated
Comment thread pkg/lib/update/merge3/visitor.go
Comment thread pkg/lib/update/merge3/visitor.go
Comment thread pkg/lib/update/merge3/visitor.go
tgzsolt added 2 commits May 29, 2026 08:57
polish

update licens

Signed-off-by: tar <gabor.tar.ext@nokia.com>
Signed-off-by: tar <gabor.tar.ext@nokia.com>
@tgzsolt tgzsolt force-pushed the fix-3merge-null branch from 5d401d2 to 5abaeaa Compare May 29, 2026 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants