< 142021-10-15⋎16 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
15:14mstenta[m]symbioquine: hey @pcambra and I discovered a bug today... i'm not sure if it's a bug with farmOS-map.js or something else, but it is related to the way the `farmOS-map-chunk-*` files are being loaded
15:15mstenta[m]Wondering if you're around and could help us understand that a bit
15:15symbioquine[m]Sure :)
15:15mstenta[m]We are in Zoom - would you like to join for a second? No pressure if you're busy
15:17symbioquine[m]I can join
21:19symbioquine[m]fyi mstenta & @pcambra: I opened an issue for that farmOS-map + off-canvas dialog problem: www.drupal.org/project/farm/issues/32439
21:20symbioquine[m]I think i have a vague idea what's going on and will hopefully get a chance to summarize it on that issue soon...
21:22mstenta[m]symbioquine oh I'm very curious! Does it seem to be a Drupal/gin issue? Or still hard to say?
21:22mstenta[m]Thanks for investigating and opening an issue!
21:24symbioquine[m]Something about how `farmOS-map.js` itself is getting loaded as part of the off-canvas dialog defeats Webpack's mechanism for constructing the relative path.
21:25symbioquine[m]It's unclear if it's a bug with the off-canvas dialog per-se.
21:25symbioquine[m]Possibly more like an incompatibility...
21:27mstenta[m]Oh interesting
21:27symbioquine[m]In the off-canvas dialog the stacktraces for the requests to the chunks show "injectedScript";
21:27*uploaded an image: (405KiB) < libera.ems.host/_matrix/media/r0/downloa >
21:28mstenta[m]Well fwiw it would be cool to start using off canvas in farmOS core, but we don't have any immediate plans yet ...
21:28symbioquine[m]Whereas in a dedicated tab, the requests show "farmOS-map.js";
21:28*uploaded an image: (342KiB) < libera.ems.host/_matrix/media/r0/downloa >
21:28mstenta[m]Hmm interesting
21:30mstenta[m]Maybe it's a core off canvas issue?
21:30mstenta[m](Drupal core)
21:30symbioquine[m]I have a work-around;... (full message at libera.ems.host/_matrix/media/r0/downloa)
21:30symbioquine[m]But it's not super elegant :(
21:32mstenta[m]So what's the deal with "injectedScript"?
21:32mstenta[m]Is drupal doing something odd?
21:33mstenta[m]🤔
21:34symbioquine[m]mstenta[m]: It doesn't look especially odd. It's just doing an [AJAX append command](www.drupal.org/docs/drupal-apis/ajax-api) to add the script tag for `farmOS-map.js` to the body...
21:35symbioquine[m]Which yields an almost identical script tag to the non-off-canvas-dialog case.
21:35mstenta[m]Hmm ok
21:36symbioquine[m]The main differences in the script tag attributes are;... (full message at libera.ems.host/_matrix/media/r0/downloa)
21:37symbioquine[m]It could have something to do with the `async` attribute, but I haven't come up with a good way to test that easily yet...
21:39mstenta[m]I wonder if there's any open issues for similar things in the webpack community
21:40mstenta[m]s/I wonder if there's any open issues for similar things in the webpack community/I wonder if there are any open issues for similar things in the webpack community/
21:43symbioquine[m]I did a little searching - by no means exhaustive. There's lots of similar kinds of issues, but none that looked like the same thing exactly...
21:45mstenta[m]Ah hmm
21:46paul121[m]<mstenta[m]> "Well fwiw it would be cool to..." <- yes plz :-)
21:46paul121[m]a goal for christmas
22:02symbioquine[m]I believe it is hitting this case in the dynamic path resolution and pulling a path from another script tag on the page; github.com/webpack/webpack/blob/8a6d156c

< 142021-10-15⋏16 >