untangled

NEW CHANNEL: #fulcro
mitchelkuijpers 2017-07-11T08:51:54.224017Z

I fixed my issue by adding a refresh on :sale-router in the load an now everything works. Not really happy about the fix because I don't understand what went wrong

mitchelkuijpers 2017-07-11T09:50:35.525756Z

Nope that was not the resolution

claudiu 2017-07-11T10:00:07.731206Z

@mitchelkuijpers any chance for a minimal replication on untangled-template fork, or is it to much to setup ?

mitchelkuijpers 2017-07-11T10:00:55.750389Z

Now I am on it, seems to have something todo with a union query (of untangled-router) and 2 union branches which reference the same key

mitchelkuijpers 2017-07-11T10:01:10.755917Z

@claudiu will try to reproduce I want to understand the issue

claudiu 2017-07-11T10:02:31.786123Z

yep. that way is easy for us to just git clone and play around.

mitchelkuijpers 2017-07-11T10:03:00.796189Z

I have fixed it though (luckily)

mitchelkuijpers 2017-07-11T10:03:13.800444Z

Ill try to reproduce on top of untangled template

claudiu 2017-07-11T10:38:02.472949Z

@mitchelkuijpers awesome 🙂 can you say what the fix was ?

claudiu 2017-07-11T10:45:48.611701Z

or was the refresh on :sale-router the fix

mitchelkuijpers 2017-07-11T11:02:51.915341Z

I had a union query and both branches had :current-sale which was pointing to a ident

mitchelkuijpers 2017-07-11T11:03:20.923966Z

I changed one to another key so they are different and that fixed it

claudiu 2017-07-11T11:17:11.167141Z

🙂

claudiu 2017-07-11T14:31:06.340112Z

anyone from http://adstage.io here ? curious if all the admin app is written in untangled 🙂

claudiu 2017-07-11T15:00:02.444646Z

@tony.kay Do you by any chance have an untangled data flow diagram similar to the ones that appear in google when searching for redux or re-frame ?

2017-07-11T15:25:51.451070Z

@claudiu - yes, the AdStage admin app was built in untangled, though it hasn't seen much love since we introduced a way to log in directly from our main admin product (Rails + ActiveAdmin)

claudiu 2017-07-11T15:28:02.535823Z

@therabidbanana is the functionality presented in vistia live adstage demo. The untangled part or rails + active admin ?

2017-07-11T15:30:22.624736Z

Not sure what you're referencing - the medium blog?

claudiu 2017-07-11T15:32:22.701578Z

therabidbanana: https://adstage-marketing.wistia.com/medias/obveyri4mq this video

2017-07-11T15:35:51.832956Z

Heh, I've never even seen this before - looks like after around 23 minutes is the report product, written in untangled. If there was an admin panel in this video (on phone, hard to search) - it was very likely ActiveAdmin

tony.kay 2017-07-11T15:36:46.868147Z

@urbank no, I think you’re still misunderstanding me. I am at a real computer today. I’ll write an example.

tony.kay 2017-07-11T15:37:39.901767Z

@claudiu No, I don’t have a data flow diagram. There really isn’t much of one: app state goes to UI, mutations update app state. Remotes (as abstract queries and mutations) go to server. Response goes to app state.

tony.kay 2017-07-11T15:38:07.919692Z

it is really an Om data flow, other that Untangled provides all the abstractions you need to properly trigger loads via explicit queries

tony.kay 2017-07-11T15:38:53.949028Z

@mitchelkuijpers both branches? OH! That would mean that you ended up with table names that overlapped

tony.kay 2017-07-11T15:39:36.976268Z

because you had two ident functions that were putting two things in the same place. I should update the docs and recommend namespacing all keywords….esp. :routera/screen1 instead of just :screen1.

tony.kay 2017-07-11T15:40:24.006691Z

I keep writing things too quickly while forgetting to make the point that in larger apps it is a good idea to namespace things to avoid collisions.

claudiu 2017-07-11T15:40:25.007227Z

tony.kay: think I will need to write one. Had a tech discussion with our main javascript guy and the proposed solution for dataflow is 2 times more complex than this flux one https://uploads.toptal.io/blog/image/601/toptal-blog-image-1412170548235.png

tony.kay 2017-07-11T15:41:07.033663Z

which is 2x more complex than Untangled/Om Next…good point

claudiu 2017-07-11T15:42:03.068887Z

yep. It's just crazy 😞 he has a plan for: custom middleware over another middleware. Most be going crazy since I seem to be the only one in the team that has a problem with this :))

tony.kay 2017-07-11T15:43:05.108960Z

ah middleware…it helps in that scenario so it must be the tool for every job. I love it when you have a hammer 😉

tony.kay 2017-07-11T15:43:48.135576Z

mutation NAIL! communication NAIL! UI updates NAIL! Testing NAIL!

tony.kay 2017-07-11T15:44:04.145561Z

um guys, I think we could use a screw over here…NAIL!

claudiu 2017-07-11T15:45:11.187226Z

well :)) personally I have a big problem with the fact that for a simple form, to view every layer I need to open about 10 files :))

tony.kay 2017-07-11T15:45:34.201568Z

but..but…nail?

tony.kay 2017-07-11T15:45:38.204182Z

😄

claudiu 2017-07-11T15:45:42.207005Z

the argument is that it gives you a lot of flexibility 😞 looking at http://adstage.io our product isn't really that complex to begin with :))

claudiu 2017-07-11T15:46:30.237221Z

keeps bugging me 🙂 the new website with that width.

claudiu 2017-07-11T15:46:49.249192Z

You said something about redesign with some designers.

tony.kay 2017-07-11T15:47:08.260734Z

I once asked an engineer to write a 2 player console Blackjack that was testable. He wrote something that was super flexible, but didn’t really work and was 1000 lines long…when it can be done well with full tests in about 200. Yea! Flexible

claudiu 2017-07-11T15:47:20.268713Z

If it's not on the todolist, I looked a bit and since it's a html/css repo. Should be able to update it and modify a bit

tony.kay 2017-07-11T15:47:21.269257Z

Fetishizing complexity more like it.

tony.kay 2017-07-11T15:47:46.285351Z

Mitchel said he was having his design guy make a new tempalte for me.

claudiu 2017-07-11T15:48:30.312463Z

agh oky 🙂 so no point in me spending time to hack that one away 🙂

tony.kay 2017-07-11T15:48:48.323828Z

@claudiu You were mentioning you might want to work on the website. @mitchelkuijpers has a designer working on it, but if you wanted to quickly widen it as a temp measure that’s fine.

tony.kay 2017-07-11T15:49:28.348728Z

I should make a BDSM-style “motivational poster” that shows developers fetishizing complexity somehow 😜

tony.kay 2017-07-11T15:49:44.358411Z

we need more shock value on doing that stupid shit

claudiu 2017-07-11T15:50:27.385159Z

:))

claudiu 2017-07-11T15:51:13.413923Z

yep. Will give it a try. Those images have to be changed apart from that seems reasonable to modify.

claudiu 2017-07-11T15:51:34.427147Z

the template is pretty nice 😄 just that width issue 😞

tony.kay 2017-07-11T15:52:48.473927Z

I’ve not looked at it on a phone. Does it look ok? If so, it would be nice if it still shrinks for smaller screens?

claudiu 2017-07-11T16:11:12.155842Z

Its ok on phone but different images

mitchelkuijpers 2017-07-11T16:12:09.189108Z

@tony.kay I fixed it by adding a certain refresh key, it is still a weird issue. They did not have the same ident

mitchelkuijpers 2017-07-11T16:12:36.204874Z

I tried to reproduce on untangled template but failed

tony.kay 2017-07-11T16:13:12.225463Z

added an example of where the link query problem can happen

🙂 1
urbank 2017-07-12T16:56:47.301322Z

@tony.kay Heh, ok. I'll try to contribute next time 😛

tony.kay 2017-07-12T17:03:04.517406Z

It’s all good. I appreciate the effort, and I’m sure you learned something.

🙂 1
tony.kay 2017-07-11T16:19:09.429822Z

Though I don’t see why you’d load an entire screen’s state from a server instead of just the persistent bits.

claudiu 2017-07-11T16:51:21.516672Z

Really nice product. Seem pretty complex :)

2017-07-11T17:42:24.226010Z

Yeah, there's definitely a lot of surface area to it.

tony.kay 2017-07-11T17:51:09.522722Z

I’ve brought untangled-datomic into the new github namespace. Not sure how many ppl use it, but it seems like a worthwhile thing to keep in the ecosystem.

mitchelkuijpers 2017-07-11T17:58:19.766814Z

Yeah I also thought of path opt but it is definitely off