IRC logs for #farmOS, 2022-05-12 (GMT)

2022-05-11
2022-05-13
TimeNickMessage
[20:38:39]* symbioquine[m] has quit (Ping timeout: 240 seconds)
[20:38:59]* toino[m] has quit (Ping timeout: 240 seconds)
[20:38:59]* TheSlurpee[m] has quit (Ping timeout: 240 seconds)
[20:38:59]* spitz234[m] has quit (Ping timeout: 240 seconds)
[20:39:00]* mstenta[m] has quit (Ping timeout: 248 seconds)
[20:39:07]* ChinchillaWashin has quit (Ping timeout: 240 seconds)
[20:39:07]* scrdcow[m] has quit (Ping timeout: 240 seconds)
[20:39:07]* dazinism[m] has quit (Ping timeout: 240 seconds)
[20:39:19]* ludwa6[m] has quit (Ping timeout: 256 seconds)
[20:39:19]* FarmerEd[m] has quit (Ping timeout: 256 seconds)
[20:39:20]* GuilhermePerotta has quit (Ping timeout: 248 seconds)
[20:39:21]* nickhudson[m] has quit (Ping timeout: 248 seconds)
[20:39:21]* petednz[m] has quit (Ping timeout: 248 seconds)
[20:39:21]* jgaehring[m] has quit (Ping timeout: 248 seconds)
[20:39:27]* calbasi[m] has quit (Ping timeout: 240 seconds)
[20:39:32]* tool172[m] has quit (Ping timeout: 248 seconds)
[20:39:32]* Noaht[m] has quit (Ping timeout: 248 seconds)
[20:39:50]* AnasHaddad[m] has quit (Ping timeout: 260 seconds)
[20:39:50]* monkeyflowerfarm has quit (Ping timeout: 260 seconds)
[20:39:50]* paul121[m] has quit (Ping timeout: 260 seconds)
[20:39:53]* MarcosCarballal[ has quit (Ping timeout: 260 seconds)
[21:09:06]* mstenta[m] has joined #farmos
[21:09:36]* ChinchillaWashin has joined #farmos
[21:11:52]* symbioquine[m] has joined #farmos
[21:14:25]* scrdcow[m] has joined #farmos
[21:17:50]* FarmerEd[m] has joined #farmos
[21:18:28]* nickhudson[m] has joined #farmos
[21:20:25]* jgaehring[m] has joined #farmos
[21:20:25]* petednz[m] has joined #farmos
[21:22:55]* botlfarm[m] has joined #farmos
[21:22:56]<botlfarm[m]>Thanks mstenta This is great!
[21:25:48]* dazinism[m] has joined #farmos
[21:29:06]* MarcosCarballal[ has joined #farmos
[21:31:35]* toino[m] has joined #farmos
[21:34:40]* spitz234[m] has joined #farmos
[21:35:36]* tool172[m] has joined #farmos
[21:38:54]* TheSlurpee[m] has joined #farmos
[21:40:32]* ludwa6[m] has joined #farmos
[21:42:24]* calbasi[m] has joined #farmos
[21:47:24]* jgaehring[m] has quit (Ping timeout: 240 seconds)
[21:47:48]* ludwa6[m] has quit (Ping timeout: 240 seconds)
[21:47:48]* nickhudson[m] has quit (Ping timeout: 240 seconds)
[21:47:48]* ChinchillaWashin has quit (Ping timeout: 240 seconds)
[21:47:56]* toino[m] has quit (Ping timeout: 250 seconds)
[21:47:57]* FarmerEd[m] has quit (Ping timeout: 250 seconds)
[21:48:12]* dazinism[m] has quit (Ping timeout: 240 seconds)
[21:48:22]* TheSlurpee[m] has quit (Ping timeout: 250 seconds)
[21:48:22]* botlfarm[m] has quit (Ping timeout: 250 seconds)
[21:48:22]* mstenta[m] has quit (Ping timeout: 250 seconds)
[21:51:24]* paul121[m] has joined #farmos
[21:59:57]* Noaht[m] has joined #farmos
[22:02:51]* GuilhermePerotta has joined #farmos
[22:06:17]* AnasHaddad[m] has joined #farmos
[22:08:06]* monkeyflowerfarm has joined #farmos
[22:09:29]* TheSlurpee[m] has joined #farmos
[22:10:14]* botlfarm[m] has joined #farmos
[22:10:18]* mstenta[m] has joined #farmos
[22:11:11]* jgaehring[m] has joined #farmos
[22:11:28]* ludwa6[m] has joined #farmos
[22:12:21]* nickhudson[m] has joined #farmos
[22:13:20]* toino[m] has joined #farmos
[22:15:51]* ChinchillaWashin has joined #farmos
[22:16:57]* FarmerEd[m] has joined #farmos
[22:17:41]* dazinism[m] has joined #farmos
[05:54:08]<FarmerEd[m]>mstenta: If you get a chance, have a quick look at https://www.drupal.org/project/entity_reference_revisions/issues/3267304...
[05:54:08]<FarmerEd[m]>it looks to me like the patch file uploaded but my comment may be blocked as I'm an unconfirmed user on Drupal.org
[05:54:08]<FarmerEd[m]>I assume you can confirm my account as a community member?
[06:41:26]<mstenta[m]>Ah great Farmer Ed!!
[06:41:50]<mstenta[m]>I just opened the link on my phone and I see your comment and patch, so it looks like it worked!
[06:43:02]<mstenta[m]>Oh but... Looks like the patch has more in it than the merge request... Oops. The git diff command I gave you might have been wrong... :-(
[06:43:34]<mstenta[m]>Sorry!
[06:43:41]<FarmerEd[m]>😁
[06:44:02]<mstenta[m]>I can take a closer look in a few hours... Gotta get the kids off to school etc
[06:44:24]<mstenta[m]>My bad
[06:47:49]<mstenta[m]>The git diff basically needs to compare the MR branch and the most recent commit on the main branch. Maybe what I wrote missed something... trying to think... 🤔
[07:21:10]<FarmerEd[m]>Out on the farm at the moment myself, talk to you in a few hours so.
[11:14:00]<FarmerEd[m]>Should it be more like this? git diff from-commit to-commit > output-file
[11:18:01]<mstenta[m]>yes that would work too!
[11:18:09]<mstenta[m]>i just sat down to take a look too :-)
[11:19:04]<mstenta[m]>ultimately we want to end up with something that looks similar to this diff: https://git.drupalcode.org/project/entity_reference_revisions/-/merge_re...
[11:21:14]<paul121[m]>Can you copy/paste this? Or does it not include latest changes? https://git.drupalcode.org/project/entity_reference_revisions/-/merge_re...
[11:21:35]<mstenta[m]>oh nice!
[11:21:44]<mstenta[m]>that looks right
[11:21:54]<mstenta[m]>forgot GitLab could generate that!
[11:22:38]<FarmerEd[m]>Cool
[11:23:01]<mstenta[m]>(I do like to avoid using the GitLab generated patches *directly* in our `composer.json`, and prefer a patch that is explicitly attached to a d.o comment, just because if the MR changes then that patch changes...)
[11:23:02]<FarmerEd[m]>But I'm still interested for education purposes
[11:23:20]<mstenta[m]>huzzah! well now you've got something to compare against!
[11:23:26]<mstenta[m]>thanks paul121 !
[11:28:59]<MarcosCarballal[>ACTION uploaded an image: (50KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/lsaLFtdtpBY... >
[11:29:17]<MarcosCarballal[>Hi guys, looking to change the display format for php asset definition
[11:29:58]<MarcosCarballal[>I have field definitions like this... (full message at https://libera.ems.host/_matrix/media/r0/download/libera.chat/ce9d6e1234...)
[11:30:51]<MarcosCarballal[>That get passed into farmFieldFactory->bundleFieldDefinitions()
[11:30:51]<MarcosCarballal[>I am hoping to change the display type to a select list
[11:32:12]<mstenta[m]>Marcos Carballal: I think you can do that after you use the field factory to generate the initial definition...
[11:32:29]<mstenta[m]>Not sure the exact code, but I can probably find a rough example...
[11:33:24]<mstenta[m]>https://github.com/farmOS/farmOS/blob/83188d52fff7445b4581b9bd3c6f3984ca...
[11:34:08]<mstenta[m]>hmm actually that's not the best example maybe... it's not for an entity reference field
[11:34:09]<mstenta[m]>but you can at least see what it might look like
[11:34:23]<mstenta[m]>this bit specifically:
[11:34:25]<mstenta[m]> ->setDisplayOptions('form', [
[11:34:25]<mstenta[m]> 'type' => 'entity_reference_autocomplete',
[11:34:25]<mstenta[m]> 'weight' => 10,
[11:34:25]<mstenta[m]> ])
[11:35:14]<mstenta[m]>`setDisplayOptions()` is a method on the base/bundle field definition classes
[11:35:40]<mstenta[m]>the field factory basically uses that itself, and for entity reference fields it defaults to `entity_reference_autocomplete`
[11:35:48]<mstenta[m]>you basically just want to override those settings to make it a select list
[11:35:59]<mstenta[m]>although I'm not sure off the top of my head what that needs to look like in code
[11:37:18]<mstenta[m]>oh wait sorry... maybe your field isn't an entity reference... i may have misread
[11:37:24]<mstenta[m]>either way, same basic idea
[11:37:39]<MarcosCarballal[>It is a taxonomy reference
[11:37:51]<mstenta[m]>oh ok then yes. it's an entity reference. :-)
[11:41:38]<mstenta[m]>on a more general note: it looks like you're adding fields for soil test values? i'm not sure if Brandon has talked to y'all yet but we're working on a scope of work with USDA right now to work on this exact kind of thing! with the hope that PODS could adopt it in the future. might be worth all getting on a call sometime soon to sync up and think ahead to that... everything's been a bit shuffled and shifting with things happening in parallel.
[11:41:38]<mstenta[m]>and of course we could always migrate from whatever you build to the future solution, so probably not a make-or-break decision right now... just worth mentioning!
[11:55:33]<mstenta[m]>@room FYI the weekly dev call starts in 5 minutes - all are welcome :-)
[11:55:38]<mstenta[m]>https://meet.jit.si/farmos-dev
[13:22:23]<MarcosCarballal[>When would we like to schedule a time to go over Form API with PODS developers?
[13:22:23]<MarcosCarballal[>It seems like most of the team is free 12-1 time block and 3-4 time block tomorrow, otherwise we can schedule for next week :).
[13:22:23]<MarcosCarballal[>Thanks a lot for offering to do that, I think it will get us heading down the right path.
[13:23:25]<mstenta[m]>If that's Eastern time then I won't be able tomorrow.
[13:24:15]<mstenta[m]>Basically only available 11-12
[13:24:19]<MarcosCarballal[>Yes, sorry. EST. No problem at all, what's your availability like Mon/Tues?
[13:25:00]<mstenta[m]>Tuesday 1-3 is open
[13:31:33]<MarcosCarballal[>I just sent out an invite for 2pm on Tuesday.
[13:41:23]<FarmerEd[m]>Had to run off before the end of the conversation on asset owners. I was going to say the idea of using the scopes could allow for additional types of owners.
[13:41:23]<FarmerEd[m]>In the EU and probably UK, on livestock farms there is a legal owner and a separate legal herd/flock keeper as well as potential separate assignees for the assets.
[13:41:23]<FarmerEd[m]>A herd keeper and owner may or may not be the same person.