Skip to content

feat(llc): add queryUsers to StreamFeedsClient#111

Draft
renefloor wants to merge 3 commits into
mainfrom
renefloor/flu-370-add-code-snippets-for-queryusers-in-sdks-and-update-on-new
Draft

feat(llc): add queryUsers to StreamFeedsClient#111
renefloor wants to merge 3 commits into
mainfrom
renefloor/flu-370-add-code-snippets-for-queryusers-in-sdks-and-update-on-new

Conversation

@renefloor

Copy link
Copy Markdown
Collaborator

Summary

  • Added queryUsers() method to StreamFeedsClient (interface + impl) wrapping the generated DefaultApi.queryUsers endpoint
  • Added FullUserResponseMapper extension to user_data.dart to map FullUserResponseUserData
  • Added docs/code_snippets/02_01_querying_users.dart with examples for name autocomplete, ID filter, and presence queries
  • Stored DefaultApi instance as _feedsApi field in FeedsClientImpl so methods not covered by a dedicated repository can be called directly

Closes FLU-370

Test plan

  • melos run analyze — no issues
  • melos run format — no changes
  • flutter test in packages/stream_feeds — 392 tests pass
  • dart analyze docs/code_snippets/02_01_querying_users.dart — no issues

🤖 Generated with Claude Code

Expose the generated DefaultApi.queryUsers endpoint via a public
queryUsers() method on StreamFeedsClient. Adds FullUserResponseMapper
to map FullUserResponse to the domain UserData model.

Closes FLU-370

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@renefloor renefloor requested a review from a team as a code owner June 17, 2026 12:53
@coderabbitai

coderabbitai Bot commented Jun 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@renefloor, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 25 minutes and 27 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 2aa51e85-212d-4944-9673-973c68fc736b

📥 Commits

Reviewing files that changed from the base of the PR and between a1590dd and ea68b48.

📒 Files selected for processing (7)
  • docs/code_snippets/02_01_querying_users.dart
  • packages/stream_feeds/CHANGELOG.md
  • packages/stream_feeds/lib/src/client/feeds_client_impl.dart
  • packages/stream_feeds/lib/src/feeds_client.dart
  • packages/stream_feeds/lib/src/models/user_data.dart
  • packages/stream_feeds/test/client/feeds_client_test.dart
  • packages/stream_feeds_test/lib/src/helpers/test_data.dart
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch renefloor/flu-370-add-code-snippets-for-queryusers-in-sdks-and-update-on-new

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov

codecov Bot commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.63%. Comparing base (a1590dd) to head (ea68b48).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #111      +/-   ##
==========================================
+ Coverage   85.53%   85.63%   +0.09%     
==========================================
  Files         124      124              
  Lines        4342     4364      +22     
==========================================
+ Hits         3714     3737      +23     
+ Misses        628      627       -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

renefloor and others added 2 commits June 18, 2026 10:21
Add unit tests for queryUsers() client method and FullUserResponseMapper.toModel().
Also adds createDefaultFullUserResponse and createDefaultQueryUsersResponse test helpers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@renefloor renefloor marked this pull request as draft June 18, 2026 13:45
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