Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Querying members with a filter doesn't work

Aperta
#132 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
ruby
Ambito
api

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

  1. Create 2 users in Stream (I used the API to create users)
  2. Use the filter_conditions: { id: { "$in" => [user_id] } } in query_members
  3. 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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GetStream/stream-chat-ruby

Tutte le issue di GetStream/stream-chat-ruby

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.