Skip to content

Refactor to use common codepath for table coalescing - #5821

Merged
thomastaylor312 merged 3 commits into
helm:masterfrom
govau:refactortablecoalesce
Jun 12, 2019
Merged

thomastaylor312 merged 3 commits into
helm:masterfrom
govau:refactortablecoalesce

Conversation

@aeijdenberg

Copy link
Copy Markdown

This PR is split out from #5185 and adds a 2nd commit to refactor the table coalescing to a single code path.

@helm-bot helm-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 31, 2019
@aeijdenberg aeijdenberg mentioned this pull request May 31, 2019
1 task done
@aeijdenberg
aeijdenberg force-pushed the refactortablecoalesce branch from c6b8d26 to 45750d6 Compare June 4, 2019 02:00
@aeijdenberg

Copy link
Copy Markdown
Author

Rebased on master since #5185 is now merged.

Now the line counts more accurately reflect this as a net code removal, which was the intention.

@thomastaylor312 thomastaylor312 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.

I really like how this simplifies things. Just some questions around the merge algorithm refactor to address. It would also be helpful to add unit tests to catch the edge cases where value types don't match.

Comment thread pkg/chartutil/values.go Resolved
scottrigby
scottrigby previously approved these changes Jun 11, 2019
Comment thread pkg/chartutil/values.go Resolved
@scottrigby
scottrigby dismissed their stale review June 11, 2019 16:31

I meant to still request the message change not approve

@scottrigby scottrigby left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just message change is needed to match behavior.

Stop mutating maps passed on input

Signed-off-by: Adam Eijdenberg <[email protected]>
Signed-off-by: Adam Eijdenberg <[email protected]>
@aeijdenberg
aeijdenberg force-pushed the refactortablecoalesce branch from 45750d6 to 29a295e Compare June 12, 2019 00:07
@helm-bot helm-bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jun 12, 2019
@aeijdenberg

Copy link
Copy Markdown
Author

Have added the test above into a separate commit which I added first, so that we can see the tests pass before the refactor.

Then I re-based the refactor, and the warning message change commit on top.

I think that's all that's needed?

@thomastaylor312 thomastaylor312 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.

Thanks for all the great work on this @aeijdenberg! We really appreciate it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants