Querying members with a filter doesn't work
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Ruby
- Stelle
- 32
- Fork
- 23
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di GetStream/stream-chat-ruby
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 72/100
GetStream/stream-chat-ruby#215 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
GetStream/stream-chat-ruby#137 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
GetStream/stream-chat-ruby#133 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
GetStream/stream-chat-ruby#127 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 28/100
GetStream/stream-chat-ruby#114 · 3 commenti · 1 reazione ·
Tutte le issue di GetStream/stream-chat-ruby
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
riscv/riscv-unified-db#2626 ·
-
Component: GLib
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
ds-drift
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
we-promise/sure#3693 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
simp/pupmod-simp-simp#395 ·