< 082022-12-09⋎10 >

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
03:30*farmB748 has joined
03:33*farmB748 is now known as farmB748
03:33*farmBOT has quit (Killed (NickServ (GHOST command used by farmB748)))
03:38*farmB753 is now known as farmB753
06:29*farmBOT has joined
13:23*uploaded an image: (111KiB) < libera.ems.host/_matrix/media/v3/downloa >
13:24FarmerEd[m]Wouldn't make sense to display current inventory on this screen?
13:25FarmerEd[m]And the export csv
13:31FarmerEd[m]* Wouldn't it make sense
13:32mstenta[m]Yea! And actually this seems related to something we discussed on the call yesterday. I think if the inventory field were a "bundle" field it would automatically show up. But it's a "base" field, so it doesn't. Maybe we should make base fields that are added via `hook_entity_base_field_info()` as columns automatically.
13:32mstenta[m](tbh I think I assumed that inventory was already showing up as a column...)
13:35FarmerEd[m]Maybe even a Dashboard widget for most commonly used materials?
13:35FarmerEd[m]Or select materials, if some are more relevant at different times of year?
13:36mstenta[m]Great ideas!
13:36mstenta[m]Maybe materials marked with a "Priority" flag?
13:36mstenta[m](that wouldn't help with the seasonal priorities though - but it would be simple)
13:37mstenta[m]start simple and iterate from there maybe :-)
13:39FarmerEd[m]Well if you can nominate which flags are the displayed materials, then perhaps flags by season?
13:40mstenta[m]yea perhaps! or maybe the dashboard widget has some config that lets you define the filters more generally, so you could decide how it filters down to relevant asset
13:41mstenta[m](i could see that functionality being useful for all kinds of dashboard widgets)
13:41mstenta[m]gosh maybe we just need a "dashboard widget builder" :-)
13:42mstenta[m]at some point we're basically just reinventing drupal though
13:43mstenta[m]if you are self-hosting you can create a View of exactly what you want, with a Block display, and then add it to the dashboard
13:43mstenta[m]currently adding to the dashboard requires implementing a hook in a module IIRC, but pcambra's module makes the dashboard use layout builder - which means you can place blocks via the UI too (no need for a module at all)
13:44mstenta[m](as i understand it)_
13:44FarmerEd[m]Yea, was following some of that
13:45FarmerEd[m]of course widget plugins/modules would be nice too. :D
13:45mstenta[m]yes exactly... i think there's a balance, and providing some things "out of the box" is worth doing too
13:45mstenta[m]the material inventory widget is a great idea IMO
13:46mstenta[m]"Priority material inventory" perhaps as a very simple first step
13:46mstenta[m]that would be an easy View+Block to create
13:46mstenta[m](without any user-configurable stuff to start is simple)
13:47mstenta[m]Want to whip that up together on the next dev call? :-)
13:47mstenta[m]Can get you started at least and then you can take it from there and make it into a PR if you want
13:47FarmerEd[m]Sure,
13:48mstenta[m]It really would only take a few minutes I think!
13:48mstenta[m](unless we discover something I'm not considerring)
13:50FarmerEd[m]I haven't been too good at keeping inventory to date, but been keeping up with my bale inventory this year, really makes planning ahead a bit easier.
13:50mstenta[m]nice!
13:50mstenta[m]an inventory quick form is something else i've been thinking about
13:51mstenta[m]i whipped up a maple tapping quick form in the farm_maple module which tracks tap inventory - could use that as a guide
13:52FarmerEd[m]I've been using symbioquine asset link, which is working well for this
13:53FarmerEd[m]maybe I need the inventory displayed here:
13:53*uploaded an image: (123KiB) < libera.ems.host/_matrix/media/v3/downloa >
13:57FarmerEd[m]Also toying with the idea of installing Node-Red locally on an Android device in the tractor and link baler counter for incrementing bale inventories at the end of baling when tractor returns to WiFi coverage in the yard.
14:36mstenta[m]nice!
15:01FarmerEd[m]I just installed Node-Red on my phone and it works! Need to decide now between a tablet or Android head unit for tractor.
15:01FarmerEd[m]Could be developed into another offline field too! (for Android users only though)
15:05mstenta[m]HA!
15:06mstenta[m]You might be taking this node-red stuff too far Farmer Ed 😆
15:06mstenta[m](j/k that's awesome)
15:09FarmerEd[m]You might think so.....
15:09FarmerEd[m]Maybe farmOS 3.0 gets built with low code 😆
15:12symbioquine[m]It kind of already is... if you count how much functionality is defined just with Yaml in 2.x
15:15FarmerEd[m]True, was kind of thinking that as I hit send
15:17*uploaded an image: (15KiB) < libera.ems.host/_matrix/media/v3/downloa >
15:17mstenta[m]Ah yea... I remember when YAML was the majority - in the early days of 2.x dev 😄
15:18mstenta[m]twitter.com/getFarmier/status/1313872008
15:18mstenta[m]the automated tests really killed that dream 😜
15:19FarmerEd[m]Still pretty high though, but even yaml is more code than many Node-Red users would like.
15:21FarmerEd[m]The more complex my Node-Red flows become, the more the become more JavaScript than no code.
15:23FarmerEd[m]But then again I didn't know any JavaScript before I started using it.
15:24FarmerEd[m]s/the/they/
15:58mstenta[m]paul121: I'm trying to get back into www.drupal.org/project/farm/issues/33102 - which basically only needs tests, but I'm finding a strange issue in my local dev environment... every kernel test i try to run fails with This test did not perform any assertions
15:59mstenta[m]have you encountered this?
15:59mstenta[m]i might just need to rebuild my local dev environment - not sure what's up
16:12mstenta[m]hmm. rebuilding local dev did not work.
17:29mstenta[m]works fine in github actions
17:29mstenta[m]bah this is frustrating
18:32mstenta[m]🤦 fixed it.
18:32mstenta[m]I don't know why exactly it wasn't working... but I found that I had both web/profiles/farm and web/profiles/profiles/farm (by accident) and deleting the latter made tests work again 🤷
19:16mstenta[m]symbioquine paul121 Do you remember where we landed on the `$timestamp` parameter data type?
19:16mstenta[m]My current branch has:... (full message at <libera.ems.host/_matrix/media/v3/downloa>)
19:16mstenta[m]But if you recall that was one of the things I was looking for thoughts on when we talked about it a long time ago...
19:17mstenta[m]I think we landed on defaulting it to NULL instead, right? Does that sound familiar?
19:18mstenta[m]Because 0 is actually a valid timestamp :-)
19:26mstenta[m](the only slight argument against that was that it's less type-strict...)
19:26mstenta[m](int|null instead of always int)
19:44symbioquine[m]<mstenta[m]> "I think we landed on defaultin..." <- I feel like this was definitely one of the top options...
19:45symbioquine[m]and the simplest of the ones which allows Jan 1st 1970 as an input
19:50mstenta[m]cool - i'll go with that
19:50mstenta[m]i couldn't remember if there was a third option
19:50mstenta[m]paul121 might
19:51symbioquine[m]One approach we talked about was having two methods one without the timestamp argument which just gets the current timestamp and invokes the second one which takes the timestamp.
19:52symbioquine[m]Another was having some other kind of sentinel value which would be more self-documenting in the calling code - i.e. "NOW" as a string.

< 082022-12-09⋏10 >