< 102021-06-11⋎12 >

farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Feature requests and bug reports: github.com/farmOS/farmOS/issuesSet by ChanServ on 2018-08-16 at 14:32
04:20*farmBOT has joined
05:18*svenn has quit (K-Lined)
14:33symbioquine[m]<symbioquine[m] "I can take a look tomorrow - abo"> I think the changes may be slightly broken/fragile in that they don't set weights on the behaviors, but `farmOS.map.behaviors.asset_type_layers` depends on side-effects from `farmOS.map.behaviors.popup` github.com/farmOS/farmOS/blob/46c70131ff
14:33symbioquine[m]Not absolutely sure about the determinism of JS object key iteration, but I suspect that's non-deterministic...
14:35mstenta[m]ah so to summarize we could end up seeing `asset_type_layers` load before `popup`
14:35mstenta[m]in which case `instance.popup` would not be set
14:36symbioquine[m]I think so. Just checking whether JS guarantees the object key iteration order...
14:36mstenta[m](my internal questions to investigate later: did we have weights in 1.x? we haven't seen that happen, but would it happen now in 2.x + farmOS-map 1.x, and/or with 2.x + farmOS-map 2.x)
14:36mstenta[m] * (my internal questions to investigate later: did we have weights configured on these two behaviors explicitly for this in 1.x? we haven't seen that happen, but would it happen now in 2.x + farmOS-map 1.x, and/or with 2.x + farmOS-map 2.x)
14:37mstenta[m](my head is in something else so i can't dig in at the moment - just sharing thoughts/questions that come to mind)
14:37symbioquine[m]Yeah, no rush :) I'll see if I can find any answers in the meantime.
14:41mstenta[m]did you experience this issue in testing? or just came to mind looking at code?
14:41symbioquine[m]Just from looking at the code
14:43mstenta[m]that logic was carried over pretty much unchanged from 1.x FWIW
14:43mstenta[m]although the weights is an open question
14:43symbioquine[m]It looks like it will probably always work because JS seems to iterate over Object keys in insertion order for non-numeric keys: stackoverflow.com/questions/5525795/does
14:44mstenta[m]interesting! didn't even think about that consideration
14:44symbioquine[m]I don't think we should depend on that, but that's a different question.
14:44mstenta[m]yea
14:44symbioquine[m]github.com/farmOS/farmOS-map/blob/04a360 (and JS sort is stable too)
14:45mstenta[m]doesn't look like we had weights on those behaviors in 1.x either...
14:45symbioquine[m]yep
14:45mstenta[m]popup: github.com/farmOS/farmOS/blob/7.x-1.x/mo
14:45mstenta[m]area details: github.com/farmOS/farmOS/blob/7.x-1.x/mo
14:45symbioquine[m]so it was just depending on the order in which the JS got loaded :)
14:46mstenta[m](here's an example where we DID use weight: github.com/farmOS/farmOS/blob/2b64bc8e7c)
19:46*svenn has joined
22:32JSimonGoodall[m]Hello good people, any idea why I would get this message "Uncaught TypeError: i.elementFromPoint is not a function" when I try to change background map to google? I have already inserted a valid API key. I am using a docker container
22:44mstenta[m]Hi J.Simon Goodall - hmm haven't encountered this before. What browser/version are you using?
22:44JSimonGoodall[m]firefox 89.0
22:45JSimonGoodall[m]good idea :( will try it in another browser
22:45mstenta[m]Found this: stackoverflow.com/questions/2904753/docu
22:47mstenta[m]I use Firefox and haven't encountered this
22:47mstenta[m]But definitely worth trying in another browser
22:47mstenta[m]Sounds like a client side browser issue
22:48JSimonGoodall[m]Chromium and Opera give me the same error
22:48mstenta[m]Huh
22:49JSimonGoodall[m]with the API key it is only the key itself I asume, you don't have to feed it key=.....
22:49JSimonGoodall[m]and the javascript console does not mention anything of the key anyway
22:57JSimonGoodall[m]Solved, sorry for wasting your time, created the key but did not enable it...
23:08mstenta[m]Oh good!

< 102021-06-11⋏12 >