-
Notifications
You must be signed in to change notification settings - Fork 11
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
State internal accessors #139
Merged
jonasbn
merged 6 commits into
perl-workflow:master
from
ehuelsmann:state-internal-accessors
Jul 27, 2021
Merged
State internal accessors #139
jonasbn
merged 6 commits into
perl-workflow:master
from
ehuelsmann:state-internal-accessors
Jul 27, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Follow suit with other classes and other accessors in the State class
Following the `_actions` accessor, add the `_conditions` accessor too
Same as there is a `_conditions` accessor for actions' conditions, we really want this accessor to separate this config out from the action's true configuration.
State consumes the 'condition' and 'resulting_state' keys from the Action configuration specified inside the State. Although these two keys are specified *as part of* the Action config, they are in fact State configuration relating to the Action, instead of true Action configuration. This addresses an issue reported by @oliwell after the 1.55 release, where OpenXPKI was confused about unexpected parameters being added to the action instantiation. While at it, clean up the code around state-specific-action configuration handling in general.
... because the accessor is called `_next_state()`.
ehuelsmann
force-pushed
the
state-internal-accessors
branch
from
July 20, 2021 19:41
4e090b7
to
857ff54
Compare
jonasbn
approved these changes
Jul 27, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Separate state's action-related data from actual Action configuration.
This solves a problem reported by @oliwel due to the 1.55 release, which confuses OpenXPKI due to the 'resulting_state' and 'condition' keys being part of the action configuration.
Type of change
Please delete options that are not relevant.
Arguably, this is a bugfix.
Checklist: