< 162026-02-17⋎18 >

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
14:43mstenta[m]paul121 symbioquine I opened a PR for this old forgotten issue: www.drupal.org/project/farm/issues/32492
15:03symbioquine[m]I guess you decided not to do the typed argument approach like Paul was suggesting?
15:04symbioquine[m]What you did definitely seems like a less intrusive change though so 🤷
15:26mstenta[m]Well... things have changed since we last discussed this... BUT as I was replying to this I realized the geojson View is still broken (which Paul pointed out originally) - I forgot to test that
15:26mstenta[m]farm_ui_views_add_bundle_handlers became farm_ui_views_add_handlers (IIRC), which then became FarmUiViewsHelper::addHandlers()
15:28mstenta[m]I'll look back to find the exact commits, but I think that we dropped the $bundle argument back then... so the idea of making that argument a EntityTypeInterface no longer applies
15:28mstenta[m]But the spirit of Paul's suggestion still applies:
15:28mstenta[m]> That way the caller of the method needs to make sure they have a correct bundle.
15:29mstenta[m]And I only tested the original Views, not the geojson one (the only other place in core that we call FarmUiViewsHelper::addHandlers())
15:29mstenta[m]I'll push a fix for that as well...
15:32mstenta[m]mstenta[m]: github.com/farmOS/farmOS/commit/34616cc0
15:38mstenta[m]added a commit to also fix geojson views: github.com/farmOS/farmOS/pull/1048/chang
15:39mstenta[m]I don't think we need to do more than that at this point... this is a very low impact bug
15:40mstenta[m]You have to request non-existent bundles by crafting the URL manually... it doesn't occur anywhere on its own in the UI.

< 162026-02-17⋏18 >