untangled

NEW CHANNEL: #fulcro
currentoor 2017-06-28T13:43:00.663081Z

@tony.kay perhaps you already went over this but why not use uuids (or squuids) generated client side rather than :db/ids, that way you wouldn’t have to deal with tempids at all right?

wilkerlucio 2017-06-28T14:32:48.855089Z

@currentoor you can do that if you want, the id translation is optional, mostly to deal with systems where using UUID's is not feasible

currentoor 2017-06-28T14:34:32.899382Z

@wilkerlucio if you don’t mind me asking, where would UUID’s not be feasible?

wilkerlucio 2017-06-28T14:36:02.936132Z

for example working with a legacy database, and you want/need to keep the existing db ids

currentoor 2017-06-28T14:41:40.077406Z

still not sure why that would make it necessary, you could easily add UUID attributes retroactively no?

currentoor 2017-06-28T14:42:11.089913Z

also, AFAIK @tony.kay was not dealing with a legacy database when he built untangled

wilkerlucio 2017-06-28T14:43:10.114986Z

@currentoor but tempids are not an untangled thing, it is an Om.next thing, and given that people still want to do that, therefore there is the support for it, I have used this myself dealing with legacy databases on a project

wilkerlucio 2017-06-28T14:44:10.140032Z

deciding to use UUID's across the system is a design decision, I think we don't want to enforce that on people

wilkerlucio 2017-06-28T14:44:50.157035Z

Untangled just add's some plumbing to make it even easier

wilkerlucio 2017-06-28T14:48:03.238816Z

makes sense?

currentoor 2017-06-28T15:20:05.077467Z

yeah, i suppose that’s fair, i’ve been using the tempid feature in untangled for about a year now

currentoor 2017-06-28T15:20:26.086897Z

i used it just because it was there in the examples

currentoor 2017-06-28T15:20:46.095550Z

but now i’m starting to think, maybe i should have just used uuid’s from the start

currentoor 2017-06-28T15:21:31.115040Z

for example tracking the creation/deletion of an entity in our analytics software is easier when you don’t have a tempid

currentoor 2017-06-28T15:22:09.130716Z

and having multiple paths in our URL routes (one for db/id and one for tempid)

gardnervickers 2017-06-28T16:39:48.016299Z

Hey folks, are there any problems with querying an ident from a component that itself is backed by that same ident? This is not a recursive query, rather a different query over the same backing ident.