Querying members with a filter doesn't work
还没有人认领这个 Issue。
评估
调研方向
Start at the Ruby client's query_members entry point and reproduce the issue with two users using stream-chat-ruby 3.0.0. Check the request built from filter_conditions and compare the response with the expected single matching member; done means the $in filter returns only the requested user.
由索引模型根据 Issue 内容生成。
描述
Describe the bug
channel.query_members(
filter_conditions: { id: { "$in" => [user_id] } }
)
always returns all members when using the Ruby client.
In this case user_id = SecureRandom.hex.
I've used byebug to double check a valid user_id was sent through in the filter_conditions yet I kept seeing a list of all users back.
To Reproduce
- Create 2 users in Stream (I used the API to create users)
- Use the
filter_conditions: { id: { "$in" => [user_id] } }inquery_members - Inspect the response
Expected behavior
Only the user which matches user_id to be returned
Package version
stream-chat-ruby (3.0.0)
Desktop (please complete the following information):
- OS: MacOS Ventura 13.2
- Browser: Chrome
- Version: 118.0.5993.70
Additional context
N/A
- 主要语言
- Ruby
- 星标
- 32
- 派生
- 23
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
GetStream/stream-chat-ruby 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 72/100
GetStream/stream-chat-ruby#215 ·
-
难度 3/5 1-2 天 新手友好度 45/100
GetStream/stream-chat-ruby#137 ·
-
难度 4/5 3-5 天 新手友好度 35/100
GetStream/stream-chat-ruby#133 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
GetStream/stream-chat-ruby#127 ·
-
难度 5/5 一周以上 新手友好度 28/100
GetStream/stream-chat-ruby#114 · 3 条评论 · 1 个 reaction ·
查看 GetStream/stream-chat-ruby 的全部 Issue
相似的 Issue
-
Dependencies view: `getParent` loops forever on untitled documents, extension host runs out of memory可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
area/web interface
难度 2/5 1-3 小时 新手友好度 62/100
mastodon/mastodon#41000 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 82/100
zerocracy/judges-action#2743 ·
维护者通常 8 天内回复
-
Python 3.15 support可能已有人在做 @amnesiaof 今天认领。 未关闭L: python L: python:uv
难度 2/5 1-3 小时 新手友好度 72/100
dependabot/dependabot-core#16524 · 1 条评论 ·
维护者通常 1 天内回复
-
content good first issue
难度 2/5 1-3 小时 新手友好度 66/100
rubyevents/rubyevents#2182 ·
维护者通常 1 天内回复