Fork me on GitHub
#untangled
<
2017-06-28
>
currentoor13:06:00

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

wilkerlucio14:06:48

@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

currentoor14:06:32

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

wilkerlucio14:06:02

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

currentoor14:06:40

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

currentoor14:06:11

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

wilkerlucio14:06:10

@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

wilkerlucio14:06:10

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

wilkerlucio14:06:50

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

currentoor15:06:05

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

currentoor15:06:26

i used it just because it was there in the examples

currentoor15:06:46

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

currentoor15:06:31

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

currentoor15:06:09

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

gardnervickers16:06:48

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.