[05:00:10] | * ionitatelecom[m] has quit (Quit: You have been kicked for being idle) |
[09:29:53] | * zackmuma[m] has joined #farmos |
[10:46:31] | <mstenta[m]> | Farmer Ed: Your blog post just got a mention in the #goatech:matrix.org room :-) |
[10:47:05] | <symbioquine[m]> | The RPi hosting one? |
[10:47:36] | <symbioquine[m]> | Oh, I see the NodeRed one :) |
[10:51:40] | <FarmerEd[m]> | Cool. 👍 |
[10:52:30] | <mstenta[m]> | ACTION uploaded an image: (96KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/mmNdGqIUCbG... > |
[10:53:29] | <mstenta[m]> | Michael DeChellis was there with his "Home Assistant in a Bag™" 😄 |
[10:53:57] | <mstenta[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) |
[10:55:12] | <symbioquine[m]> | mstenta[m]: I was going to try and make an amorphous silicon joke here, but couldn't quite get it to come together 🤓 |
[10:55:29] | <mstenta[m]> | Hahaha |
[11:03:01] | <FarmerEd[m]> | Still at GOAT mstenta: ? |
[11:07:47] | <mstenta[m]> | Nope I came home a bit early for my son's birthday (today) |
[11:08:03] | <mstenta[m]> | But paul121 and others are still there |
[11:08:25] | <mstenta[m]> | If they aren't too busy maybe we can get them to join the dev call 😄 |
[11:08:33] | <FarmerEd[m]> | Was it a productive few days? |
[11:08:35] | <mstenta[m]> | (I'm sure they will be too busy) |
[11:08:41] | <mstenta[m]> | Yes! |
[11:08:50] | <FarmerEd[m]> | More importantly was it good craic? |
[11:09:01] | <mstenta[m]> | Lots of great conversations |
[11:09:34] | <mstenta[m]> | (YES! And TIL the term "craig" haha) |
[11:09:36] | <mstenta[m]> | s/craig/craic/ |
[11:10:00] | <mstenta[m]> | (https://en.wikipedia.org/wiki/Craic) |
[11:10:34] | <symbioquine[m]> | mstenta[m]: New for me too |
[11:10:49] | <FarmerEd[m]> | Oh yeah.... Sorry my as Gailge is showing. |
[11:11:41] | <FarmerEd[m]> | As Gailge "in Irish" |
[16:02:32] | <symbioquine[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](https://github.com/drupal/drupal/blob/ae4cc2e6b30b1effce828b50ef84dfbb89...) which appears to be caused by the fields I've created not being returned from `EntityFieldManager::getFieldMap()`. However, I'm surprised |
[16:02:32] | <symbioquine[m]> | other folks wouldn't be running into this (possibly [this issue](https://www.drupal.org/project/drupal/issues/3045509))... Thoughts? |
[16:07:46] | <symbioquine[m]> | My code for the fields is basically taken straight from [the docs](https://farmos.org/development/module/fields/#bundle-fields);... (full message at <https://libera.ems.host/_matrix/media/r0/download/libera.chat/c21328bc69...) |
[16:08:27] | <symbioquine[m]> | * My code for the fields is basically taken straight from [the docs](https://farmos.org/development/module/fields/#bundle-fields); (plus a constraint for my primary id field)... (full message at <https://libera.ems.host/_matrix/media/r0/download/libera.chat/76939db104...) |
[16:25:58] | <mstenta[m]> | Dang that's no good |
[16:26:50] | <mstenta[m]> | I don't think i've tried that via the api specifically |
[16:27:51] | <mstenta[m]> | I forget: does farmOS core add any fields via that hook? |
[16:29:13] | <symbioquine[m]> | Hmmm, I don't think so... checking... |
[16:32:55] | <symbioquine[m]> | Actually there's a couple: https://github.com/search?q=hook_farm_entity_bundle_field_info+repo%3Afa... |
[16:39:25] | <mstenta[m]> | Not at my computer so I'll have to look later |
[16:39:41] | <symbioquine[m]> | Yeah, no problem :) |
[16:40:36] | <mstenta[m]> | FWIW there's both the Drupal core and Entity API module layers involved here, which might make it more complicayed |
[16:45:24] | <mstenta[m]> | But yea based on the issue you found above maybe it's just core |
[16:46:07] | <symbioquine[m]> | Able to reproduce it with the quick module enabled;... (full message at <https://libera.ems.host/_matrix/media/r0/download/libera.chat/261a34624e...) |
[16:47:02] | <symbioquine[m]> | ACTION uploaded an image: (49KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/ubHVkWdzsdK... > |
[16:48:41] | <symbioquine[m]> | Yeah, I saw that |
[16:51:47] | * mstenta[m] has quit (Ping timeout: 248 seconds) |
[16:52:11] | * mstenta[m] has joined #farmos |
[16:52:12] | <symbioquine[m]> | Yeah, me neither yet |
[18:02:18] | <mstenta[m]> | Hi Evan Kelley! I think a friend of mine has solved this before... using a Javascript "debounce" |
[18:02:29] | <mstenta[m]> | Let me see if I can find an example... |
[18:04:43] | * EvanKelley[m] has joined #farmos |
[18:04:44] | <EvanKelley[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 |
[18:04:44] | <EvanKelley[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. |
[18:08:17] | <mstenta[m]> | This is a very general (not Drupal specific) example: https://stackoverflow.com/questions/36767731/how-to-prevent-double-click... |
[18:10:52] | <mstenta[m]> | Not at my computer at the moment... you might be able to find something by searching "drupal form submit double click" or something |
[18:18:45] | <EvanKelley[m]> | Laurence just found a fix if you add this library to your form it fixes that issue "$form['#attached']['library'][] = 'core/drupal.form';" |
[18:18:45] | <EvanKelley[m]> | Would this library cause any other weird issues to your knowledge? |