Querying members with a filter doesn't work
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Ruby
- Star
- 32
- Fork
- 23
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của GetStream/stream-chat-ruby
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
GetStream/stream-chat-ruby#215 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
GetStream/stream-chat-ruby#137 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
GetStream/stream-chat-ruby#133 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
GetStream/stream-chat-ruby#127 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
GetStream/stream-chat-ruby#114 · 3 bình luận · 1 reaction ·
Tất cả issue của GetStream/stream-chat-ruby
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
rubys/roundhouse#444 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
sclorg/s2i-ruby-container#656 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
theforeman/theforeman.org#2323 ·
-
request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
endoflife-date/endoflife.date#11277 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày