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

Remove predicate functionality #2163

Merged
merged 23 commits into from
Nov 25, 2015
Merged

Conversation

chrisroos
Copy link
Contributor

We deprecated the use of the predicate logic a while back. This branch removes all the unused predicate logic code.

Expected user-facing changes

  • None

@chrisroos chrisroos force-pushed the remove-predicate-functionality branch from e2ac81e to 8b70366 Compare November 24, 2015 14:54
@chrisroos
Copy link
Contributor Author

I've run all the regression tests in this branch and am happy that I've not broken anything. There may be other things that can also be removed but I think this is good enough to get merged to master.

So that the tests use `next_node` with a block instead of `next_node_if`
unless they're specifically testing `next_node_if`.

This is in preparation for removing the predicate code (`next_node_if`
and friends).
The use of predicates to define next node rules was deprecated a while back and
we're now in the process of removing this predicate code.

I've retained the ability to call `next_node :next_node_name` by setting
`@default_next_node_function` to a `proc` that returns the `:next_node_name`.
This replicates the behaviour of calling `next_node` with a block directly.
We're no longer using `next_node_if` anywhere which means that
`next_node_function_chain` will always be an empty array.

The use of predicates to define next node rules was deprecated a while back and
we're now in the process of removing this predicate code.
Searching the project revealed that this isn't used anywhere.

The use of predicates to define next node rules was deprecated a while back and
we're now in the process of removing this predicate code.
Required because of the removal of
`responded_with_commonwealth_country?` from registrations_data_query.rb.
Required because of the removal of
`responded_with_commonwealth_country?` from registrations_data_query.rb.
Required because of the removal of
`responded_with_commonwealth_country?` from registrations_data_query.rb.
Along with the associated `Predicate::ResponseIsOneOf` class and tests.

The use of predicates to define next node rules was deprecated a while back and
we're now in the process of removing this predicate code.
Along with the associated `Predicate::ResponseHasAllOf` class and tests.

The use of predicates to define next node rules was deprecated a while back and
we're now in the process of removing this predicate code.
A search of the application reveals that this isn't being used anywhere.
Along with the associated `Predicate::RespondedWith` class and tests.

The use of predicates to define next node rules was deprecated a while back and
we're now in the process of removing this predicate code.
Along with the associated `Predicate::VariableMatches` class and tests.

The use of predicates to define next node rules was deprecated a while back and
we're now in the process of removing this predicate code.
And associated tests.

The use of predicates to define next node rules was deprecated a while back and
we're now in the process of removing this predicate code.
A search of the project reveals that this is no longer being used anywhere.

The use of predicates to define next node rules was deprecated a while back and
we're now in the process of removing this predicate code.
And associated tests.

A search of the project reveals that this is no longer being used anywhere.

The use of predicates to define next node rules was deprecated a while back and
we're now in the process of removing this predicate code.
A search of the project reveals that this is no longer being used anywhere.

The use of predicates to define next node rules was deprecated a while back and
we're now in the process of removing this predicate code.
This is no longer necessary because `@predicates` is never set to anything
other than an empty hash.
This is no longer necessary because `@predicates` is never set to anything
other than an empty hash.
As `@next_node_function_chain` is no longer set to anything other than
an empty array.
And the associated tests.

The use of predicates to define next node rules was deprecated a while back and
we're now in the process of removing this predicate code.
And the associated tests.

The use of predicates to define next node rules was deprecated a while back and
we're now in the process of removing this predicate code.
@chrisroos chrisroos force-pushed the remove-predicate-functionality branch from 8b70366 to 91f9275 Compare November 25, 2015 12:44
@chrisroos
Copy link
Contributor Author

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

chrisroos added a commit that referenced this pull request Nov 25, 2015
@chrisroos chrisroos merged commit 66976d6 into master Nov 25, 2015
@chrisroos chrisroos deleted the remove-predicate-functionality branch November 25, 2015 12:49
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.

1 participant