pedestal

mkvlr 2018-12-19T10:01:34.129900Z

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.

mkvlr 2018-12-19T10:07:04.131200Z

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?

mkvlr 2018-12-19T10:11:22.131900Z

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

mavbozo 2018-12-19T12:39:28.135300Z

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

mavbozo 2018-12-19T12:42:02.137100Z

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

2018-12-19T13:39:57.138400Z

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

mkvlr 2018-12-19T13:58:31.138700Z

because of performance considerations?

mkvlr 2018-12-19T14:02:25.140100Z

seems pretty minimal to me…

mkvlr 2018-12-19T14:02:51.140800Z

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

martinklepsch 2018-12-19T14:29:59.141700Z

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

mkvlr 2018-12-19T15:07:42.142200Z

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

mkvlr 2018-12-19T15:09:39.142600Z

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