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

Use next_node blocks in maternity-paternity-calculator #2104

Merged

Conversation

chrisroos
Copy link
Contributor

We've agreed to consistently use next_node {} to define our next node rules. Having a single way of defining the rules will hopefully make Smart Answers easier to develop and maintain.

This will ultimately allow us to remove the predicate code (define_predicate, on_condition, next_node_if etc).

@floehopper
Copy link
Contributor

@chrisroos: I'm investigating this build failure, because it looks as if it might be related to changes I've made recently.

@chrisroos chrisroos force-pushed the use-next-node-blocks-in-maternity-paternity-calculator branch from cbde47a to ba12229 Compare November 18, 2015 10:21
@chrisroos
Copy link
Contributor Author

I've rebased on master and force pushed. I'm expecting the build to pass. The previous failure was unrelated to these changes.

@floehopper floehopper self-assigned this Nov 19, 2015
@floehopper
Copy link
Contributor

Assuming the checksums are correct, this looks good to me. 👍

I've replaced `define_predicate` with `next_node_calculation` in an attempt to
keep the code as similar as possible. I've had to update the names used by
`next_node_calculation` as the question marks cause problems when the state
object is converted to a hash in preparation for rendering the ERB templates.
I've replaced `define_predicate` with `next_node_calculation` in an attempt to
keep the code as similar as possible. I've had to update the names used by
`next_node_calculation` as the question marks cause problems when the state
object is converted to a hash in preparation for rendering the ERB templates.
I've replaced `define_predicate` with `next_node_calculation` in an attempt to
keep the code as similar as possible. I've had to update the names used by
`next_node_calculation` as the question marks cause problems when the state
object is converted to a hash in preparation for rendering the ERB templates.
@chrisroos chrisroos force-pushed the use-next-node-blocks-in-maternity-paternity-calculator branch from ba12229 to bc998d6 Compare November 23, 2015 10:54
@chrisroos
Copy link
Contributor Author

I've rebased on master and force pushed in preparation for merging.

chrisroos added a commit that referenced this pull request Nov 23, 2015
…ity-paternity-calculator

Use next_node blocks in maternity-paternity-calculator
@chrisroos chrisroos merged commit 76a04ac into master Nov 23, 2015
@chrisroos chrisroos deleted the use-next-node-blocks-in-maternity-paternity-calculator branch November 23, 2015 10:58
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.

2 participants