| 03:09 | * | Mo[m] has joined |
| 03:09 | Mo[m] | Yeah, it wasn't too hard and using the preprocess hook, it's easy to manipulate. |
| 09:00 | * | piegeux[m] has quit (Quit: You have been kicked for being idle) |
| 16:18 | mstenta[m] | jgaehring paul121 symbioquine wotnak ^ |
| 16:18 | mstenta[m] | > application sent! we'll see if they accept us 🤞 |
| 16:18 | mstenta[m] | Good news! Netlify accepted farmOS as an open source organization! 🎉 |
| 16:36 | mstenta[m] | I need to set up the account and add everyone as a user |
| 16:36 | mstenta[m] | They also sent instructions for transferring projects to the new org if we want to |
| 17:02 | mstenta[m] | Also: I tried getting 2.0.4 released, but ran into a failing test after updating Drupal core that I need to investigate |
| 17:28 | paul121[m] | amazing! maybe we could move the farmos-demo site over too - that is a netlify site :-) |
| 17:29 | mstenta[m] | oh cool! didn't know that :-) |
| 17:30 | mstenta[m] | one thing that they did note in the email is we are still bound by the limits on traffic etc, and if we go over we gotta pay uo |
| 17:30 | mstenta[m] | up* |
| 17:31 | mstenta[m] | maybe worth reviewing the current stats on farmOS.org and the demo site |
| 17:32 | mstenta[m] | i'm sure it's all within the limits, but it would be good to have a baseline for historical reference |
| 17:34 | paul121[m] | totally. the demo site does use netlify functions (like aws lambda/"serverless") but I think they are well within the free tier. the actual demos are hosted on a free Tugboat.qa tier |
| 17:35 | mstenta[m] | ah cool |
| 17:36 | mstenta[m] | > Also: I tried getting 2.0.4 released, but ran into a failing test after updating Drupal core that I need to investigate... (full message at <libera.ems.host/_matrix/media/v3/downloa>) |
| 17:37 | paul121[m] | link to GH action? |
| 17:37 | mstenta[m] | github.com/mstenta/farmOS/actions/runs/4 |
| 17:39 | mstenta[m] | That is 2.x on my fork, which has two additional commits: |
| 17:39 | mstenta[m] | 1) github.com/mstenta/farmOS/commit/e3d2a62 |
| 17:39 | mstenta[m] | 2) github.com/mstenta/farmOS/commit/ec27773 |
| 17:39 | mstenta[m] | 2.x on origin is passing |
| 17:39 | mstenta[m] | So it probably has something to do with drupal 9.5.7... ? 🤷 |
| 17:40 | mstenta[m] | Or 9.5.6, actually... 9.5.7 came out right after and just reverts one of the commits in 9.5.6... but most of the changes are in 9.5.6 |
| 17:40 | mstenta[m] | www.drupal.org/project/drupal/releases/9 |
| 17:50 | paul121[m] | so doesn't have disabled attribute |
| 17:51 | paul121[m] | github.com/farmOS/farmOS/blob/a56fccaa8f |
| 17:56 | mstenta[m] | yea |
| 17:58 | mstenta[m] | hmm maybe related to this change? www.drupal.org/project/drupal/issues/994 |
| 17:59 | mstenta[m] | Definitely has to do with #states and checkboxes in our form... |
| 18:00 | paul121[m] | Yeah. The last comment in that issue is prob it |
| 18:01 | paul121[m] | $(e.target).prop('checked', e.value).trigger('change'); |
| 18:01 | paul121[m] | $(e.target).closest('.js-form-item, .js-form-wrapper').find('input').prop('checked', e.value).trigger('change'); |
| 18:01 | mstenta[m] | Relevant line in our code: github.com/farmOS/farmOS/blob/a56fccaa8f |
| 18:01 | paul121[m] | This code change: git.drupalcode.org/project/drupal/-/comm |
| 18:02 | paul121[m] | ah: www.drupal.org/project/drupal/issues/294 |
| 18:02 | mstenta[m] | ah ha |
| 18:02 | paul121[m] | wow, plain as day: |
| 18:02 | paul121[m] | > States on radios and checkboxes elements are currently broken until #994360: #states cannot check/uncheck checkboxes elements is resolved, but when that issue is fixed another appears. |
| 18:03 | paul121[m] | > what that issue is fixed another appears |
| 18:03 | paul121[m] | s/what/when/ |
| 18:04 | paul121[m] | ugh so idk how we add those classes to the checkbox wrapper. not sure if we have access to that in our settings form? |
| 18:04 | mstenta[m] | i can run a quick test with the patch from that issue to see if it works (and still applies) |
| 18:05 | mstenta[m] | last updated in 2018 for drupal 8.7.x :-/ |
| 18:07 | mstenta[m] | test started... |
| 18:08 | mstenta[m] | github.com/mstenta/farmOS/actions/runs/4 |
| 18:13 | paul121[m] | hmm I'm inspecting a settings page now. It seems that the checkboxes do have the js-form-item class in their wrapper |
| 18:13 | paul121[m] | the issue might be that the "Install modules" button does not |
| 18:14 | paul121[m] | <paul121[m]> "This code change: git...." <- I dunno.. don't fully understand the JS states logic from just looking at this |
| 18:23 | mstenta[m] | The patch applied but did not fix our test |
| 18:26 | paul121[m] | wait have the tests completed? |
| 18:28 | mstenta[m] | Yea, sorry I re-ran failed tests - mariadb failed first, and have BOTH a failure due to the existing mariadb database connection issue BUT ALSO showed the same testInstallFunctionality failure as well |
| 18:29 | paul121[m] | dang |
| 18:32 | paul121[m] | Okay, yep |
| 18:37 | paul121[m] | When a module checkbox is clicked/checked, Drupal states logic should remove the `disabled` property from the "Install modules" button |
| 18:41 | paul121[m] | But that isn't happening because this change selects the "install modules" button itself (it has the `.js-form-submit` class), and then tries to find child `input` elements, however itself is the `input` element! |
| 18:41 | paul121[m] | git.drupalcode.org/project/drupal/-/comm |
| 18:42 | paul121[m] | so thus, no child input is found and disabled is never applied |
| 18:43 | paul121[m] | <paul121[m]> "When a module checkbox is..." <- Subtle detail: the inverse of this should happen when the page is loaded, so that is why `disabled` is never applied in the first place |
| 18:43 | paul121[m] | * so thus, no child input is found and disabled is never removed |
| 18:45 | paul121[m] | ..... so I think this would be fixed if we can remove `.js-form-submit` from the "Install modules" input itself. removing a class is harder than adding :-/ |
| 18:49 | paul121[m] | IMO release without updating Drupal core :-) |
| 18:51 | paul121[m] | Or, consider this as a pretty minor bug that doesn't have ill-consequences if the user clicks "install modules" without any selected. We could add form validation to give an error message |
| 18:52 | paul121[m] | (side note - quite cool that our tests caught this!! :P) |
| 19:26 | mstenta[m] | Should we just remove the disabled state logic altogether from our form? |
| 19:26 | paul121[m] | thats an option too |
| 19:26 | mstenta[m] | It's a "nice to have" |
| 19:26 | mstenta[m] | But not worth spending time fixing this IMO |
| 19:27 | paul121[m] | Right. So we could remove code and maybe add back in later... or kinda let the bug live on? 🤷 |
| 19:27 | paul121[m] | I guess we need to address the test error at minimum |
| 19:28 | mstenta[m] | Yea. I say we just remove the logic, don't disable the submit button, don't test that the submit button is disabled, and call it a day |
| 19:28 | mstenta[m] | Then someone in the future can try to redo it if they want... and run into this bug and try to fix it in the process |
| 19:30 | mstenta[m] | Maybe we also add a validateForm() that checks to make sure modules that are not installed were selected |
| 19:32 | paul121[m] | sounds good to me |
| 19:32 | mstenta[m] | k i'll throw together a PR right now... |
| 19:33 | mstenta[m] | > Maybe we also add a validateForm() that checks to make sure modules that are not installed were selected |
| 19:33 | mstenta[m] | actually, maybe this isn't necessary - submitForm() basically does this and bails early if none were selected |
| 19:35 | mstenta[m] | github.com/mstenta/farmOS/commit/fa45b8b |
| 19:36 | mstenta[m] | We don't need to do a full PR for this IMO - if the tests pass, and if you can just take a quick look at that commit paul121 ? |
| 19:51 | paul121[m] | a PR would actually be nice to find this code later on :-) |
| 19:51 | mstenta[m] | tests passed |
| 19:51 | paul121[m] | or update the changelog I guess |
| 19:51 | mstenta[m] | ok |
| 19:52 | mstenta[m] | does the commit look good, so i can just make the PR and immediately merge it? |
| 19:53 | mstenta[m] | (signing off soon - would love to get 2.0.4 released before the end of the day, not sure what your availability to review is) |
| 19:53 | paul121[m] | Yes, looks good to me |
| 19:53 | mstenta[m] | cool! |
| 19:53 | mstenta[m] | i'll wrap it up in a PR as-is |
| 19:53 | mstenta[m] | thanks1` |
| 19:53 | paul121[m] | wow didn't realize the time already |
| 19:53 | mstenta[m] | * thanks! |
| 20:46 | mstenta[m] | farmOS 2.0.4 has been released! github.com/farmOS/farmOS/releases/2.0.4 🎉 |