< 032021-06-04⋎05 >

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
09:13*NicholasPetrakak has joined
12:03*farmBOT has joined
18:09* < matrix.org/_matrix/media/r0/download/mat >
18:14paul121[m]hmm yes I think you might be right
18:14symbioquine[m]cool
18:15paul121[m]ah well, no not necessarily :-)
18:16paul121[m]this is where I was hesitant on going full-on with "instance" settings
18:17paul121[m]all this allows right now is changing the default `onFocusOnly` setting that is passed when creating new instances
18:17symbioquine[m]But as written currently the `drupalSettings.farm_map[mapId].instance` wouldn't do anything because nothing's populating it right?
18:17* < matrix.org/_matrix/media/r0/download/mat >
18:18symbioquine[m]ah, I see
18:18paul121[m]so I guess the question is, should it be possible to add other `options` in that global drupalSettings area?
18:19paul121[m]or should it always be under the `instances.{id}.instance` key?
18:19paul121[m]or should farmOS-map have a more standardized method? :-)
18:20paul121[m]this was definitely a first step though and totally open to thoughts on this!
18:22symbioquine[m]<paul121[m] "so I guess the question is, shou"> It looks like there's currently code that does that; github.com/farmOS/farmOS/blob/eae26e5e7f
18:23paul121[m]<paul121[m] "so I guess the question is, shou"> ah, so this is what we're doing with WKT: github.com/paul121/farmOS/blob/25aafb017
18:23paul121[m]yep, and I think WKT is the only core one that does it
18:23symbioquine[m]But of course, as we discussed in github.com/farmOS/farmOS-map/issues/110, the behavior has to manually get stuff out of there in its code.
18:24paul121[m]right
18:25paul121[m]I'd like to see behaviors not have to depend on `drupalSettings` but perhaps that is a longshot right now
18:26paul121[m]ah, also here: github.com/paul121/farmOS/blob/25aafb017
18:28paul121[m]we should decide on a more standard way to provide these things
18:32paul121[m]I think there should be a distinction of `instance` settings.. maybe the `map_type` `options` should really just be `instance_settings` ?
18:33paul121[m]but also having a more general set of `options` that behaviors could pull from... I see this being useful, especially with the config entity

< 032021-06-04⋏05 >