Fork me on GitHub
#clojure-uk
<
2017-10-31
>
otfrom08:10:51

@mattford you can usually get good help with juxt things on the #juxt channel too

otfrom08:10:36

(but I see you already found that)

jonpither09:10:45

good morning

thomas09:10:57

@yogidevbear I did mention datomic at some point and saying that update-in-place is kinda sh1t

thomas09:10:21

moin moin morning

maleghast10:10:26

Morning All 🙂

maleghast10:10:43

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..?

dominicm10:10:18

@maleghast you can provide handlers for different statuses in your resource. So you can provide a 401 handler.

maleghast10:10:43

Oooh, ok 🙂

maleghast10:10:04

under the :response?

maleghast10:10:53

Or as a top-level node in the yada resource map?

maleghast10:10:44

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… 😉

dominicm10:10:02

I just got to the office & haven't quite started yet, you're in luck

maleghast10:10:28

Dammit! I tried searching through the Yada manual - clearly I was not “asking the right questions” … 😞

dominicm10:10:04

No problem. I know this stuff because I get lectured on it, then I find it in the manual, not the other way round 😛

maleghast10:10:01

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! 🙂

maleghast10:10:17

This works REALLY well - btw. Going to “say” something in main chat about how awesome it is 🙂

maleghast10:10:53

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

conan10:10:45

@danieleneal I love datomic, but the history is a pain when somebody asks you to delete their data under data protection laws...

dominicm10:10:58

@conan there's the excision for that, no?

dominicm10:10:03

is that painful?

conan10:10:40

Now I’m used to datomic I find it terrifying!

mccraigmccraig10:10:18

@maleghast there is so much of yada i don't use i think

guy10:10:04

morning!

maleghast10:10:10

@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 😉

mccraigmccraig10:10:04

async multipart upload handling is my favourite bit that i do use

maleghast10:10:50

*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.

guy17:10:04

Newbie question, but is there a way to work out when clojure 1.9 will be released? or check to see whats left to do before it can be released/

dominicm21:10:56

I'm very proud of what my girlfriend made, so if we are sharing...

maleghast09:11:29

It’s gone away…

maleghast09:11:35

What did I miss?

dominicm11:11:01

is it too much to ask for a good image host that's no commitment?