aceleradora-TW / aceleradora-TW/e-acelera-back

[MVP2] api: leitura de progresso de tópico específico

Offen
#21 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @jauregao Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
2
Forks
4
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## Modelagem
- Progresso pode ser um elemento em separado que retorna um valor inteiro entre (0-100)

## Critérios

### Endpoint
- suporte a GET /topic/:topicId/progress
- endpoint retorna o seguinte json
```json
{
"progress": 50
}
```
- somente aceito para usuário logado
- retorna valor entre 0 - 100 de acordo com o progresso
- cada exercício tem peso 1 e o vídeo tem peso 1
- exemplos

| total vídeos | total exercícios | vídeos visualizados | exercícios realizados | progresso |
|--|--|--|--|--|
| 1 | 4 | 1 | 1 | 2/5 * 100 = 40 |
| 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 100 |

## Tarefas
- Migrar modelo para nova modelagem, itemStatus tem que ser migrado de Boolean para String.
- backend ainda não tem separação de models e controlers, isso precisa ser organizado

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start by locating the backend's topic route, progress/itemStatus model, and authentication handling; the issue says models and controllers are not yet separated. Confirm the migration from Boolean to String, then exercise GET /topic/:topicId/progress for logged-in users against the listed edge cases and response shape; done means progress is 0–100 and matches the weighting rules.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
api, backend
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.