Skip to content

Conversation

dmjones
Copy link
Contributor

@dmjones dmjones commented Apr 2, 2019

Adjusts the BeforeAfterFilter so that it doesn't continue to execute interceptors or actions if the BEFORE function returns a value.

Adds a new test file, before_after_filter_test.go, which verifies this behaviour.

Fixes #1433.

@notzippy notzippy changed the base branch from master to develop April 2, 2019 23:05
@dmjones
Copy link
Contributor Author

dmjones commented Apr 8, 2019

Honestly a bit stuck on what those CI errors are caused by...

@dmjones dmjones changed the title Don't invoke action when Before returns value Fix bug where actions is invoked even when Before interceptor returns non-nil value Apr 9, 2019
@dmjones dmjones changed the title Fix bug where actions is invoked even when Before interceptor returns non-nil value Fix bug where action is invoked even when Before interceptor returns non-nil value Apr 9, 2019
@notzippy notzippy added this to the v0.21.0 milestone Apr 10, 2019
@notzippy notzippy self-assigned this Apr 10, 2019
@notzippy notzippy merged commit ccf085e into revel:develop Apr 10, 2019
@notzippy
Copy link
Collaborator

TY for the contribution, it was the original intent to do this.

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