< 152020-09-16⋎17 >

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
01:53*JustTB has quit (Quit: Leaving.)
09:00*gretel[m] has left ("Kicked by @appservice-irc:matrix.org : Idle for 30+ days")
09:00*rsteup[m] has left ("Kicked by @appservice-irc:matrix.org : Idle for 30+ days")
11:29*farmBOT has joined
17:22paul121[m]development question for y'all..
17:22paul121[m]I'm building a custom page that displays a list of Planting assets
17:22paul121[m](can't use views for this)
17:23paul121[m]and I'm adding 2 dropdown select fields to filter the plantings by Crop Family and Variety
17:24paul121[m]I thought there might be a helper function to load all crop/variety terms that are a part of a Crop Family
17:24paul121[m]but didn't see any!
17:24paul121[m]had to write EntityFieldQueries for taxonomy terms that reference the Crop Family
17:25paul121[m]is there an easier way to do this? (did I miss the helper function?)
17:25paul121[m]and would this be a useful helper function to add to core?
17:25mstenta[m]No, I don't think there is a helper function.
17:26mstenta[m]To be honest, the Crop Family taxonomy was added early on, but was never really taken anywhere after that
17:26mstenta[m]It's not used anywhere except in the Crop/variety terms as a term reference
17:26mstenta[m]If you want to add a helper function, feel free! I would have probably suggested `EntityFieldQuery`, so you're on the right track. :-)
17:27paul121[m]ah gotcha
17:27paul121[m]there is a `taxonomy_term_get_children` method
17:27paul121[m]which is similar, but doesn't bridge the gap of Crops/Varieties and Crop Families
17:27paul121[m]do you envision us keeping the Crop Families vocabulary?
17:27mstenta[m]right - that's only for getting child terms within the same taxonomy
17:28mstenta[m]> do you envision us keeping the Crop Families vocabulary?
17:28mstenta[m]that's the 64 thousand dollar question... ;-)
17:28paul121[m] * there is a `taxonomy_get_children` method
17:28mstenta[m]It has always felt like a hanging thread to me, honestly
17:28paul121[m]hahah
17:28mstenta[m]If I could go back, I might not have added it in the first place
17:29paul121[m]it is added complexity, which adds to the general learning curve (but also really isn't too complex)
17:30paul121[m]when there are ~100 Crop/Variety terms, I think it is useful to have the separate Crop Families vocab
17:30paul121[m]rather than requiring the terms to be in a hierarchy
17:30mstenta[m]yea
17:31mstenta[m]the whole topic of crop lists is sort of a round peg in a square hole with the Drupal taxonomy approach... it was the most logical way to do it, but there are some limitations
17:32mstenta[m] * the whole topic of crop lists is sort of a round peg in a square hole with the Drupal taxonomy approach... it was the most logical way to do it when we started, i think, but there are some limitations
17:33mstenta[m]i wish we had a better plan for 2.x, but i have a feeling we'll just need to keep what we have for 2.0.0... and maybe give thought to a better system (plus migration) after
17:34paul121[m]hm okay
17:34mstenta[m]open to ideas as always! :-)
17:34paul121[m]curious what the limitations are?
17:35mstenta[m]maybe not so much "limitations" as "UX difficulties"
17:35paul121[m]but in that regard, makes sense to have a helper function that abstracts how the families & varieties are implemented under the hood
17:35paul121[m]so that implementing code might not be affected
17:35mstenta[m]it's very free form right now, which makes it flexible...
17:36mstenta[m]there are some questions about if/how these might connect to the "Plant Data Service" in the future
17:36mstenta[m]i'm sort of waiting to see how that all develops
17:45paul121[m]makes sense. thanks for the info!
18:50*and712[m] has joined
19:32mstenta[m]FYI all: a Drupal 7 security update was just released. I don't think it critically affects farmOS (because everything requires user login), but worth updating when you can.
19:32mstenta[m]Here is the SA: www.drupal.org/sa-core-2020-007
19:32mstenta[m]I updated farmOS already: github.com/farmOS/farmOS/commit/6f85c888
19:33mstenta[m]All Farmier-hosted sites are updated.
19:34mstenta[m]If you are self-hosting, you can either update to the dev release of farmOS (www.drupal.org/project/farm/releases/7.x) or patch manually.
19:35mstenta[m](Not sure if that dev release has been regenerated yet... check the "updated" timestamp and wait for it to update before downloading)
19:35mstenta[m]I created a simple patch file that you can use to easily apply the changes without doing a full code update: gist.github.com/mstenta/8a7d54d47bb12c2e
19:36mstenta[m]Note that that patch ASSUMES you are running Drupal 7.72 (farmOS 7.x-1.5). If you are farther behind than that, then don't apply that patch.

< 152020-09-16⋏17 >