< 122022-05-13⋎14 >

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
05:37FarmerEd[m]<paul121[m]> "Can you copy/paste this? Or does..." <- error: patch failed: src/Plugin/Field/FieldType/EntityReferenceRevisionsItem.php:5
05:37FarmerEd[m]error: src/Plugin/Field/FieldType/EntityReferenceRevisionsItem.php: patch does not apply
05:40FarmerEd[m]I wonder did he start off with the latest?
05:42paul121[m]Huh. I was worried/curious about this
05:43paul121[m]Ah yes. The merge request page says:
05:43paul121[m]> Merge blocked: the source branch must be rebased onto the target branch.
05:44FarmerEd[m]Makes sense, the patch that does apply has this:
05:44paul121[m]So there is a conflict between the PR and the latest commits in that module
05:44FarmerEd[m]- "drupal/core": "^9 || ^10"
05:44FarmerEd[m]+ "drupal/core": "^9"
05:44FarmerEd[m]which looks like going backwards
05:44FarmerEd[m]oh there was a -/+ in that
05:45paul121[m]Where do you see that?
05:45FarmerEd[m]in the patch that I generated in the beginning, with all the changes
05:46paul121[m](this will be kinda annoying if every project needs to add a `|| ^10`, ugh)
05:46FarmerEd[m]It would explain why there were so many if it was also undoing other additions
05:46paul121[m]Yes.
05:47paul121[m]That's why it needs to rebased!
05:47FarmerEd[m]yep
05:47paul121[m]You could do that locally.. there will be conflicts to fix..
05:48FarmerEd[m]It was too easy
05:48paul121[m]I believe you could open a new issue branch after you have rebased (or you can just add the new patch)
05:48paul121[m]Cool!
05:50FarmerEd[m]don't you sleep? must be late there now.
05:51FarmerEd[m]Anyway, thanks Paul I'll give it another look over later.
05:53paul121[m]Haha almost 11pm. Getting late
05:54FarmerEd[m]Ok, not as late as I thought
08:49*posted a file: 3267304-9.patch (3KiB) < libera.ems.host/_matrix/media/r0/downloa >
08:49FarmerEd[m]Thanks again paul121, think I have it working now with latest branch
08:52FarmerEd[m]mstenta: looks like the git diff command was right all along
11:51mstenta[m]Oh nice Farmer Ed ! Well done
11:51mstenta[m]So it was just because that branch needed to be rebased... that makes sense
11:51mstenta[m]Nice job
11:55FarmerEd[m]Guess a rookie error.
11:55FarmerEd[m]Just uploaded it to Drupal.org and updating composer.json now
13:52FarmerEd[m]OK mstenta , I updated the composer.json, and built a local docker image and so far it seems to be working as expected.
13:52FarmerEd[m]Is there any particular testing that I should run?
13:53mstenta[m]Awesome!
13:53mstenta[m]Probably the easiest thing to do is open a pull request with that change, so that all the GitHub Actions test workflows have a chance to run
13:54mstenta[m]But if the patch applies cleanly then you can be pretty confident those will all work
14:01mstenta[m]Farmer Ed: i will reply to GuyPaddock in that thread...
14:11FarmerEd[m]Ok, thanks I had not seen his response.
16:00*TheSlurpee[m] has quit (Quit: You have been kicked for being idle)
18:14FarmerEd[m]Ok, I've opened a PR............................. (I think 🫠)
18:26mstenta[m]woo hoo! thanks Farmer Ed !
18:28mstenta[m]looks good! I made a slight improvement to the commit message, if that's OK, and also added a `CHANGELOG.md` entry since I think this is worth mentioning (amended your commit so you get credit) :-)
18:28mstenta[m]tests are running on the PR now - then it's ready to merge!
18:30mstenta[m]oops hmm... something's not working. the build failed
18:30mstenta[m]but i don't think it's an issue with the patch
18:32mstenta[m]huh i wonder if it's because the branch isn't `2.x-*`
18:32mstenta[m]i just tried pushing a new branch to my fork called `2.x-err-patch`... i'll see if that works
18:33FarmerEd[m]No issue with any amendments
18:33FarmerEd[m]🤞
18:33FarmerEd[m]I'll work on my naming
18:34mstenta[m]looks like the patch applied properly in the build on my fork... it'll run tests there next, then i'll go ahead and merge the PR
18:37mstenta[m](tests take 15+ minutes to run FYI... so it'll be a while)
18:46FarmerEd[m]well 15 min is not so bad considering it took me 3 days to add 3 lines to composer.json 😂
18:46mstenta[m]first one's the hardest... all downhill from here! 😄
18:47mstenta[m]patch workflow is "deep end" stuff for sure
19:40*uploaded an image: (6068KiB) < libera.ems.host/_matrix/media/r0/downloa >
19:46FarmerEd[m]Cool 😎
20:07*uploaded an image: (2617KiB) < libera.ems.host/_matrix/media/r0/downloa >

< 122022-05-13⋏14 >