< 052022-10-06⋎07 >

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
09:00*ionitatelecom[m] has quit (Quit: You have been kicked for being idle)
13:29*zackmuma[m] has joined
14:46mstenta[m]Farmer Ed: Your blog post just got a mention in the #goatech:matrix.org room :-)
14:47symbioquine[m]The RPi hosting one?
14:47symbioquine[m]Oh, I see the NodeRed one :)
14:51FarmerEd[m]Cool. 👍
14:52*uploaded an image: (96KiB) < libera.ems.host/_matrix/media/r0/downloa >
14:53mstenta[m]Michael DeChellis was there with his "Home Assistant in a Bag™" 😄
14:53mstenta[m](Previous "farmOS in a Bag™" - but he said he recently moved that to a server IIRC... Michael if you're in here correct me if I'm wrong)
14:55symbioquine[m]mstenta[m]: I was going to try and make an amorphous silicon joke here, but couldn't quite get it to come together 🤓
14:55mstenta[m]Hahaha
15:03FarmerEd[m]Still at GOAT mstenta: ?
15:07mstenta[m]Nope I came home a bit early for my son's birthday (today)
15:08mstenta[m]But paul121 and others are still there
15:08mstenta[m]If they aren't too busy maybe we can get them to join the dev call 😄
15:08FarmerEd[m]Was it a productive few days?
15:08mstenta[m](I'm sure they will be too busy)
15:08mstenta[m]Yes!
15:08FarmerEd[m]More importantly was it good craic?
15:09mstenta[m]Lots of great conversations
15:09mstenta[m](YES! And TIL the term "craig" haha)
15:09mstenta[m]s/craig/craic/
15:10mstenta[m](en.wikipedia.org/wiki/Craic)
15:10symbioquine[m]mstenta[m]: New for me too
15:10FarmerEd[m]Oh yeah.... Sorry my as Gailge is showing.
15:11FarmerEd[m]As Gailge "in Irish"
20:02symbioquine[m]Has anyone here successfully written fields created via `hook_farm_entity_bundle_field_info` using JSON:API? I'm running into [this exception case](github.com/drupal/drupal/blob/ae4cc2e6b3) which appears to be caused by the fields I've created not being returned from `EntityFieldManager::getFieldMap()`. However, I'm surprised
20:02symbioquine[m]other folks wouldn't be running into this (possibly [this issue](www.drupal.org/project/drupal/issues/304))... Thoughts?
20:07symbioquine[m]My code for the fields is basically taken straight from [the docs](farmos.org/development/module/fields/#bu);... (full message at <libera.ems.host/_matrix/media/r0/downloa>)
20:08symbioquine[m] * My code for the fields is basically taken straight from [the docs](farmos.org/development/module/fields/#bu); (plus a constraint for my primary id field)... (full message at <libera.ems.host/_matrix/media/r0/downloa>)
20:25mstenta[m]Dang that's no good
20:26mstenta[m]I don't think i've tried that via the api specifically
20:27mstenta[m]I forget: does farmOS core add any fields via that hook?
20:29symbioquine[m]Hmmm, I don't think so... checking...
20:32symbioquine[m]Actually there's a couple: github.com/search?q=hook_farm_entity_bun
20:39mstenta[m]Not at my computer so I'll have to look later
20:39symbioquine[m]Yeah, no problem :)
20:40mstenta[m]FWIW there's both the Drupal core and Entity API module layers involved here, which might make it more complicayed
20:45mstenta[m]But yea based on the issue you found above maybe it's just core
20:46symbioquine[m]Able to reproduce it with the quick module enabled;... (full message at <libera.ems.host/_matrix/media/r0/downloa>)
20:47*uploaded an image: (49KiB) < libera.ems.host/_matrix/media/r0/downloa >
20:48symbioquine[m]Yeah, I saw that
20:51*mstenta[m] has quit (Ping timeout: 248 seconds)
20:52*mstenta[m] has joined
20:52symbioquine[m]Yeah, me neither yet
22:02mstenta[m]Hi Evan Kelley! I think a friend of mine has solved this before... using a Javascript "debounce"
22:02mstenta[m]Let me see if I can find an example...
22:04*EvanKelley[m] has joined
22:04EvanKelley[m]Hey guys, anyone that's available. This is Evan from SFI we are currently facing an issue with our forms (built with Form API), the issue being that a user can spam click the Submit button and save a bunch of versions of the same entity. We've tried several different things we could think of to disable the submit button after the user has clicked it. Like disabling it at the top of the submitForm with
22:04EvanKelley[m]"$form['actions']['save']['#disabled'] = TRUE;", and disabling it with javascript; however once someone has clicked it the submitForm method doesn't get called and nothing happens. Any thoughts or ideas anyone has would be greatly appreciated.
22:08mstenta[m]This is a very general (not Drupal specific) example: stackoverflow.com/questions/36767731/how
22:10mstenta[m]Not at my computer at the moment... you might be able to find something by searching "drupal form submit double click" or something
22:18EvanKelley[m]Laurence just found a fix if you add this library to your form it fixes that issue "$form['#attached']['library'][] = 'core/drupal.form';"
22:18EvanKelley[m]Would this library cause any other weird issues to your knowledge?

< 052022-10-06⋏07 >