< 152022-09-16⋎17 >

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
00:09*polo__ has joined
00:12*polo has quit (Ping timeout: 252 seconds)
01:17*polo__ is now known as polo__
01:21*polo has quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
01:29*Guest133 has joined
01:29*Guest133 has quit (Changing host)
01:29*Guest133 has joined
01:29*Guest133 is now known as Guest133
01:43*polo is now known as polo
01:43*Guest1013 has quit (Killed (platinum.libera.chat (Nickname regained by services)))
02:00*polo__ has joined
02:02*polo__ has quit (Changing host)
02:02*polo__ has joined
02:02*polo__ is now known as polo__
02:08*polo has quit (Quit: Textual IRC Client: www.textualapp.com)
03:00*polo has joined
03:16*polo has quit (Ping timeout: 252 seconds)
03:27*polo has joined
03:31*Guest3660 has joined
03:31*polo has quit (Killed (tungsten.libera.chat (Nickname regained by services)))
03:31*Guest3660 is now known as Guest3660
03:51*polo has quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
04:19*Guest5177 has joined
04:19*Guest5177 has quit (Changing host)
04:19*Guest5177 has joined
04:20*Guest5177 is now known as Guest5177
04:29*polo has quit (Quit: Textual IRC Client: www.textualapp.com)
05:42*Guest3317 has joined
05:43*Guest3317 has quit (Changing host)
05:43*Guest3317 has joined
05:43*Guest3317 is now known as Guest3317
05:54*polo has quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
05:56*polo__ has joined
06:05*polo__ has quit (Remote host closed the connection)
06:34*polo has joined
07:01*polo has quit (Ping timeout: 252 seconds)
07:03*polo has joined
07:09*polo has quit (Ping timeout: 264 seconds)
07:13*polo__ has joined
07:18*polo__ has quit (Ping timeout: 265 seconds)
08:21*Guest3519 has joined
08:21*Guest3519 is now known as Guest3519
08:25*polo has quit (Killed (platinum.libera.chat (Nickname regained by services)))
11:35*polo has joined
11:42*polo has quit (Ping timeout: 255 seconds)
11:42*owsley has joined
11:42*owsley has quit (Client Quit)
11:44*polo has joined
11:53*polo__ has joined
11:54*owsley has joined
11:55*polo has quit (Ping timeout: 255 seconds)
11:58*polo__ has quit (Ping timeout: 264 seconds)
11:58mstenta[m]paul121 symbioquine since we didn't get to look at the rest of the `2.x-phpstan` branch together yesterday, I'll summarize them here so you can review asynchronously... I'd love to get the branch merged ASAP so we can move forward (sorry in advance everyone for the flood of chat messages to come...)
11:59mstenta[m]We left off on this one: github.com/mstenta/farmOS/commit/f7f97dd
11:59*owsley has quit (Ping timeout: 265 seconds)
12:00mstenta[m]I think I explained that on the last call before I had to jump off, but tl;dr: `phayes/geophp` is not being maintained, so it was forked to `itamair/geophp` and a new release was made with PHP 8 support. The `geofield` module changed from requiring `phayes/geophp` to `itamair/geophp`, which meant farmOS was pulling BOTH into `vendor`. So with this commit we are ONLY using `itamair/geophp`.
12:01mstenta[m]github.com/mstenta/farmOS/commit/1cd9df9
12:02mstenta[m]^ This is pretty self-explanatory. Adds `protected $user` to two test classes, and makes the way we check `isEmpty()` more type-strict in `IdTagItem` and `InventoryItem` field type classes
12:03mstenta[m]github.com/mstenta/farmOS/commit/79b3fb9
12:03mstenta[m]^ This adds missing `accessCheck(FALSE)` to two entity queries per www.drupal.org/node/3201242
12:04mstenta[m]github.com/mstenta/farmOS/commit/9e829fc
12:06mstenta[m]^ This one is a followup related to the previous `accessCheck()` commit. PHPStan was saying that `accessCheck()` was missing in all of our instances of `getAggregateQuery()` even though we DID have it. I think it's a bug so I opened this upstream issue: github.com/mglaman/phpstan-drupal/issues, and added `@phpstan-ignore-next-line`s in the places we need it alongside `@todo`s to remove them when that issue is resolved.
12:07mstenta[m]A lot of the rest of the commits address deprecations...
12:07mstenta[m](with some exceptions)
12:10mstenta[m]I'll skip explaining those... most are just simple changes or refactors to use new service methods provided by Drupal core instead of older procedural functions (eg: the following functions are deprecated: `taxonomy_term_load_multiple_by_name()`, `file_save_data()`, `file_create_url()`, `module_load_include()`)
12:11mstenta[m]github.com/mstenta/farmOS/commit/ca1d19d
12:11mstenta[m]^ Super simple undefined variable fix - just needed to shift where `$exposed_filters` was getting defined so that the code that uses it has access to it.
12:11mstenta[m]github.com/mstenta/farmOS/commit/7573994
12:13mstenta[m]^ This one is necessary because the GeoPHP library (both `phayes/geophp` and `itamair/geophp`) is old and doesn't use namespaces, so PHPStan complained about being unable to find the classes we use (see the commit message for specific errors). This simply adds a line to the `phpstan.neon` config file to tell it to scan the `geoPHP` directory during analysis. See
12:13mstenta[m]phpstan.org/user-guide/discovering-symbo
12:14mstenta[m]github.com/mstenta/farmOS/commit/5b06c00
12:14mstenta[m]^ This just removes an unnecessary constructor argument from `QuickFormMenuLink` plugin class
12:23mstenta[m]github.com/mstenta/farmOS/commit/cc4006a
12:23mstenta[m]^ Lastly, this is the one that @paul121 already looked at and I think we landed on this as the best approach.
12:24mstenta[m]paul121 symbioquine if you have a chance to skim through those and provide a thumbs up (or ask further questions) I'd appreciate it! Not urgent of course, just eager to get it merged. :-)
13:46paul121[m]We got through most of these on the dev call! Meant to say something, all looked good
13:46mstenta[m]Oh awesome! Thanks guys!
13:47mstenta[m]Did you have any questions about anything?
13:48paul121[m]<mstenta[m]> "^ This just removes an unnecessa..." <- I was curious about this. I think we have a bug where individual quick forms are not shown in the menu, shouldn't they show on hover? At first I thought this change might fix it but I don't think that is the case. Seeing this just reminded me
13:49symbioquine[m]is `$this->id` supposed to be equivalent to `$this->get('id')->getValue()` or was that an actual bug - RE: github.com/mstenta/farmOS/commit/1cd9df9
13:50mstenta[m]> we have a bug where individual quick forms are not shown in the menu, shouldn't they show on hover
13:50mstenta[m]Oh yea, I think that is a result of the way we're building the menu items... haven't looked closely, but I don't think it's related to that commit above
13:50mstenta[m]Like, we might need to set the parent item to "expanded" or something? I dunno... but I don't think it's a "bug" as much as lacking the proper menu definitions
13:51mstenta[m]Maybe I'll take a quick look at that separately... because yea it would be nice to expand the quick form menu on hover I agree... I think there are other menus like that too?
13:52mstenta[m]> is `$this->id` supposed to be equivalent to `$this->get('id')->getValue()` or was that an actual bug
13:52mstenta[m]yes, `$this->id` DOES work... it uses the "magic" `__get()` method to essentially do `$this->get('id')->getValue()`... but the latter is more explicit, which PHPStan prefers
13:53mstenta[m]I had the parent class open... let me see if I can find it again
13:54mstenta[m](side note, I've been making a lot more use of PHPStorm's Ctrl+N feature, which lets you quickly search by class name)
13:56mstenta[m]git.drupalcode.org/project/drupal/-/blob
13:57mstenta[m] * git.drupalcode.org/project/drupal/-/blob
14:08mstenta[m]Alright! Well if it's alright with you I'll go ahead and merge this!
14:09mstenta[m]Then rebase the PHP8 branch on top and see if anything new gets flagged
15:20*polo__ has joined
15:33*polo__ has quit (Ping timeout: 250 seconds)
15:34*polo has joined
15:53*polo has quit (Ping timeout: 244 seconds)
16:29*polo______ has joined
16:35*polo______ has quit (Ping timeout: 244 seconds)
17:38mstenta[m]> I think I explained that on the last call before I had to jump off, but tl;dr: `phayes/geophp` is not being maintained, so it was forked to `itamair/geophp` and a new release was made with PHP 8 support. The `geofield` module changed from requiring `phayes/geophp` to `itamair/geophp`, which meant farmOS was pulling BOTH into `vendor`. So with this commit we are ONLY using `itamair/geophp`.
17:38mstenta[m]doh! apparently `views_geojson` ALSO depends on `phayes/geophp`, so we still end up with both 🤦
17:41mstenta[m]I wonder if we can patch that... maybe not because it's a patch to a `composer.json` file, which wouldn't happen until AFTER the dependencies are all downloaded I think
18:35paul121[m]your issue just got merged! 🎉 www.drupal.org/project/views_geojson/iss
18:43*Guest9878 has joined
18:43*Guest9878 is now known as Guest9878
18:47mstenta[m]wow!!
18:47mstenta[m]that's the fastest turnaround I think I've ever experienced in a drupal issue queue haha
18:47mstenta[m](or maybe any issue queue for that matter)
18:50*polo is now known as polo
18:50*Guest8543 has quit (Killed (platinum.libera.chat (Nickname regained by services)))
18:57*polo___ has joined
19:32*polo___ has quit (Quit: Textual IRC Client: www.textualapp.com)

< 152022-09-16⋏17 >