A Farmier subscriber that upgraded to farmOS v2 recently asked me about viewing “Equipment use logs” - which were easy to see on each Equipment asset page in farmOS v1. There are ways to get this information in v2, but not directly from the Equipment asset, so I’m considering adding this feature. There are some considerations, though, so I’m curious to get thoughts from others…
A little more background: all asset records in farmOS have a “Logs” tab, which shows all logs that reference them from the asset
field of the log. However, this does NOT show logs that reference the equipment in the equipment
(aka “Equipment used”) field of the log. So when you go to the equipment asset record, you can’t easily find logs that reference it as the “Equipment used” to perform the log.
The current workaround is you can go to any list of logs by type (eg: “Records > Logs > Activity”) and then use the exposed filter options to filter by “Equipment used”. This gives you the information you want, but a) intuitively you would expect to be able to find this information on the Equipment asset record itself, and b) you have to know what log type you’re looking for, you can’t see a list of all equipment use logs regardless of type.
The difference between the asset
field of the log and the equipment
field is: the asset
field means “the action happened TO the asset”, whereas the equipment
field means “this equipment was used to perform the action”. It’s a subtle but important distinction.
Consider this example: “I plowed Field A with Big Tractor” - this log would reference “Field A” in the asset
field and “Big Tractor” in the equipment
field. However, if you then go to the “Big Tractor > Logs” tab, you don’t see this log, because it didn’t happen TO the “Big Tractor” asset. On the other hand, if I created an “Oil change” maintenance log, I would reference “Big Tractor” in the asset
field, and that would show up in the “Big Tractor > Logs” tab.
So, this is a bit more than a question of what’s technically possible. It’s also a question of where would you intuitively look for this information? I would intuitively want to click on the “Big Tractor > Logs” tab… but should that be a mix of both logs that happened TO the tractor and WITH the tractor? Or should they be separate pages? My inclination is to make them separate pages, because that’s more explicit, but then it’s challenging to decide where to put that so that it’s intuitive.
One idea might be to put an additional “Equipment Use Logs” tab next to the existing “Logs” tab. That would be an easy solution, but it feels redundant, and could lead to confusion about what the difference is between the two. One advantage to this approach is we could have sub-tabs that break out the logs by type, which include type-specific columns+filters like the “Logs” tab does.
Another idea might be to add it as a sub-tab of “Logs”. For example: “Big Tractor > Logs > Equipment use logs”. That’s also easy technically, BUT it would be mixed in with the existing sub-tabs that filter by log type. So you would end up with tabs like “All logs”, “Harvest”, “Activity”, …, and “Equipment use logs”. The disadvantage is we couldn’t have sub-sub-tabs that break out equipment use logs by log type.
So… it sort of feels like an “Equipment Use Logs” tab is the “least bad” option. But maybe someone has a brilliant idea that elegantly considers all of the above?