< 302022-08-31⋎01 >

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
00:20symbioquine[m]<mstenta[m]> "Yea the enforced dependency..." <- I ended up changing the url format to include the "source module" rather than taking it from from enforced dependencies since I think it might be useful for a module to be able to provide optional config entities for Asset Link plugins that should only be enabled when certain other farmOS modules are enabled. The way I was getting the module from the enforced dependencies would have gotten
00:20symbioquine[m]in the way of that usage.
00:21symbioquine[m]Now it's much more explicit;... (full message at libera.ems.host/_matrix/media/r0/downloa)
00:22symbioquine[m]([ref commit](github.com/symbioquine/farmOS_asset_link))
00:25symbioquine[m]> I think it might be useful for a module to be able to provide optional config entities for Asset Link plugins that should only be enabled when certain other farmOS modules are enabled
00:25symbioquine[m]e.g. A module might provide plugins for market gardening and have certain asset actions that are only enabled when the material asset type is also available in the data model.
00:29symbioquine[m]* might provide Asset Link plugins for
00:33mstenta[m]That makes sense!
09:08FarmerEd[m]symbioquine: had a little play with the code from your bale example and I think Asset Link will be a very useful field tool.
09:08FarmerEd[m]Obviously still pre-Alpha with lots of work in progress, I created a json list for my own repo and it works but does not get stored so, does not survive a browser restart. Is this planned for cache storage? Or the ability to add to backend storage could be great to synchronize plugins across devices.
09:13*uploaded an image: (101KiB) < libera.ems.host/_matrix/media/r0/downloa >
09:13*uploaded an image: (108KiB) < libera.ems.host/_matrix/media/r0/downloa >
13:40symbioquine[m]> <@farmer-ed:matrix.org> symbioquine: had a little play with the code from your bale example and I think Asset Link will be a very useful field tool.... (full message at libera.ems.host/_matrix/media/r0/downloa)
13:41symbioquine[m]> you can add urls to the default plugin list through the farmOS UI
13:41symbioquine[m]By clicking "Settings", then going to the "Asset Link default plugins" tab
13:45symbioquine[m]> make peer-to-peer sharing/synchronization of plugins compelling/convenient/**secure**
13:45symbioquine[m]To the last point about plugin security, my main strategy thought has been that it will make sense to expand the ecosystem of plugin types to include support for more non-code/JSON data formats that express common use-cases - like recording quantity logs. Those data format plugins would require less trust because they would be more limited in what they could do...
13:46symbioquine[m]In [this post](farmos.discourse.group/t/asset-link-dev-) I demonstrated the functionality I released that allows plugins to interpret the data of other plugins and define functionality on their behalf.
13:48symbioquine[m]Soon, I hope to add better documentation/examples about that.
13:48FarmerEd[m]creating a plugin with the editor does not seem to be getting saved in cache either
13:49symbioquine[m]FarmerEd[m]: Interesting! What browser/OS/version?
13:49FarmerEd[m]Win 11 Chrome Version 104.0.5112.81 (Official Build) (64-bit)
13:50FarmerEd[m]Ill give Firefox a go now
13:57symbioquine[m]I probably should test more often in Chrome, I could easily have missed it if IndexedDB isn't getting persisted between browser restarts - though that would be surprising behavior...
13:58symbioquine[m]Maybe it gets more aggressive with clearing data if the data size is large.
14:05FarmerEd[m]Firefox saves from the editor to IndexexedDB but chrome it just disappears
14:05FarmerEd[m]Do you want me to open an issue?
14:06symbioquine[m]Sure 😁
14:06symbioquine[m]github.com/symbioquine/farmOS_asset_link
14:07FarmerEd[m]or even 2 😀
14:07symbioquine[m]Yeah, go to town if you like
14:19FarmerEd[m]<symbioquine[m]> "I probably should test more..." <- IndexedDB persists between restarts, but the plugin is not getting saved. As in plugins added by URL persist.
15:40mstenta[m]@room Weekly farmOS dev call is at noon Eastern today (20 minutes): meet.jit.si/farmos-dev
15:40mstenta[m]I'm still interested in talking about the bits I mentioned above, but I may be a little late to the call today...
15:41symbioquine[m]mstenta[m]: Tomorrow?
15:42symbioquine[m]it's normally on Thursday
15:42FarmerEd[m]Thought I'd lost a day there🤔
15:54mstenta[m]omg sorry!
15:54mstenta[m]off by one error! 😆
15:54mstenta[m]oh man that's actually a huge relief lol
15:54symbioquine[m]Haha, yeah
15:55symbioquine[m]Was thinking I had a bit more time to look over those issues at some point here...
15:55mstenta[m]i might be a little overworked rn 😅
16:32symbioquine[m]Farmer Ed: You're 3 for 3 on bug finding now. I can reproduce both of those ones you opened issues for 🧐
16:36FarmerEd[m]Cool, it'll give you something to do, I know how you are at a loose end these days 🤣
16:39symbioquine[m]Yeah 😅
18:37Mo[m]mstenta: you should join the `ddev` family! life will be so much easier haha
18:40paul121[m]Mo and I have been using ddev for local development and hope to start & share a repo on how we have it setup soon :P
18:41mstenta[m]Haha maybe I will!
18:41mstenta[m]I keep hearing about it :-)
18:41mstenta[m]Old dog / new tricks... 😄
19:53Mo[m]haha
20:15FarmerEd[m]symbioquine: I see you wasted no time with 0.6.1, guess I'll have to look for a few new bugs for you.
20:25FarmerEd[m]Is it possible to define a plugin in a module if asset link exists, but ignore otherwise?
20:28symbioquine[m]Yeah, I think you could just put the config yml in `/config/optional/` and make only the config, but not the module depend on Asset Link.
20:30FarmerEd[m]Nothing in particular in mind but I could see a situation where a module could have an optional asset link plugin for those who use asset link but would still need to be installable for those who don't.
20:30symbioquine[m]I haven't tested that, but that's my understanding of how config modules can be used. Maybe mstenta knows off hand and can confirm...
20:31symbioquine[m]s/modules/entities/
20:31mstenta[m]Yes! That's the exact use-case for "optional" config
20:31mstenta[m]It will only be installed if all the necessary dependencies exist
20:33mstenta[m]That way, your module can provide other stuff, without a hard dependency on asset link... but also provide asset link plugins (as config entities) that will be installed IF asset link is present
20:33mstenta[m]Isn't that neat? 😄
20:36symbioquine[m]What happens if the dependency is installed after the dependant?
20:37FarmerEd[m]It is! Could see it being a consideration for developing modules in future that can supply a plugin for Asset Link but not strictly depend on it.
20:39mstenta[m]> What happens if the dependency is installed after the dependant?
20:39mstenta[m]It will install the asset link plugins!
20:40FarmerEd[m]symbioquine[m]: The not so dependant dependants?
20:48mstenta[m]My understanding is: when a module gets installed, Drupal scans all the `config/optional` directories to see if there's any config that has all it's dependencies met, and then will install them too
20:49mstenta[m]I haven't experimented much with it, though... I've only used it for relatively simple cases... so ymmv
20:49mstenta[m](but from the sound of it, these would be simple cases, so should work great)
20:49symbioquine[m]mstenta[m]: Nice!
21:55paul121[m]So someone just requested a "Digital" asset type because they want to upload files/contracts/documents. I turned on Media + Media library modules and had a poke around. Seem quite powerful just out of the box. Any options on the media entity type?
22:01mstenta[m]I haven't tried it
22:01mstenta[m]But the idea of a "document" asset type has come up
22:06paul121[m]s/options/opinions*/
22:09paul121[m]I'm curious the reasons for having it be a full-fledged asset type. Surely there are some that we could dream up. But if you could reference media from assets/logs it seems like that could achieve something similar, although perhaps more complex
22:12mstenta[m]I guess I need to see how Media works
22:13mstenta[m]I'm assuming there would need to be some additional top-level menu item to provide access to "documents"?
22:13mstenta[m]Aka media entities?
22:14mstenta[m]Or would all navigation to those entities go through assets/logs?
22:19paul121[m]I think we want an additional menu, yea. The media library module provides a nice UI (hint: its just views!) for searching for media
22:20paul121[m]I think part of the goal is to have a nice place to upload documents that aren't necessarily associated with an asset
22:21paul121[m]But obviously linking an asset to media entities would be useful. I realize this creates a bit of a conundrum...
22:23paul121[m]At a simple level my understanding is that the Media entity is a File entity with additional metadata (fields!). You can have media types (bundles) to decide which media type gets what additional fields.
22:23mstenta[m]I wonder: does the Media module offer a field widget type for file/image fields? Could we just start using that on the existing fields? Would that bring the existing files/photos into a new organizational UI auto-magically?
22:24mstenta[m](I've always been curious about the new Media stuff... just started simple and figured we'd explore it eventually)
22:25mstenta[m]Don't want to over-complicate the existing workflow either though
22:25paul121[m]okay I'm going to take a little screen recording of what my local env has, I'll have to destroy it later but want to capture this. one sec :-)
22:26mstenta[m](might have to watch later... dinnertime here)
22:30*farmBOT has joined
22:30*uploaded a video: (11172KiB) < libera.ems.host/_matrix/media/r0/downloa >
22:31paul121[m]<mstenta[m]> "I wonder: does the Media..." <- added a quick media field to an asset, it does have a nice widget
22:31*uploaded an image: (62KiB) < libera.ems.host/_matrix/media/r0/downloa >

< 302022-08-31⋏01 >