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

ConfigNodeDiff.get_as_opt_config: preserve parent attributes #2867

Open
wants to merge 1 commit into
base: 2.4.x
Choose a base branch
from

Conversation

oliver-sanders
Copy link
Member

  • If a setting (e.g. namelist:a=b) is present in a ConfigNodeDiff, but its parent (e.g. namelist:a) is not. Then the state and comments of parent node may not be present in the diff if they have not changed.
  • As a result the state and comments of the parent node may be incorrect in the output generated by get_as_opt_config.
  • This commit detects parent nodes that are not present in the diff and adds an option to transfer them from a provided node.
  • closes upgrade: namelist added in wrong state #2853

* If a setting (e.g. `namelist:a=b`) is present in a ConfigNodeDiff, but
  its parent (e.g. `namelist:a`) is not. Then the state and comments of
  parent node may not be present in the diff if they have not changed.
* As a result the state and comments of the parent node may be incorrect
  in the output generated by `get_as_opt_config`.
* This commit detects parent nodes that are not present in the diff and
  adds an option to transfer them from a provided node.
* closes metomi#2853
@oliver-sanders
Copy link
Member Author

Tests will fail until #2865 is merged

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.

1 participant