Skip to content

social: type bulk operation limits - #40

Merged
lactyy2 merged 1 commit into
df-mc:mainfrom
HashimTheArab:agent/social-bulk-operation-limit-upstream
Aug 12, 2026
Merged

social: type bulk operation limits#40
lactyy2 merged 1 commit into
df-mc:mainfrom
HashimTheArab:agent/social-bulk-operation-limit-upstream

Conversation

@HashimTheArab

Copy link
Copy Markdown
Contributor

Summary

  • expose social.ErrBulkOperationLimit for Xbox Social bulk relationship limits
  • map service code 1050 through ResponseError.Is
  • add coverage for category matching and AddFriends

Why

Consumers currently need to inspect a raw Xbox service code before applying their own partial-success batching policy. A typed error keeps the service-specific mapping in xsapi while leaving batching behavior explicit at the call site.

This branch is based on main and is the upstream equivalent of HashimTheArab/go-xsapi#24. It supports the cleanup tracked in go-mcxboxbroadcast#27.

Validation

  • go test ./... -count=1
  • go vet ./...
  • git diff --check origin/main...HEAD
  • Existing Codex review for this exact commit was clean.

@lactyy2
lactyy2 merged commit 47c2e1b into df-mc:main Aug 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants