Skip to content

Release 1.5.5#56

Merged
Martin819 merged 13 commits intomasterfrom
develop
Jul 19, 2018
Merged

Release 1.5.5#56
Martin819 merged 13 commits intomasterfrom
develop

Conversation

@Martin819
Copy link
Copy Markdown
Member

No description provided.

AndrewPickford and others added 13 commits June 27, 2018 16:34
…eporting

Refactor the complex logic for dealing with merging different types into one
place - the ValueList.render method. This removes the replication of the logic
in the *item.merge_over methods.

As part of the change the errors reported by ValueList.render when
merging is not allowed have been changed from standard python TypeErrors
to a reclass specific TypeMergeError which has more friendly
error reporting giving the parameter name and locations of the error.

To accomodate the error reporting change dicts and lists are subclassed
in parameters.py to allow a uri tag to placed on a newly created dictionary
or list.
The new modifer is used to declare a parameter to be fixed and not
changeable in subsequent classes. If ignore_merging_onto_fixed is
False then trying to change a fixed parameter will generate an error
if ignore_merging_onto_fixed is True the the parameter will not be
changed and no error will be generated
The valuelist.render refractor also tightened up several tests which
test if an exception was raised. The changes added a test of the message
returned by the exception. As the evaluation order of independant reclass
parameters is not defined it's possible to get one of several different
error message for some tests. python2 uses the same evaluation order on
each reclass run but for python3 the order can and does change between
reclass runs over the same data.

The tests are fixed by allowing any of the valid error messages to pass
the test.
The valuelist.render refractor also tightened up several tests which
test if an exception was raised. The changes added a test of the message
returned by the exception. As the evaluation order of independant reclass
parameters is not defined it's possible to get one of several different
error message for some tests. python2 uses the same evaluation order on
each reclass run but for python3 the order can and does change between
reclass runs over the same data.

The tests are fixed by allowing any of the valid error messages to pass
the test.
This updates the docs, code and options to use the name constant
parameters for parameters using the '=' prefix
…class

The Parameters._render_simple_dict and _render_simple_list methods now
return a new dict or list instead of changing in place the dict or list
passed to them. This commit updates the exports class appropriately and
adds some additional tests for these changes.
Fix: use returned parameter from _render_simple_dict/list in exports class
@Martin819 Martin819 merged commit f3f752c into master Jul 19, 2018
@Martin819 Martin819 changed the title Merge develop branch to master Release 1.5.5 Jul 19, 2018
MatteoVoges pushed a commit to neXenio/reclass that referenced this pull request Apr 4, 2023
Add upgrade flag to kapitan install in CI Docker image
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.

3 participants