Contract: define `GET /api/v1/uploads?since=` and use it instead of per-upload polling

Aperta
#47 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
kotlin, python
Ambito
api, backend, mobile

Direzione di ricerca

Start with hub/cloudbridge_hub/app.py at GET /api/v1/uploads and the API reference to define the response shape, including items, states, and cursor; add coverage in the hub tests. Then trace upload sync through android/core/sync/ and android/core/network/ (HubApi) to find feature advertisement and polling behavior. Done means the app batches polls when api_features advertises support, falls back otherwise, and responses and logs contain no upload or file names.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

android backend difficulty: intermediate enhancement

Context

The app polls each upload individually until asset_confirmed, because the response shape of GET /api/v1/uploads
with since is not fixed in the contract.

Acceptance criteria

  • The response shape (items, states, cursor) is specified in the API reference and covered by hub tests.
  • The app uses one batched poll per run when the hub advertises the feature in api_features, and falls back
    otherwise.
  • No upload or file names in responses or logs.

Pointers

  • hub/cloudbridge_hub/app.py (/api/v1/uploads), android/core/sync/, android/core/network/ (HubApi)
Lingua principale
Kotlin
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

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 ft-dev-org/cloudbridge-oss

Tutte le issue di ft-dev-org/cloudbridge-oss

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.