< 192022-08-20⋎21 >

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
09:00*thattechguy[m] has quit (Quit: You have been kicked for being idle)
10:34FarmerEd[m]symbioquine: installed asset link this morning on a dev instance. Looks Good but need to have a look through your plugin tutorial later
13:45symbioquine[m]Yeah, it likely won't be super useful without a few more plugins
13:54FarmerEd[m]No, but I get the idea. Lots of potential will have to have a good think about what I'd like it to do first.
13:56FarmerEd[m]Observation logs for breeding are the obvious first choice for me, will see what time I find in the next few days.
13:57symbioquine[m]If you want to hop on a call at some point and play with writing plugins together, that might be pretty helpful for me too...
13:58FarmerEd[m]Yea, we can do that at some stage, would be great.
14:13symbioquine[m]<FarmerEd[m]> "Observation logs for breeding..." <- I'm trying to think what we'd need in the data model to support that...
14:14symbioquine[m]My inclination would be to put the "gestation/incubation term" as a field on the animal type
14:15FarmerEd[m]Yes, would be a good idea, it's even variable between breeds of cattle by a few days.
14:16symbioquine[m]I was thinking that the logic we write could be aware of the `animal_type` hierarchy.
14:17symbioquine[m]i.e. if you have an animal type `Cattle` and `Cattle - hefeweizen` it would take the gestation term from the most specific one
14:19symbioquine[m]Where `Cattle` is a parent of `Cattle - hefeweizen` and `Cow: Sally` has her `animal_type` relation set to `Cattle - hefeweizen`, it would take the gestation period from `Cattle - hefeweizen` if specified and otherwise from `Cattle`.
14:22symbioquine[m]mstenta: What do you think about new core fields for the `animal_type` taxonomy; `days_to_breeding_age` and `gestation_days`?
14:23symbioquine[m]`plant_type` has "Days to transplant" and "Days to maturity"
15:39FarmerEd[m]Would be great if it was easier to add fields to taxonomy with custom modules. Paul showed me a way which works fine but not great for redistribution in modules.
15:39symbioquine[m]I think I've been using a reasonable approach for that...
15:41symbioquine[m]Creating gist...
15:44FarmerEd[m]Does it require some tweaking with views UI or work completely with code?
15:45symbioquine[m]gist.github.com/symbioquine/8e54e16860fc
15:46symbioquine[m]No tweaking with Views UI
15:47symbioquine[m]symbioquine[m]: The files that are named with the `config_install_` prefix should actually be in the `config/install/` directory.
15:49FarmerEd[m]Cool, away from computer now, but I'll have a good look at that later.
15:53FarmerEd[m]Think I've learned more from a few pointers from a few of you guys than various software modules I've done in college or tried online.
15:55FarmerEd[m]Of course it helps that I'm working on farm software I want/need and not a fictional system for a made up company.
15:58symbioquine[m]FarmerEd[m]: I learned so much more in school (than I would have otherwise) from having parallel extracurricular software projects that I could apply what I was learning and pursue additional avenues of exploration.
16:00mstenta[m]> mstenta: What do you think about new core fields for the `animal_type` taxonomy; `days_to_breeding_age` and `gestation_days`?
16:00mstenta[m]Perhaps! I wonder if it would make sense to start a farm_breeding module that provides those (and uses them)
16:00mstenta[m]In contrib first
16:01FarmerEd[m]Well I suppose we all learn differently. It's not like I didn't take any of it in either, just things click better if I have a goal that interests me.
16:02mstenta[m]> Would be great if it was easier to add fields to taxonomy with custom modules. Paul showed me a way which works fine but not great for redistribution in modules.
16:02mstenta[m]Agreed. This is the pitfall currently
16:02mstenta[m]> `plant_type` has "Days to transplant" and "Days to maturity"
16:02mstenta[m]Yea, although I regret adding those before they were used anywhere (and we had to keep them ever since for BC)
16:02mstenta[m]Although curious to grok symbioquine's workaround! On my phone at the moment
16:03symbioquine[m]> <@mstenta:matrix.org> > mstenta: What do you think about new core fields for the `animal_type` taxonomy; `days_to_breeding_age` and `gestation_days`?
16:03symbioquine[m]>
16:03symbioquine[m]> Perhaps! I wonder if it would make sense to start a farm_breeding module that provides those (and uses them)
16:03symbioquine[m]That could work. I'd probably only put the data model parts (and maybe a quick form) in that module...
16:03mstenta[m]I'm assuming it uses hooks to avoid config?
16:03symbioquine[m]mstenta[m]: I think you helped me figure it out :)
16:03mstenta[m]Lol maybe
16:04symbioquine[m]mstenta[m]: Yeah, it defines the field/storage, then uses `hook_entity_form_display_alter`/`farmos_crop_taxonomic_info_entity_view_display_alter` to display the fields.
16:04mstenta[m]I think I need to upgrade my brain's memory 😅
16:22mstenta[m]Great!
16:23mstenta[m](Wonder if farmOS core should provide any helper logic for that, so contrib wouldnt have to)
16:23symbioquine[m]Though, it's actually not much code...
16:24symbioquine[m]Might be nice if there was a config-only approach I suppose.
16:29FarmerEd[m]<symbioquine[m]> "Though, it's actually not much..." <- Probably not, but definitely useful, I've seen a few use cases for additional fields.

< 192022-08-20⋏21 >