-
Notifications
You must be signed in to change notification settings - Fork 11
Allow user-selectable history class #168
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
Conversation
|
I'm pondering the 'breakingchange' tag. I'm not actually sure this one breaks anything: there was no need to adapt the test suite to implement this change... |
jonasbn
left a comment
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.
Approved
Closes perl-workflow#106. Moves the responsibility of instantiating history classes from the factory and the persister into the Workflow class.
d66f36a to
8e2cea3
Compare
|
Step 1: conflicts resolved. |
Note that the actions were inserting history items of type 'Workflow::History' which is the supertype of the configured history item. Change the history addition to simply provide the construction parameters of the history object instead of providing the history object itself.
- Merge two constant strings which would be concatenated later - Indentation in a code example for better readability
Since the history class can be changed on the workflow, it's the responsibility of Workflow to instantiate its history items. In our examples, promote that pattern (instead of the older pattern where the history class would be hard-coded).
|
Step 2: Add tests and documentation tweaks. |
|
@jonasbn this PR is now ready for final review and merging. Please note that although I changed the code in the test suite to stop adding |
jonasbn
left a comment
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.
Approved
Description
Closes #106. Moves the responsibility of instantiating history classes from the factory
and the persister into the Workflow class.
Type of change
Checklist: