Repository navigation
Replace pchanges with changes to make onchanges/prereq work in test mode - #49832
Conversation
|
@terminalmage There are some lint errors that need some attention, please. Thanks! |
|
@cachedout Done. |
db75a36 to
6006588
Compare
Since "pchanges" was never supported in the state compiler, and "changes" is what these reqs always used, replacing "pchanges" with "changes" will allow those requisites to work in test mode.
This allows for a state return dict to be repacked so that the top level keys are the IDs, making it much easier to analyze and craft asserts against the results.
this requisite passes a __prerequired__ kwarg so these need to support **kwargs for that reason. This also changes the comment for salt.function in test mode because it's inaccurate and doesn't make sense.
6006588 to
92d589e
Compare
|
Test should pass now, just needed to be updated to reflect pchanges removal |
|
There should probably be a notice about this in the |
|
I'll add this on Tuesday. |
|
@rallytime Since I just opened a PR to make a documentation addition in the same section that documentation of onchanges/prereq would have needed to go, rather than making conflicting changes that would require a rebase I decided to add them to the other PR (#49864). |
|
Really I'd like this to be ported to Fluorine. Test mode makes close to 0 sense without seeing diffs. |
|
@saltstack/team-core based on comments from the community, it might be a good idea to backport this #45895 (comment) |
|
Which release will this PR be merged into? |
|
After discussion with Tom, it's been determined this needs to be back ported |
Backport #49832 into 2018.3
Fixes #49753
Fixes #45895