< 292022-01-30⋎31 >

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
04:01*FreshiesFarmsLLC has quit (K-Lined)
04:01*skipper_is[m] has quit (K-Lined)
04:01*MarcosCarballal[ has quit (K-Lined)
04:01*symbioquine[m] has quit (K-Lined)
04:01*qoyyuum[m]1 has quit (K-Lined)
04:01*coilWinder[m] has quit (K-Lined)
04:01*mstenta[m] has quit (K-Lined)
04:01*sgoodall[m] has quit (K-Lined)
04:01*paul121[m] has quit (K-Lined)
04:01*Noaht[m] has quit (K-Lined)
04:01*jgaehring[m] has quit (K-Lined)
04:01*scrdcow[m] has quit (K-Lined)
04:39*spitz234[m] has joined
04:39*Anonymous[m]12 has joined
04:39*raul[m] has joined
04:39*CoilWindernovuso has joined
04:40*IyarkaiTechLab[m has joined
04:40*farmtech[m] has joined
04:40*paul121[m] has joined
04:40*iuresearcherpw[m has joined
04:40*mindcls[m] has joined
04:40*postmanpat[m] has joined
04:40*symbioquine[m] has joined
04:40*SpencerOnazi[m] has joined
04:40*kunigunde[m] has joined
04:40*mstenta[m] has joined
04:40*frederike[m] has joined
04:40*munjoma[m] has joined
04:40*davd[m] has joined
04:40*olaf[m] has joined
04:40*gunter[m] has joined
04:40*phantomse[m] has joined
04:40*OmkarEkbote[m] has joined
04:40*and712[m] has joined
04:40*qoyyuum[m] has joined
04:40*gretel[m] has joined
04:40*aislinnpearson[m has joined
04:40*steinfarm[m] has joined
04:40*matrixtrix[m] has joined
04:40*harry[m]12 has joined
04:40*lordeddi[m] has joined
04:40*scrdcow[m] has joined
04:40*AllanMacGregor[m has joined
04:40*med65[m] has joined
04:40*Noaht[m] has joined
04:40*oliverp44[m] has joined
04:40*MarcosCarballal[ has joined
04:40*jgaehring[m] has joined
04:40*hra38192639[m] has joined
04:40*goldi[m] has joined
04:40*skipper_is[m] has joined
04:40*shane_aldrich[m] has joined
04:40*sgoodall[m] has joined
04:40*ChristophWolfes[ has joined
04:40*JanSonntag[m] has joined
04:40*ludwa6[m] has joined
04:40*FreshiesFarmsLLC has joined
04:49*spitz234[m] has quit (Quit: Client limit exceeded: 20000)
04:49*CoilWindernovuso has quit (Quit: Client limit exceeded: 20000)
16:00*Anonymous[m]12 has quit (Quit: You have been kicked for being idle)
18:48*jgaehring[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*raul[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*farmtech[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*harry[m]12 has quit (Quit: Bridge terminating on SIGTERM)
18:48*steinfarm[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*aislinnpearson[m has quit (Quit: Bridge terminating on SIGTERM)
18:48*matrixtrix[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*postmanpat[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*symbioquine[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*gunter[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*munjoma[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*SpencerOnazi[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*oliverp44[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*MarcosCarballal[ has quit (Quit: Bridge terminating on SIGTERM)
18:48*AllanMacGregor[m has quit (Quit: Bridge terminating on SIGTERM)
18:48*med65[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*goldi[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*hra38192639[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*FreshiesFarmsLLC has quit (Quit: Bridge terminating on SIGTERM)
18:48*gretel[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*qoyyuum[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*IyarkaiTechLab[m has quit (Quit: Bridge terminating on SIGTERM)
18:48*mstenta[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*ChristophWolfes[ has quit (Quit: Bridge terminating on SIGTERM)
18:48*frederike[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*davd[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*scrdcow[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*phantomse[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*kunigunde[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*iuresearcherpw[m has quit (Quit: Bridge terminating on SIGTERM)
18:48*mindcls[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*Noaht[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*lordeddi[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*ludwa6[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*JanSonntag[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*olaf[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*paul121[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*skipper_is[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*shane_aldrich[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*sgoodall[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*and712[m] has quit (Quit: Bridge terminating on SIGTERM)
18:48*OmkarEkbote[m] has quit (Quit: Bridge terminating on SIGTERM)
18:51*calbasi[m] has joined
19:07*spitz234[m] has joined
19:07*raul[m] has joined
19:07*CoilWindernovuso has joined
19:07*mstenta[m] has joined
19:07*munjoma[m] has joined
19:07*kunigunde[m] has joined
19:07*davd[m] has joined
19:07*and712[m] has joined
19:07*OmkarEkbote[m] has joined
19:07*frederike[m] has joined
19:07*gretel[m] has joined
19:07*SpencerOnazi[m] has joined
19:07*jgaehring[m] has joined
19:07*paul121[m] has joined
19:07*goldi[m] has joined
19:07*postmanpat[m] has joined
19:07*gunter[m] has joined
19:07*IyarkaiTechLab[m has joined
19:07*farmtech[m] has joined
19:07*shane_aldrich[m] has joined
19:07*JanSonntag[m] has joined
19:07*phantomse[m] has joined
19:07*aislinnpearson[m has joined
19:07*steinfarm[m] has joined
19:07*oliverp44[m] has joined
19:07*Noaht[m] has joined
19:07*qoyyuum[m] has joined
19:07*ChristophWolfes[ has joined
19:07*harry[m]12 has joined
19:07*ludwa6[m] has joined
19:07*skipper_is[m] has joined
19:07*iuresearcherpw[m has joined
19:07*med65[m] has joined
19:07*AllanMacGregor[m has joined
19:07*sgoodall[m] has joined
19:07*FreshiesFarmsLLC has joined
19:07*lordeddi[m] has joined
19:07*symbioquine[m] has joined
19:07*matrixtrix[m] has joined
19:07*MarcosCarballal[ has joined
19:07*hra38192639[m] has joined
19:07*olaf[m] has joined
19:07*mindcls[m] has joined
19:07*scrdcow[m] has joined
19:07*Anonymous[m]1234 has joined
19:16*calbasi[m] has quit (Quit: Client limit exceeded: 20000)
19:25*spitz234[m] has quit (Quit: Client limit exceeded: 20000)
19:25*CoilWindernovuso has quit (Quit: Client limit exceeded: 20000)
19:34*raul[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*kunigunde[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*postmanpat[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*farmtech[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*IyarkaiTechLab[m has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*SpencerOnazi[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*OmkarEkbote[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*and712[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*Anonymous[m]1234 has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*davd[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*goldi[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*steinfarm[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*harry[m]12 has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*aislinnpearson[m has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*hra38192639[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*mindcls[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*olaf[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*iuresearcherpw[m has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*frederike[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*gretel[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*gunter[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*phantomse[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*AllanMacGregor[m has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*JanSonntag[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*ludwa6[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*lordeddi[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*oliverp44[m] has quit (Quit: You% have% been% kicked% for% being% idle)
19:36*ChristophWolfes[ has quit (Quit: You% have% been% kicked% for% being% idle)
19:46symbioquine[m]Out of curiousity, shouldn't [this code](github.com/farmOS/farmOS/blob/04bf771d91) need to honor the field collection item revision id when selecting the animal id tag data?
19:51symbioquine[m]Also, why can the migration of [plant type taxonomy term parents](github.com/farmOS/farmOS/blob/04bf771d91) work recursively, but (presumably) asset parents can't - because they'
19:51symbioquine[m]s/Also, why can the migration of [plant type taxonomy term parents](github.com/farmOS/farmOS/blob/04bf771d91) work recursively, but (presumably) asset parents can't - because they'/Also, why can the migration of [plant type taxonomy term
19:51symbioquine[m]parents](github.com/farmOS/farmOS/blob/04bf771d91) work recursively, but (presumably because they're done in stages with the migration groups) asset parents can't?/
19:51paul121[m]Oh, that is because assets can reference other assets as their "parent"
19:51paul121[m]Oh.. wait 😁
19:51paul121[m]* ~Oh, that, * their "parent"~
19:51paul121[m]Sorry thought I had a quick answer. But might be because assets are being migrated from areas and asset entities
20:10symbioquine[m]<paul121[m]> "Sorry thought I had a quick..." <- Yeah, that's one of my top hypotheses too.
20:14symbioquine[m]Well, actually I think that doesn't totally make sense since in 1.x an area couldn't be the parent of an asset or visa versa so there shouldn't be any relationships of that nature to migrate...
20:55mstenta[m]> Out of curiousity, shouldn't [this code](github.com/farmOS/farmOS/blob/04bf771d91) need to honor the field collection item revision id when selecting the animal id tag data?
20:55mstenta[m]symbioquine field collections were not revisioned in v1 - so they only had one ID
20:55mstenta[m](iirc - speaking from memory here)
20:55symbioquine[m]Awesome!
20:55symbioquine[m]Was hoping that wasn't a lurking bug :)
20:57mstenta[m]> Also, why can the migration of [plant type taxonomy term parents](github.com/farmOS/farmOS/blob/04bf771d91) work recursively, but (presumably because they're done in stages with the migration groups) asset parents can't?
20:57mstenta[m]yea basically: terms (like plant type) could only reference parents in the same vocabulary, but technically it's possible for an asset to reference a parent of a different type
20:57mstenta[m]so we migrate all the asset parent relationships after we have migrated all the different asset types
20:58mstenta[m]in practice, that is probably never the case, but had to cover the possibility...
20:59mstenta[m]the reason we don't auto-assign parents for areas is because there are potentially multiple area migrations as well (eg: if a module provided a custom area type, they will need to provide a migration for that type too)
20:59symbioquine[m]Ah, I see. So through the UI you could only create in-bundle parent relationships, but technically the data model supported cross-bundle parent relationships so it seemed prudent to have the migration support those too?
20:59mstenta[m]actually i think the UI allowed cross-bundle relationships too
20:59mstenta[m](and still does)
20:59symbioquine[m]oh :)
20:59mstenta[m]that may seem weird, but it actually enables some neat things...
21:00mstenta[m]eg: in the future, if we create "product" assets that get created from other asset types, they may reference those other assets as their parents
21:00symbioquine[m]Makes sense
21:00mstenta[m]or: you might harvest a Material asset from a Plant asset :-)
21:01symbioquine[m]yeah
21:02symbioquine[m]I'm trying to figure out whether www.drupal.org/project/farm/issues/31908 is blocking me... In 1.x I had a module that added custom fields to the crop terms like this;... (full message at libera.ems.host/_matrix/media/r0/downloa)
21:03symbioquine[m]Am I right in thinking something parallel to `FarmEntityBundlePluginHandler` is the cleanest way to handle that?
21:04mstenta[m]ah right... did you see how the `plant_type` terms add fields?
21:04mstenta[m]www.drupal.org/project/farm/issues/31908 should not block you
21:05mstenta[m]github.com/farmOS/farmOS/blob/2.x/module
21:05mstenta[m]github.com/farmOS/farmOS/blob/2.x/module
21:05mstenta[m]tl;dr: there are technically two ways to add fields in Drupal 9... as "base/bundle" fields or as "config fields"
21:06mstenta[m](terrible names, very confusing)
21:06symbioquine[m]Perfect! I'll try that :)
21:07mstenta[m]"config fields" are sort of the "normal" way to add fields... and that's possible for all entity types
21:07mstenta[m]for `asset`, `log`, `plan`, (and i think `quantity`?) we leverage the contrib `entity` module so that we have the option of defining fields in PHP code/classes instead
21:08mstenta[m]www.drupal.org/project/farm/issues/31908 is basically to consider doing the same for `taxonomy_term` entities... although i don't know if the complexity will justify it
21:10mstenta[m]symbioquine[m]: the best way to add config fields is actually through the UI! enable the `field_ui` module and go to `/admin/structure/taxonomy` and "Manage fields" on the vocabulary you want
21:10mstenta[m]then, you can export their config to YML files in your module's `config/install` directory
21:11mstenta[m](via `/admin/config/development/configuration/single/export`)
21:11mstenta[m]fields have two config entities: "field storage" and "field", which are equivalent to D7's "field storage" and "field instance" concepts
21:11mstenta[m]s/storage/base/
21:11symbioquine[m]Yep, got it :)
21:13mstenta[m]you will also need to export two other config entities, if you want your new fields to be visible in the UI...
21:13mstenta[m]"entity form display" and "entity view display"
21:14mstenta[m]those basically configure the order of fields in form/display, as well as what widgets should be used
21:14mstenta[m]the annoying thing about those is: they include all fields on the bundle... not just the field you're adding
21:15mstenta[m]this is the core reason why we went with base/bundle fields instead of config fields for most things in farmOS core... to avoid the need to provide those entity form/view display config entities
21:15mstenta[m]this is probably one of the more complicated/annoying aspects of v2, IMO :-)
21:16mstenta[m]perhaps "less elegant that i would like" is a better descriptor :-)
21:16mstenta[m]but the hope is that some of this stuff will get ironed out in Drupal core upstream eventually...
21:19symbioquine[m]Hmmm, so without something like Config Rewrite, I'm stuck maintaining a copy (plus my fields) of those form/view display yml files?
21:19symbioquine[m]And if two modules needed to provide fields to the same entity, the changes couldn't be encapsulated within the module itself?
21:20mstenta[m]exactly
21:20symbioquine[m]Darn
21:20mstenta[m]that's why we avoided those for all the entity types we could
21:20symbioquine[m]I guess I've been spoiled by `hook_farm_entity_bundle_field_info`
21:21mstenta[m]yeaaa
21:21mstenta[m]:-/
21:22mstenta[m]that only works for entity types with the bundle plugin handler stuff
21:22mstenta[m]so yea... if you wanted that then www.drupal.org/project/farm/issues/31908 *is* a blocker
21:33symbioquine[m]Would there be any downside to adding the form/view display stuff with alter hooks? e.g. `hook_entity_form_display_alter`
21:51mstenta[m]huh - i can't remember but i think i looked into that... it was a long time ago
21:52mstenta[m]my gut memory is telling me "something doesn't work as expected with those hooks" haha but i could be wrong! worth a try if you want to test it out!
21:53symbioquine[m]Yeah, I'll see what happens :)

< 292022-01-30⋏31 >