-
Notifications
You must be signed in to change notification settings - Fork 886
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
handle deferred discriminators when using re-entrant actions #2757
handle deferred discriminators when using re-entrant actions #2757
Conversation
This feature was silently dropped in Pyramid 1.4 when deferred discriminators were added. It is re-introduced such that it's possible to override an action in order X by defining an action in order Y where Y <= X with a non-conflicting includepath. This also takes special care to avoid undeferring the discriminator for an action until the execution engine is ready to start executing actions of the same order. This gives time for required actions to execute prior, allowing the discriminator to depend on earlier actions. fixes Pylons#2697
|
I've kicked off the build on Travis again: https://travis-ci.org/Pylons/pyramid/builds/156458741 As well as AppVeyor. |
👍
Just quoting myself ;-) |
As a secondary note... I am not sure this should be backported to 1.7 because it feels like it is a substantial change, although it does fix a bug in 1.7. |
This PR fixes #2697 as well as re-adding support for resolving conflicts across orders.
This feature was silently dropped in Pyramid 1.4 when deferred discriminators were added.
It is re-introduced such that it's possible to override an action in order X by defining an action in order Y where Y <= X with a non-conflicting includepath.
This also takes special care to avoid undeferring the discriminator for an action until the execution engine is ready to start executing actions of the same order. This gives time for required actions to execute prior, allowing the discriminator to depend on earlier actions.