archived farmOS options are appearing in dropdown
In the current FarmOS integration, we have the ability to show a dropdown list of Field
and Plants
available to the logged in user. This implementation should only show non-archived items, but it currently showing all items.
-
For the Plantings question, show only non-archived plantings -
For the Field question, show only the non-archived Fields
Here is an example difference of the query to get non-archived only
- /api/asset/plant
- /api/asset/plant?filter[status]=active
In the future, this same rule should apply to other assets like groups
(herds) and equipment
.