keechma

Keechma stack. Mention @U050986L9 or @U2J1PHYNM if you have any questions
urbank 2017-08-04T09:08:30.553095Z

@mihaelkonjevic Where would I run actions that should happen after a dataloader has loaded some data to the :target path?

mihaelkonjevic 2017-08-04T09:09:00.564048Z

What do you need to do?

mihaelkonjevic 2017-08-04T09:09:30.574643Z

I didn't have a need for a such feature

mihaelkonjevic 2017-08-04T09:10:24.593619Z

So I'd like a real example to figure out what's the best approach

urbank 2017-08-04T09:12:07.629395Z

I'm loading the data into a table. Then I want to put the ids of the table items somewhere in the database. I suppose that's what entity-db does automatically, but what if you're not using entity-db?

mihaelkonjevic 2017-08-04T09:13:49.665676Z

The easiest would be to have a data-ids data source which depends on the data data source

mihaelkonjevic 2017-08-04T09:14:43.685234Z

That way whenever the original data changes data-ids would be called and you can process it to extract the ids

mihaelkonjevic 2017-08-04T09:17:52.751738Z

Datsource params fn received the data from all data sources it depends on. So you could just return the data from there and the loader fan could extract and store ids

urbank 2017-08-04T09:19:29.785220Z

Ok, I'll try that. Thanks!

urbank 2017-08-04T09:43:12.292901Z

@mihaelkonjevic Great, that works. By the way, I remember reading somewhere that you were going to give a talk on keechma. Has that happened yet? Is there a video?

mihaelkonjevic 2017-08-04T09:43:38.302053Z

it’s in september on ClojuTRE in Finland

urbank 2017-08-04T14:56:42.678375Z

@mihaelkonjevic Hm... I'm getting Missing dependencies :item for component :list Can't figure out why. Will try to make minimal example

mihaelkonjevic 2017-08-04T14:57:52.720252Z

are you trying to get the “item” subscription without adding it into subscription-deps ?

urbank 2017-08-04T14:58:37.747957Z

Nope, haven't introduced subscriptions at all. Just components-deps

mihaelkonjevic 2017-08-04T14:59:07.766144Z

is the “item” component registered in the ui-system map?

urbank 2017-08-04T14:59:47.790666Z

As far as I can tell, yes. It's the same keyword, and it's not nil if I inspect it.

mihaelkonjevic 2017-08-04T15:00:12.807113Z

hm, yeah I’ll need the minimal example then 🙂

urbank 2017-08-04T15:00:24.815604Z

On it!

urbank 2017-08-04T15:30:51.888995Z

@mihaelkonjevic pfff.... it was just a damn typo!

urbank 2017-08-04T15:37:37.127378Z

I suppose that's a trade-off of somewhat substituting vars for keys in hash maps.

urbank 2017-08-04T20:38:57.099611Z

@mihaelkonjevic So I'm playing around with the keechma source. The airity issue is specific to the toolbox library, correct? It doesn't seem to be an issue with a "vanilla" Controller

urbank 2017-08-04T21:00:59.634409Z

Hm, so apparently

urbank 2017-08-04T21:02:03.660256Z

[org.clojure/clojure "1.9.0-alpha15"] [org.clojure/clojurescript "1.9.229"] Are still okay? They're dependencies of the keechma-toolbox lib