This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-31
Channels
- # aws-lambda (4)
- # beginners (152)
- # boot (19)
- # cider (45)
- # cljs-dev (14)
- # clojure (54)
- # clojure-dev (33)
- # clojure-greece (11)
- # clojure-italy (4)
- # clojure-nl (8)
- # clojure-norway (2)
- # clojure-russia (6)
- # clojure-sg (1)
- # clojure-spec (1)
- # clojure-uk (40)
- # clojure-ukraine (5)
- # clojurescript (40)
- # community-development (13)
- # component (8)
- # core-async (3)
- # cursive (25)
- # data-science (11)
- # datomic (13)
- # duct (1)
- # emacs (2)
- # events (16)
- # figwheel (3)
- # fulcro (53)
- # graphql (2)
- # jobs (5)
- # jobs-rus (1)
- # juxt (10)
- # leiningen (4)
- # off-topic (82)
- # other-languages (5)
- # portkey (3)
- # protorepl (13)
- # re-frame (22)
- # reagent (15)
- # ring-swagger (4)
- # shadow-cljs (69)
- # spacemacs (7)
- # specter (16)
- # sql (13)
- # vim (5)
- # yada (2)
Morning 👋
@yogidevbear I did mention datomic at some point and saying that update-in-place is kinda sh1t
Anyone implemented Auth / Auth with yada and then figured out how to sort out custom 401 page(s) so that auth / auth failures and / or unwanted access don’t get a stack trace, but rather a “friendly” page..?
@maleghast you can provide handlers for different statuses in your resource. So you can provide a 401 handler.
Also, thanks @yogidevbear - my asking in general chat without name-checking Dom was an attempt to leave the poor chap alone as there is a danger that I will end up having him want to kill me… 😉
Dammit! I tried searching through the Yada manual - clearly I was not “asking the right questions” … 😞
No problem. I know this stuff because I get lectured on it, then I find it in the manual, not the other way round 😛
So at the top-level of the map inside “yada/resource”, i.e. the same level as :methods, I add :responses as per the manual and BOOM! 🙂
This works REALLY well - btw. Going to “say” something in main chat about how awesome it is 🙂
Just to give everyone else context without having to read the thread - @dominicm pointed me at the right bit of the yada manual and I had achieved what I wanted to do in 5 minutes flat. Yada / Edge == awesome; my ability to find stuff in documentation != awesome… 😉 Here’s the link in case anyone cares -> https://juxt.pro/yada/manual/index.html#declared-responses
@danieleneal I love datomic, but the history is a pain when somebody asks you to delete their data under data protection laws...
@maleghast there is so much of yada i don't use i think
@mccraigmccraig - I sense that there is a lot more goodness there that I am not using as well, but I am enjoying uncovering it bit by bit 😉
async multipart upload handling is my favourite bit that i do use
*nods* Yes I need to look at that again at some point. In the end I did not need it right now__ but I am going to need it.