cli-microsoft365 icon indicating copy to clipboard operation
cli-microsoft365 copied to clipboard

Refactor `spo page set` and `spo page add` to use util instead of calling other command, Closes #5300

Open nicodecleyre opened this issue 2 years ago β€’ 28 comments

Closes #5300

nicodecleyre avatar Jul 18 '23 14:07 nicodecleyre

Thanks for another awesome PR πŸ’ͺπŸ‘. You are on πŸ”₯ today. We will review it ASAP

Adam-it avatar Jul 18 '23 14:07 Adam-it

@nicodecleyre also here some tests are failing and it does not seem like some workflow glitch πŸ˜‰. could you recheck locally?

Adam-it avatar Jul 18 '23 18:07 Adam-it

some tests are failing and it does not seem like some workflow glitch πŸ˜‰. could you recheck locally?

I see.. But I don't quite understand, it doesn't show these errors locally.. Even did a cli config reset (you never know) followed by npm run clean, npm run build, npm run test image

nicodecleyre avatar Jul 19 '23 07:07 nicodecleyre

That's perfectly possible, the pipeline Node v20 is failing while you are using v18 locally.

milanholemans avatar Jul 19 '23 11:07 milanholemans

That's perfectly possible, the pipeline Node v20 is failing while you are using v18 locally.

Thank you for the clarification @milanholemans, I tried testing it locally with node v20, but it still seems to run without errors: image

Do you have any guidance how to solve this failing pr? I don't really understand why it fails in the pipeline, also the fact that one of the failing test is one I didn't touched

nicodecleyre avatar Jul 19 '23 12:07 nicodecleyre

Will check this one as well. I think it is related to the other PR

Adam-it avatar Jul 19 '23 14:07 Adam-it

That's perfectly possible, the pipeline Node v20 is failing while you are using v18 locally.

Actually on the pipes it's failing always πŸ˜… node 16, 18, 20 and win or Ubuntu. Seems strange. I will check it running our devcontainer and see locally. I hope I will manage to check this over tonight. If not I will try to add it for tomorrow πŸ‘

Adam-it avatar Jul 19 '23 14:07 Adam-it

Actually on the pipes it's failing always πŸ˜… node 16, 18, 20 and win or Ubuntu. Seems strange. I will check it running our devcontainer and see locally. I hope I will manage to check this over tonight. If not I will try to add it for tomorrow πŸ‘

Thank you for wanting to help πŸ™. no rush here, feel free to test locally with you whenever you got time!

nicodecleyre avatar Jul 19 '23 14:07 nicodecleyre

Hi @Adam-it, first of all, thank you very, very much for looking through this and pointing out the problem!! Really appreciate it! I've come a long way with your explanation. But it still goes wrong during the prebuild where I run into a 243

image

So i tried with npm i only and it seems to be complaining about permissions denied.. I'm totally not familiar with docker so do you have any idea what i'm doing wrong? Do i have to give permissions on a certain folder? image

nicodecleyre avatar Jul 31 '23 13:07 nicodecleyre

@nicodecleyre are you using the devcontainer from here -> https://github.com/pnp/cli-microsoft365/tree/main/.devcontainer are you using some external drive for your workspace?

Adam-it avatar Jul 31 '23 18:07 Adam-it

@nicodecleyre are you using the devcontainer from here -> https://github.com/pnp/cli-microsoft365/tree/main/.devcontainer are you using some external drive for your workspace?

Jup, i'm using that one and not using an external drive. But... Was able to reproduce it using GitHub Codespaces and was able to write a fix for the test πŸ₯³. Thank you for your help along the way, you rock 🀩

Seems we still faced a timeout πŸ˜† can you pretty please rerun the test?

nicodecleyre avatar Jul 31 '23 18:07 nicodecleyre

Jup, i'm using that one and not using an external drive. But... Was able to reproduce it using GitHub Codespaces and was able to write a fix for the test πŸ₯³. Thank you for your help along the way, you rock 🀩

Awesome news! No need to thank for the support. I didn't do much + we are in this together πŸ‘

Seems we still faced a timeout πŸ˜† can you pretty please rerun the test?

sure

Thanks for the fixes. I will review it ASAP

Adam-it avatar Jul 31 '23 18:07 Adam-it

setting to draft due to the following observations I will provide more guidance how we should proceed with this PR in near future

Adam-it avatar Sep 17 '23 22:09 Adam-it

@nicodecleyre how are things going? I was thinking if we could refresh those PR's and try to proceed with this and #5299 PR as one go. Also refactoring the parent commands like spo listitemset as described in the issue last comment. What do you think? Do you need to have a check on this together? or you need any kind of other help to get going?

Adam-it avatar Oct 09 '23 08:10 Adam-it

@nicodecleyre how are things going? I was thinking if we could refresh those PR's and try to proceed with this and #5299 PR as one go. Also refactoring the parent commands like spo listitemset as described in the issue last comment. What do you think? Do you need to have a check on this together? or you need any kind of other help to get going?

Hi @Adam-it. I'm good but suuuuuperbusy right now, a lot of things come together at once πŸ˜…. How are you? I'll make some time this month and look into what you're asking

nicodecleyre avatar Oct 10 '23 19:10 nicodecleyre

Hi @Adam-it,

Did what was requested! Not gonna lie, this was a hard one and spended a lot of time on this one πŸ˜…. I don't know if this is the best approach to go for this big PR's for the refactoring, but that's just my opinion..

nicodecleyre avatar Oct 31 '23 16:10 nicodecleyre

Hi @Adam-it,

Did what was requested! Not gonna lie, this was a hard one and spended a lot of time on this one πŸ˜…. I don't know if this is the best approach to go for this big PR's for the refactoring, but that's just my opinion..

Thanks @nicodecleyre for the awesome work and another holdup from our side πŸ™. I will start reviewing this PR today You Rock 🀩

Adam-it avatar Nov 18 '23 13:11 Adam-it

@pnp/cli-for-microsoft-365-maintainers I would appreciate second πŸ‘€on this πŸ™. Lets be sure we catch most of the things so that we may align other 42 refactor to util PRs in similar way lets start the merging πŸš€

Adam-it avatar Nov 18 '23 14:11 Adam-it

@nicodecleyre also now I just noticed that for spo listitem set command I think we introduced some unneeded log somewhere πŸ€” image

I don't seem to have it from main branch. Let's investigate if there isn't any not needed log somewhere

Adam-it avatar Nov 18 '23 14:11 Adam-it

@waldekmastykarz would you be so kind and give it another check since many of the comments were from your side? thanks πŸ‘

Adam-it avatar Dec 15 '23 00:12 Adam-it

@waldekmastykarz would you be so kind and give it another check since many of the comments were from your side? thanks πŸ‘

@waldekmastykarz did by any chance you had the time to take a look at this one? thanks

Adam-it avatar Dec 26 '23 03:12 Adam-it

@waldekmastykarz would you be so kind and give it another check since many of the comments were from your side? thanks πŸ‘

@waldekmastykarz did by any chance you had the time to take a look at this one? thanks

Not yet, thanks for the ping

waldekmastykarz avatar Dec 29 '23 09:12 waldekmastykarz

All the request changes are resolved now, can you guys give it another check @Adam-it & @waldekmastykarz πŸ™ ?

nicodecleyre avatar Jan 05 '24 08:01 nicodecleyre

All the request changes are resolved now, can you guys give it another check @Adam-it & @waldekmastykarz πŸ™ ?

Thanks @nicodecleyre for your awesome work and quick turn around. I will go over this command over the weekend. Sorry for the holdup but I am still catching up with everything after Christmas break πŸ™‚

Adam-it avatar Jan 06 '24 02:01 Adam-it

All the request changes are resolved now, can you guys give it another check @Adam-it & @waldekmastykarz πŸ™ ?

Thanks @nicodecleyre for your awesome work and quick turn around. I will go over this command over the weekend. Sorry for the holdup but I am still catching up with everything after Christmas break πŸ™‚

No problem, take you're time, we're not in a hurry here πŸ˜‰

nicodecleyre avatar Jan 06 '24 07:01 nicodecleyre

I should resolve a couple of small comments. Ready to merge πŸš€

Adam-it avatar Jan 11 '24 00:01 Adam-it

LGTM πŸ‘ Sorry @nicodecleyre once again for yet again hold up. I have a few minor comments which I may resolve myself when merging tested locally and seems to be working properly πŸ‘ You rock 🀩

No need to apologize. I appreciate every effort you and others put into reviewing these PRs, as we all do this in our spare time. πŸ™

nicodecleyre avatar Jan 12 '24 09:01 nicodecleyre

@waldekmastykarz since you had most of the comments in this PR I leave the stage to you πŸ‘.

Adam-it avatar Feb 03 '24 01:02 Adam-it

Hey @nicodecleyre, could you please resolve the conflict so that we won't lose any of your fixes? Then we'll have another look at this PR and get it in if all is good. Thank you!

waldekmastykarz avatar Mar 23 '24 09:03 waldekmastykarz

Hi @waldekmastykarz, I have already resolved quite a few merge conflicts regarding this PR, which were not always that easy. The merge conflicts currently present are from a command present in this PR that uses a new use of executecommand from a PR that has been merged during time, which we are just trying to refactor in this PR, and that is a bit discouraging if I may be so honest... Can we use an approach to minimize the overhead here and finally ship this PR?

nicodecleyre avatar Mar 23 '24 10:03 nicodecleyre