Docs: clarify completion and cleanup for singular delete_user on the legacy route

Ouverte
#252 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
35/100
Type d'issue
Documentation
Clarté
Clairement spécifiée
Activité
Active
Stack technique
python

Piste de recherche

Start with the linked Python interface and implementation in stream_chat/base/client.py and stream_chat/client.py, then compare the linked JavaScript response type and user deletion guide. Establish the applicable server contract for the exact singular request, including task polling, message and attachment effects, related cleanup, timeout confirmation, and event guarantees. Done means adding a short method note that accurately states those guarantees or points callers to a supported replacement.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

Could the legacy Python SDK document the completion and cleanup guarantees for singular delete_user? This affects what an existing integration can safely record when an account deletion returns successfully or the response is lost.

The Python interface describes this method as synchronous and its implementation calls DELETE /users/{user_id}. The plural delete_users calls a separate endpoint and has a documented task workflow. In the JavaScript SDK v9.5.1, the response type for the same singular route includes an optional task_id. That type alone does not establish when the server returns one.

For this specific Python invocation:

client.delete_user(
    "example-user",
    hard_delete=True,
    mark_messages_deleted=True,
    delete_conversation_channels=True,
)
  1. What has finished on a successful response without a task ID? If a task ID is returned, which work does it cover and should the caller poll it?
  2. Does mark_messages_deleted=True preserve or erase message content and attachments? Which conversation channels are affected? Please identify any cleanup of uploaded files or Video data that requires a separate operation.
  3. After a transport timeout, is there an authoritative read-only confirmation for this exact request, or a documented safe retry? In particular, what does a matching user.deleted event establish about completion of the requested cleanup?

A short note in the method documentation pointing existing callers to the applicable server contract or supported replacement would help. This request is based on the published interfaces. We have not performed a deletion to test these questions.

Python interface · Python implementation · JavaScript singular response type · User deletion guide

Langage dominant
Python
Étoiles
73
Forks
20
Merge moyen
11 h 34 min
PR mergées (30 j)
7

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de GetStream/stream-chat-python

Toutes les issues de GetStream/stream-chat-python

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.