This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-09
Channels
- # beginners (55)
- # boot (173)
- # clara (3)
- # cljs-dev (10)
- # cljsjs (3)
- # clojars (11)
- # clojure (110)
- # clojure-austin (5)
- # clojure-berlin (13)
- # clojure-chicago (2)
- # clojure-dusseldorf (3)
- # clojure-france (24)
- # clojure-italy (4)
- # clojure-portugal (1)
- # clojure-russia (60)
- # clojure-serbia (8)
- # clojure-spec (150)
- # clojure-uk (129)
- # clojurescript (87)
- # core-logic (1)
- # cursive (75)
- # datavis (1)
- # datomic (75)
- # devcards (4)
- # dirac (17)
- # emacs (50)
- # events (2)
- # hoplon (9)
- # jobs (4)
- # jobs-discuss (37)
- # lein-figwheel (3)
- # luminus (5)
- # off-topic (54)
- # om (9)
- # om-next (5)
- # onyx (10)
- # perun (11)
- # protorepl (11)
- # quil (2)
- # rdf (2)
- # re-frame (14)
- # reagent (58)
- # ring (13)
- # ring-swagger (10)
- # rum (52)
- # spacemacs (8)
- # test-check (10)
- # untangled (17)
- # yada (34)
@stijn json rendered errors were temporarily removed for 1.2.x because of rendering issues when errors contained types not possible for cheshire to render. I will look at fixing this.
Are you prepared to fork temporarily?
The issue is that only text/plain is declared so conneg chooses it
Custom responses should be fine
I need to refresh my memory by looking at code.
I will my this my next yada task because it's currently a breakage with 1.1.
I was under a bit of self-induced pressure to release and error handling was sacrificed on the altar of speed. Poor choice in retrospect.
as e.g. a user might have been blocked, or roles might have been retracted between the incoming call and the actual point of executing the transaction
I deref the connection to get a db value in an interceptor
that would mean I have to (at least for put/post) handle the authorization in the :response instead of using the security interceptors of yada
I think consistency is more useful
@malcolmsparks yes for reads that's ok, but writes
I feel http requests should have ACID properties
Are you doing long async gaps in your requests?
What does Datomic's sync call do. Might be relevant
yes that's a good point. I was just going to write: 'my peer might have a very old db value'
If you're worried about transactor queues, i'd steer clear of tx fns
there's 2 things that we would like to do inside the transaction: semantic validation of the incoming request and authorization whether the user can update that specific entity
depending on the exception thrown by the transaction, we would generate a 422 (i guess) or a 403.
it's not that bad really, we just wrap every call to d/transact with error handling that will generate the appropriate error codes