Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug-fix: spo tenant recyclebinitem restore #6057

Closed

Conversation

MathijsVerbeeck
Copy link
Contributor

Closes #6021

Copy link
Contributor

@milanholemans milanholemans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work so far. I saw right now that we are introducing a breaking change. Let's avoid this at all costs.

@milanholemans milanholemans marked this pull request as draft May 17, 2024 22:20
@MathijsVerbeeck MathijsVerbeeck marked this pull request as ready for review May 18, 2024 06:36
Copy link
Contributor

@milanholemans milanholemans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from some minor things, it looks good to me!

}

await logger.log(responseContent);
// Here, we return a fixed response due to removing the '--wait' functionality as it is deprecated.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, we are not doing this because we are removing --wait, but because we switched to a new endpoint that has no output.

})) {
return "{\"HasTimedout\":false,\"IsComplete\":true,\"PollingInterval\":15000}";
}
it(`restores deleted group site from a deleted team site`, async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
it(`restores deleted group site from a deleted team site`, async () => {
it(`restores deleted group from a deleted team site`, async () => {

assert.strictEqual(postStub.lastCall.args[0].url, groupRestoreUrl);
});

it('restores restores a deleted SharePoint site', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
it('restores restores a deleted SharePoint site', async () => {
it('restores a deleted SharePoint site without group', async () => {

@milanholemans
Copy link
Contributor

Merged manually, thank you for this fix! 👏

@MathijsVerbeeck MathijsVerbeeck deleted the bug-spo-tenant-restore branch May 25, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug report: spo tenant recyclebinitem restore doesn't restore group
2 participants