| 00:20 | symbioquine[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:20 | symbioquine[m] | in the way of that usage. |
| 00:21 | symbioquine[m] | Now it's much more explicit;... (full message at libera.ems.host/_matrix/media/r0/downloa) |
| 00:22 | symbioquine[m] | ([ref commit](github.com/symbioquine/farmOS_asset_link)) |
| 00:25 | symbioquine[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:25 | symbioquine[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:29 | symbioquine[m] | * might provide Asset Link plugins for |
| 00:33 | mstenta[m] | That makes sense! |
| 09:08 | FarmerEd[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:08 | FarmerEd[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:40 | symbioquine[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:41 | symbioquine[m] | > you can add urls to the default plugin list through the farmOS UI |
| 13:41 | symbioquine[m] | By clicking "Settings", then going to the "Asset Link default plugins" tab |
| 13:45 | symbioquine[m] | > make peer-to-peer sharing/synchronization of plugins compelling/convenient/**secure** |
| 13:45 | symbioquine[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:46 | symbioquine[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:48 | symbioquine[m] | Soon, I hope to add better documentation/examples about that. |
| 13:48 | FarmerEd[m] | creating a plugin with the editor does not seem to be getting saved in cache either |
| 13:49 | symbioquine[m] | FarmerEd[m]: Interesting! What browser/OS/version? |
| 13:49 | FarmerEd[m] | Win 11 Chrome Version 104.0.5112.81 (Official Build) (64-bit) |
| 13:50 | FarmerEd[m] | Ill give Firefox a go now |
| 13:57 | symbioquine[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:58 | symbioquine[m] | Maybe it gets more aggressive with clearing data if the data size is large. |
| 14:05 | FarmerEd[m] | Firefox saves from the editor to IndexexedDB but chrome it just disappears |
| 14:05 | FarmerEd[m] | Do you want me to open an issue? |
| 14:06 | symbioquine[m] | Sure 😁 |
| 14:06 | symbioquine[m] | github.com/symbioquine/farmOS_asset_link |
| 14:07 | FarmerEd[m] | or even 2 😀 |
| 14:07 | symbioquine[m] | Yeah, go to town if you like |
| 14:19 | FarmerEd[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:40 | mstenta[m] | @room Weekly farmOS dev call is at noon Eastern today (20 minutes): meet.jit.si/farmos-dev |
| 15:40 | mstenta[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:41 | symbioquine[m] | mstenta[m]: Tomorrow? |
| 15:42 | symbioquine[m] | it's normally on Thursday |
| 15:42 | FarmerEd[m] | Thought I'd lost a day there🤔 |
| 15:54 | mstenta[m] | omg sorry! |
| 15:54 | mstenta[m] | off by one error! 😆 |
| 15:54 | mstenta[m] | oh man that's actually a huge relief lol |
| 15:54 | symbioquine[m] | Haha, yeah |
| 15:55 | symbioquine[m] | Was thinking I had a bit more time to look over those issues at some point here... |
| 15:55 | mstenta[m] | i might be a little overworked rn 😅 |
| 16:32 | symbioquine[m] | Farmer Ed: You're 3 for 3 on bug finding now. I can reproduce both of those ones you opened issues for 🧐 |
| 16:36 | FarmerEd[m] | Cool, it'll give you something to do, I know how you are at a loose end these days 🤣 |
| 16:39 | symbioquine[m] | Yeah 😅 |
| 18:37 | Mo[m] | mstenta: you should join the `ddev` family! life will be so much easier haha |
| 18:40 | paul121[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:41 | mstenta[m] | Haha maybe I will! |
| 18:41 | mstenta[m] | I keep hearing about it :-) |
| 18:41 | mstenta[m] | Old dog / new tricks... 😄 |
| 19:53 | Mo[m] | haha |
| 20:15 | FarmerEd[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:25 | FarmerEd[m] | Is it possible to define a plugin in a module if asset link exists, but ignore otherwise? |
| 20:28 | symbioquine[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:30 | FarmerEd[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:30 | symbioquine[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:31 | symbioquine[m] | s/modules/entities/ |
| 20:31 | mstenta[m] | Yes! That's the exact use-case for "optional" config |
| 20:31 | mstenta[m] | It will only be installed if all the necessary dependencies exist |
| 20:33 | mstenta[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:33 | mstenta[m] | Isn't that neat? 😄 |
| 20:36 | symbioquine[m] | What happens if the dependency is installed after the dependant? |
| 20:37 | FarmerEd[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:39 | mstenta[m] | > What happens if the dependency is installed after the dependant? |
| 20:39 | mstenta[m] | It will install the asset link plugins! |
| 20:40 | FarmerEd[m] | symbioquine[m]: The not so dependant dependants? |
| 20:48 | mstenta[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:49 | mstenta[m] | I haven't experimented much with it, though... I've only used it for relatively simple cases... so ymmv |
| 20:49 | mstenta[m] | (but from the sound of it, these would be simple cases, so should work great) |
| 20:49 | symbioquine[m] | mstenta[m]: Nice! |
| 21:55 | paul121[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:01 | mstenta[m] | I haven't tried it |
| 22:01 | mstenta[m] | But the idea of a "document" asset type has come up |
| 22:06 | paul121[m] | s/options/opinions*/ |
| 22:09 | paul121[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:12 | mstenta[m] | I guess I need to see how Media works |
| 22:13 | mstenta[m] | I'm assuming there would need to be some additional top-level menu item to provide access to "documents"? |
| 22:13 | mstenta[m] | Aka media entities? |
| 22:14 | mstenta[m] | Or would all navigation to those entities go through assets/logs? |
| 22:19 | paul121[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:20 | paul121[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:21 | paul121[m] | But obviously linking an asset to media entities would be useful. I realize this creates a bit of a conundrum... |
| 22:23 | paul121[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:23 | mstenta[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:24 | mstenta[m] | (I've always been curious about the new Media stuff... just started simple and figured we'd explore it eventually) |
| 22:25 | mstenta[m] | Don't want to over-complicate the existing workflow either though |
| 22:25 | paul121[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:26 | mstenta[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:31 | paul121[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 > |