< 112024-08-12⋎13 >

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
12:25mstenta[m]paul121: your patch to the `entity` module has been merged! Only took 4 years! 😅 www.drupal.org/project/entity/issues/319
12:25mstenta[m]That was the only patch we were applying to entity, so we can stop pinning that module now!
12:25mstenta[m]🎉
12:30mstenta[m]Opened a PR to run github.com/farmOS/farmOS/pull/867
13:57symbioquine[m]github.com/farmOS/farmOS/pull/866 and github.com/farmOS/farmOS/pull/864 should be ready for review 😅
14:14symbioquine[m]<mstenta[m]> "paul121: your patch to the `..." <- It looks like the diff that got merged isn't the same as the one we've been patching with...
14:14symbioquine[m]git.drupalcode.org/project/entity/-/comm vs www.drupal.org/files/issues/2022-05-11/3
14:16*uploaded an image: (226KiB) < matrix.org/_matrix/media/v3/download/mat >
14:16symbioquine[m]That highlighted bit isn't present in what got merged.
14:16symbioquine[m](I'm not totally sure I grok the consequences of that, just pointing it out.)
14:40mstenta[m]Ugh it looks like the MR was merged, but not Paul's patch??
14:41symbioquine[m]Also, maybe you can educate me as to why only some of the patches are listed in the issue...
14:41symbioquine[m]www.drupal.org/project/entity/issues/319
14:41mstenta[m]I just noticed that too
14:42symbioquine[m]Specifically, I don't see the one that we've been using with the "-10.patch" suffix.
14:42mstenta[m]Oh wait a minute... that's not the issue we're patching!
14:42mstenta[m]www.drupal.org/node/3206703
14:43mstenta[m]Ah that's my bad. I guess I was too overjoyed.
14:44mstenta[m]I got an email notification that the other had been fixed, and didn't look closely. I guess we aren't using that patch, but I was still subscribed to the issue.
14:45symbioquine[m]I didn't even look at the number. Oops. 😅
14:45mstenta[m]Haha oh well. I'll close the PR.
14:45mstenta[m]I'm curious though, because it seems like there is some overlap
14:45symbioquine[m]Agreed
14:45mstenta[m]So we might still need to update our patch
14:45mstenta[m]But maybe that just simplifies it
14:46symbioquine[m]Well, the other line also is missing the ` && !empty($this->tableMapping->getAllFieldTableNames($field->getName()))` part...
14:47symbioquine[m]So the (new) diff would still need to modify that line (I assume).
14:48mstenta[m]Thanks for checking symbioquine
14:48symbioquine[m]s/other/earlier/
14:48symbioquine[m]np
14:48symbioquine[m]Was mostly just curious. Hopefully the tests would have also caught it.
14:49symbioquine[m]symbioquine[m]: Actually, I guess not. Seems like they're basically passing.
14:50mstenta[m]Guess we aren't testing for it
14:50mstenta[m]Patching upstream like this is sort of a fuzzy area when it comes to test policy IMO
14:51mstenta[m]Ideally, we shouldn't have to test upstream code
14:51mstenta[m]But in practice this kind of thing happens
14:52mstenta[m]Otherwise, where do you draw the line? Should we be testing that Drupal core provides an "entity" concept? 🤪
14:53symbioquine[m]We can rely on best intentions to manually validate that our upstream does what we expect or we can write defensive tests to confirm (at least smoke test) that it does.
14:53mstenta[m]Yea agreed. And in this case we would probably catch it if we were testing our Views better.
14:53mstenta[m]That's something we are lacking generally right now... Views tests
14:53symbioquine[m]In practice a lot of that smoke testing gets covered by our main tests, but some cases like this - where we're perhaps relying on fringe functionality might deserve special attention.
14:54symbioquine[m](I assume entity reference bundle fields might be fringe functionality, but I actually don't know how other folks use Drupal very much 😅)
14:55mstenta[m]Yea the reverse relationship functionality could be considered "fringe", since it seems we are the only ones who requested it, and are the only ones who have commented on the issue 😅 www.drupal.org/node/3206703
14:56mstenta[m]Ahhh reading further... paul121 explains this already in his comment:
14:56mstenta[m]> Adding a patch that includes the change from #3190436: EntityViewsData Column information not available for computed entity reference fields. The two patches are conflicting and we need both of them for farmOS
14:56mstenta[m]www.drupal.org/project/entity/issues/320
14:57mstenta[m]So basically we were getting a two-for-one patch 😂
14:57mstenta[m]Fair enough! So now we just need to tease them apart since one was merged.
18:22paul121[m]Good digging... this has prob left my brain at this point. TY for the hive-mind 😁 🧠
19:18*farmBOT has joined

< 112024-08-12⋏13 >