IRC logs for #farmOS, 2022-07-07 (GMT)

2022-07-06
2022-07-08
TimeNickMessage
[12:02:55]<paul121[m]>farmOS dev call happening now!
[12:03:39]<mstenta[m]>I'll be back next week!
[13:49:39]* JustinCampbell[m has joined #farmos
[13:51:01]<JustinCampbell[m>ACTION uploaded an image: (229KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/bUykHzXYAuT... >
[13:51:09]<JustinCampbell[m>Mike I have a question about views and filtering.
[13:51:09]<JustinCampbell[m>Is there a way to filter parent assets by their children?
[13:51:09]<JustinCampbell[m>For example projects is a parent that contains operations as children. What would be the best approach to filter projects by operations? Trying to get a feel for what is possible and how challenging something like this would be to implement.
[13:52:20]<mstenta[m]>Hi Justin Campbell - are "Operations" logs? Or assets?
[13:52:43]<mstenta[m]>(Sounds like they should be logs? If they represent "events"...)
[13:53:08]<mstenta[m]>Logs have an Asset reference field by default, which allows you to see all logs associated with an asset
[13:53:20]<mstenta[m]>So you could see all Operation logs associated with a Project asset, perhaps
[13:53:29]<mstenta[m]>farmOS has Views built in for that
[13:54:22]<mstenta[m]>Although I'm not sure if that's what you're asking... do you want to "filter projects by their operations"? Or "filter operations by the project they are associated with"?
[14:44:50]<JustinCampbell[m>Thanks Mike! Filter projects by operations is what I was asking about.
[14:48:20]<mstenta[m]>Ok I guess I don't understand what "operations" are in your data model then 😅
[14:48:48]<mstenta[m]>How are they related to projects? Where is the reference field? What do they represent exactly?