| 01:24 | symbioquine[m] | I was curious about the current state of 2.x development so I started playing around with the 2.x branch following these [setup instructions](2x.farmos.org/development/environment/)... I see there are more fields defined in the source, have I set it up wrong or is there more development work needed for those fields to be editable through the UI? |
| 01:24 | * | uploaded an image: image.png (74KiB) < matrix.org/_matrix/media/r0/download/mat > |
| 01:25 | mstenta[m] | aha! i'm actually working on that at this very moment :-) |
| 01:25 | symbioquine[m] | oh, cool |
| 01:26 | mstenta[m] | basically: in D9, you create fields as config files, but then you organize the "form display" and "view display" as a config file itself |
| 01:26 | mstenta[m] | so i've been adding fields, just haven't added the form/view display config yet... so all the fields are hidden by default in the form and display |
| 01:27 | symbioquine[m] | figured it might be something like that :) |
| 01:27 | mstenta[m] | the form/view display config is a bit trickier, because it's all in one file per log/asset type... and i want to allow the "Equipment" field to be optional... which means that config needs to be somewhat dynamically generated/altered |
| 01:28 | mstenta[m] | the fields themselves are easy because they are one YML config file per field - so the equipment field can be added without needing to modify any existing config |
| 01:29 | symbioquine[m] | When you say "optional" you mean only present when the equipment module is enabled right? |
| 01:29 | mstenta[m] | yea |
| 01:30 | mstenta[m] | you're familiar with the "dynamic field" module in farmOS 1.x right? |
| 01:30 | mstenta[m] | i think i remember you looking at that :-) |
| 01:30 | mstenta[m] | so... that's not needed in D9 anymore - because fields can pretty easily be added just by providing a YML file in the module that wants to add it... the only tricky part is adding it to the form/display config |
| 01:31 | symbioquine[m] | Interesting |
| 01:31 | symbioquine[m] | So you need some sort of hook mechanism so that the other module can extend the form/display of the core module for the asset? |
| 01:31 | paul121[m] | Enable the Field UI module, then go to admin -> structure -> asset/log types -> manage display/form display |
| 01:31 | paul121[m] | That will allow you to poke around if you want! |
| 01:32 | mstenta[m] | yea still thinking through what the best approach will be, and what the options are... |
| 01:33 | mstenta[m] | the drupal 9 config system is really really slick |
| 01:33 | paul121[m] | * Enable the Field UI module, then go to admin -> structure -> asset/log types -> manage display/form edit display (something like that) |
| 01:33 | paul121[m] | That will allow you to poke around if you want! |
| 01:34 | mstenta[m] | but our use case as a distro is somewhat unique, so figuring out the best ways to manage config has been fun :-) |
| 01:34 | mstenta[m] | FYI big picture: we have NOT been doing much with the 2.x UI yet... sort of focusing on data model + API + migration to start |
| 01:35 | mstenta[m] | so you'll find it very lacking in that regard :-) |
| 01:35 | symbioquine[m] | No worries |
| 01:35 | symbioquine[m] | Just trying to get my feet under me to see 1) what it will take to port my custom stuff over 2) where it might make sense to help out |
| 01:36 | mstenta[m] | awesome! yea excited to have you poke around! |
| 01:36 | mstenta[m] | feel free to ask questions... the roadmap/issues are taking shape, but could use some updating/additions |
| 01:37 | mstenta[m] | in general, the big data model pieces left are: areas/movements/location (i'm working on), quantities (Paul is wokring on), inventory, group membership |
| 01:37 | mstenta[m] | we're thinking about making inventory part of the quantity fields... |
| 01:37 | mstenta[m] | and i'm thinking about approaching group membership similar to location |
| 01:38 | mstenta[m] | so i'm optimistic that things will fall together pretty quickly |
| 01:38 | symbioquine[m] | <mstenta[m] "feel free to ask questions... th"> Thanks, will do! |
| 01:39 | mstenta[m] | oh and plans |
| 01:39 | mstenta[m] | we will be starting on some of the ui/ux stuff before data model is 100% complete too... pcambra and I are going to be porting the forest plan module to 2.x, and will be trying to focus on some of the main things that needs (including maps) |
| 01:40 | mstenta[m] | lots of moving pieces, but moving along! :-) |
| 01:40 | symbioquine[m] | <mstenta[m] "we're thinking about making inve"> Abstractly, that makes a lot of sense since I've observed that having two ways of tracking "amounts" of things can be confusing to new users - and inventory could benefit from a concept of units. Naturally, getting the details right is a little harder :) |
| 01:41 | mstenta[m] | yes! that's exactly the reasoning... eg: recording an input that applies a certain amount of material to a field... you don't want to have to enter the same value in two places on the log (one for the quantity and one for the inventory adjustment) |
| 01:41 | symbioquine[m] | I take it www.drupal.org/project/issues/farm is the main place where the outstanding work is being tracked? |
| 01:42 | mstenta[m] | so i think we'll just essentially add a checkbox to quantities "adjust inventory" or something, which then shows two more fields: an asset reference, and dropdown "increment/decrement/reset" options |
| 01:42 | mstenta[m] | yes! here is the main roadmap issue: www.drupal.org/project/farm/issues/30928 |
| 01:42 | mstenta[m] | that branches into child issues... |
| 01:43 | mstenta[m] | the roadmap is pretty well organized... definitely a work in progress |
| 01:43 | mstenta[m] | the high level meta issues cover all the main areas of work |
| 01:43 | mstenta[m] | the lower level tasks are more sparse |
| 01:44 | mstenta[m] | i need to go through and give them a pass to update |
| 09:00 | * | canadrian[m] has quit (Quit: Idle for 30+ days) |
| 15:59 | * | cpm has joined |
| 16:00 | * | munjoma[m] has quit (Quit: Idle for 30+ days) |
| 16:00 | * | wombat83[m] has quit (Quit: Idle for 30+ days) |
| 18:14 | * | cpm has quit (Quit: Leaving) |