Fork me on GitHub
#pedestal
<
2018-12-19
>
mkvlr10:12:34

now that we’re trying to upgrade from 0.5.3 to 0.5.5 we’re running into https://github.com/pedestal/pedestal/pull/544/files#diff-c7e8051a2ca9de05fbfd6b4fc858ddc7. We’ve previously just enqueued map values as interceptors (which worked fine) but now the pre condition fails.

mkvlr10:12:04

but looks like this was never intended. Would there be interest in accepting a change which makes enqueue also take values and converts them into an interceptor record?

mkvlr10:12:22

if not maybe we should update the interceptors guide http://pedestal.io/reference/interceptors and change the code to produce interceptor records?

mavbozo12:12:28

@mkvlr I encountered the same problem months ago and also asked in this channel

mavbozo12:12:02

chain/enqueue is indeed intended to work only with Interceptor records

ddeaguiar13:12:57

Yep, that is the intended behavior. We want to avoid interceptor xform and validation during chain execution.

mkvlr13:12:31

because of performance considerations?

mkvlr14:12:25

seems pretty minimal to me…

mkvlr14:12:51

is there some performance benchmarks I can run to see the impact?

martinklepsch14:12:59

You may want to vote for https://dev.clojure.org/jira/browse/CLJ-1473 to ensure that malformed pre/post conditions aren't silently skipped

mkvlr15:12:42

@martinklepsch I want them to be skipped because they break my app 😼

mkvlr15:12:39

but I see I want to upvote your comment re breaking change