Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WithNoOverrideEmptyStructValues #179

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cwarden
Copy link

@cwarden cwarden commented Feb 26, 2021

Add option to not overwrite empty fields in destination structs if the
structs are not empty.

@sourcelevel-bot
Copy link

Hello, @cwarden! This is your first Pull Request that will be reviewed by SourceLevel, an automatic Code Review service. It will leave comments on this diff with potential issues and style violations found in the code as you push new commits. You can also see all the issues found on this Pull Request on its review page. Please check our documentation for more information.

Add option to not overwrite empty fields in destination structs if the
structs are not empty.
@cwarden cwarden force-pushed the do-not-overwrite-empty-values-within-non-empty-struct branch from 9ddaab6 to 424e4b2 Compare February 26, 2021 13:22
@cwarden
Copy link
Author

cwarden commented Feb 26, 2021

I'm not positive that this needs a new option. If it does, perhaps it should be generalized to more than structs or to depths other than zero.

Please take a look at the tests. Thoughts?

cwarden added a commit to cwarden/force-md that referenced this pull request May 28, 2021
Allow help text to be set to an empty string.  See
darccio/mergo#179.
@darccio
Copy link
Owner

darccio commented May 25, 2022

@cwarden Sorry it took so long. The tests look fine, but I'm not sure if this PR can introduce unknown side effects. It looks you have been using your fork for a year. Did you find anything wrong during this time?

@darccio darccio marked this pull request as ready for review May 25, 2022 19:35
@cwarden
Copy link
Author

cwarden commented May 25, 2022

Hi @imdario. This change has been working well for me in https://github.com/ForceCLI/force-md.

@darccio
Copy link
Owner

darccio commented Sep 11, 2023

This will be considered as part of v2.

@darccio darccio added the v2 label Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants