Skip to content

Stop sending $top to /subscriptions - #131

Merged
sionsmith merged 1 commit into
mainfrom
fix/subscribe-list-top
Oct 27, 2026
Merged

sionsmith merged 1 commit into
mainfrom
fix/subscribe-list-top

Conversation

@sionsmith

Copy link
Copy Markdown
Contributor

teams subscribe list has failed since v0.1.0. Graph rejects $top on /subscriptions with HTTP 400 ("Query option 'Top' is not allowed"), and list_subscriptions always added it. The v0.11.0 release smoke found it.

Fix: page by @odata.nextLink alone, using the existing get_paged_without_top, as channel list and chat members list already do. --page-size is now ignored for this command.

Tests:

  • A wiremock test asserts that no $top is sent. It fails on the old code path.
  • Live against Graph: the v0.11.0 release-candidate binary gets the 400; this build returns success: true.

🤖 Generated with Claude Code

teams subscribe list always failed with HTTP 400 ("Query option 'Top'
is not allowed. To allow it, set the 'AllowedQueryOptions' property on
EnableQueryAttribute or QueryValidationSettings."): Graph rejects $top
on /subscriptions, and list_subscriptions has added it since v0.1.0.
Page by @odata.nextLink alone, as channel list and chat members list
already do. Found by the v0.11.0 release smoke; checked live that the
fixed build lists subscriptions where the current one gets the 400.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sionsmith
sionsmith merged commit ba5638f into main Oct 27, 2026
6 checks passed
@sionsmith
sionsmith deleted the fix/subscribe-list-top branch October 27, 2026 06:48
@sionsmith sionsmith mentioned this pull request Oct 27, 2026
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.

1 participant