sidelkin1 / sidelkin1/ppd_forms

Отслеживание статуса задачи на базе Server-sent events (SSE)

Open
#9 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

backend enhancement frontend
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Проблема

Возможно использование WebSocket избыточно. Как вариант, добавить отслеживание через SSE.

Возможное решение

Есть плагин для FastAPI sse-starlette.

Примеров использования много:

Возможные недостатки

Проблемы при тестировании: здесь и Unfortunately, httpx.TestClient is broken for sse.
Предлагают использовать async-asgi-testclient или httpx-sse.

На фронтенде нужно реализовать async/await версию EventSource. Как вариант, здесь.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository files or tests are named. Start by locating the current WebSocket task-status flow and the FastAPI and frontend entry points, then define the SSE endpoint, event-handling behavior, and testing approach. Done should include agreed backend and frontend behavior with tests that cover the status stream.

Written by the indexing model from the issue text.

Assessment

Tech stack
fastapi, python
Domain
api, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.