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