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

Skip empty permission batches #1931

Merged
merged 5 commits into from
Nov 29, 2023
Merged

Conversation

seanstory
Copy link
Member

Closes #1930

Skips running a post request to the $batch endpoint if the requests list is empty.

I can't actually see how we could get in this situation, but the linked ticket shows that we are getting into this spot. I'd rather track down the root cause, but figured a patch for the symptom was better than not solving anything.

Checklists

Pre-Review Checklist

  • this PR has a meaningful title
  • this PR has a thorough description
  • Covered the changes with automated tests
  • Tested the changes locally
  • Added a label for each target release version (example: v7.13.2, v7.14.0, v8.0.0)

Release Note

Fixes a bug where the Sharepoint Online connector might sometimes fail syncs when DLS was enabled due to a batching error.

@leemthompo
Copy link
Contributor

@seanstory I'm adding this to release notes, let me know if anything changes

@seanstory seanstory enabled auto-merge (squash) November 29, 2023 16:54
@seanstory seanstory merged commit 57217c9 into main Nov 29, 2023
@seanstory seanstory deleted the seanstory/1930-skip-empty-batches branch November 29, 2023 17:39
github-actions bot pushed a commit that referenced this pull request Nov 29, 2023
github-actions bot pushed a commit that referenced this pull request Nov 29, 2023
Copy link

💚 Backport PR(s) successfully created

Status Branch Result
8.10 #1932
8.11 #1933

The backport PRs will be merged automatically after passing CI.

seanstory added a commit that referenced this pull request Nov 29, 2023
seanstory added a commit that referenced this pull request Nov 29, 2023
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.

[SPO] batch requests can have empty lists
3 participants