< 112023-05-12⋎13 >

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
05:12*explore has joined
09:50Ujeeee[m]Hi, I clone my plant assets, so many times, and the name has "clone" in it, so I try to rename them all from mysql with adminer, but it won't change in farmOS, I do this because I don't know how to import from csv files.
11:40mstenta[m]Ujeeee: It's not a good idea to make changes to farmOS data directly in the database. For one reason, it is stored in multiple places, like the revisions table as well. Also, Drupal may need to run additional logic when changes are made to make sure they propagate everywhere they need to. It is better to use Drupal's PHP APIs or the JSON:API to make changes because then you can be sure those things will happen.
11:41mstenta[m]Drupal also caches a lot of information, which may explain why you didn't see the change appear immediately when you modified the database directly. Drupal takes care of invalidating caches as needed when data is changed through its APIs.
11:57Ujeeee[m]<mstenta[m]> "Ujeeee: It's not a good idea..." <- thanks for answering my question. I delete all my assets clone, for now I will just use inventory.
11:58mstenta[m]If you are familiar with Python, there is an example in here for importing assets via CSV: farmos.org/blog/2023/quick-intro-to-pyth
12:06Ujeeee[m]<mstenta[m]> "If you are familiar with Python,..." <- thanks for the info, but for now I think this inventory is enough.
12:52Ujeeee[m]The things I don't understand regarding assets in farmOS is "how to put assets in an asset?". I can't find field for this. There is only "parent".
12:54mstenta[m]Ujeeee: Do you mean how do you move one asset to another? This might help: farmos.org/guide/location/
12:54mstenta[m]This too: farmos.org/blog/2022/getting-started
12:57*uploaded an image: (31KiB) < libera.ems.host/_matrix/media/v3/downloa >
12:57Ujeeee[m]I mean this location field
12:58*uploaded an image: (30KiB) < libera.ems.host/_matrix/media/v3/downloa >
12:58Ujeeee[m]It suppose to be in this asset "Blok 1"
13:00mstenta[m]Click the checkbox next to all of your plant assets, and select the "Move" action from the dropdown
13:00mstenta[m]This will allow you to create a single movement log to assign their location to Block 1
13:00mstenta[m]s/Block/Blok/
13:01mstenta[m]Asset location is determined by movement logs
13:01mstenta[m]So in order for an asset to be "located" somewhere, it needs a log that "moves" it there
13:04*uploaded an image: (23KiB) < libera.ems.host/_matrix/media/v3/downloa >
13:04*uploaded an image: (31KiB) < libera.ems.host/_matrix/media/v3/downloa >
13:04Ujeeee[m]still nothing
13:07mstenta[m]Hmm if you click on one of your plant assets does it show the location as Blok 1?
13:09Ujeeee[m]Oh I think, it is because I check the "is fixed" box
13:09mstenta[m]Oh yes
13:13mstenta[m]This might also help: farmos.org/model/logic/location
16:44*farmBOT has joined
16:56*explore has quit (Quit: Connection closed for inactivity)
17:36mstenta[m]> I wonder if we could hack the breakpoint to make them horizontal tabs on mobile?
17:36mstenta[m]paul121 I'm poking around a bit with this to see what our options are...
17:36mstenta[m]I also asked in the #gin room on Slack and Sascha pointed out that this is actually a Claro issue, Gin inherits it
17:37mstenta[m]I found this core issue, although not much to it: www.drupal.org/project/drupal/issues/328
21:18paul121[m]<mstenta[m]> "> I wonder if we could hack..." <- > <@mstenta:matrix.org> > I wonder if we could hack the breakpoint to make them horizontal tabs on mobile?
21:18paul121[m]>
21:18paul121[m]> paul121 I'm poking around a bit with this to see what our options are...
21:18paul121[m]I found the two template files `menu-local-tasks` and `menu-local-task` and was able to hack a secondary dropdown together.. really not too bad
21:19paul121[m]The CSS and JS is pretty confusing to me too but this helps makes the secondary behave like the primary
21:19*uploaded an image: (46KiB) < libera.ems.host/_matrix/media/v3/downloa >
21:19*uploaded an image: (50KiB) < libera.ems.host/_matrix/media/v3/downloa >
21:31mstenta[m]Hey not bad!
21:32mstenta[m]> The CSS and JS is pretty confusing to me
21:32mstenta[m]Haha yea! I gave up 😅
21:33paul121[m]added to the PR
23:48*explore has joined

< 112023-05-12⋏13 >