refactor(annotate): alterar unidade de anotação de comentário para usuário (#87)#93
Merged
lucasbrentano merged 2 commits intodevfrom Apr 8, 2026
Merged
Conversation
…uário (#87) A classificação agora é por autor (DatasetEntry), não por comentário. Comentários servem apenas como evidências para fundamentar a decisão. - Model: Annotation e AnnotationConflict usam dataset_entry_id (FK → dataset_entries) - Schemas: campos renomeados (entry_id, total_users, annotated_users_by_me) - Services: annotate, review, dashboard e data reescritos para granularidade por entry - Routers: endpoints mantidos, contratos atualizados - Migration: Alembic 0015 altera FKs (destrutiva — limpa anotações existentes) - Testes: 340 testes passando Co-Authored-By: Claude <noreply@anthropic.com>
- API types: entry_id, BotUserItem, CommentItem (sem anotação individual) - Hooks: submitAnnotation recebe entryId, state atualiza por entry - AnnotatePage: progresso por usuários, tabela com classificação/status - UserCommentsList: botões Humano/Bot no nível do autor com ícones - ReviewPage: conflitos e bots agrupados por usuário, botões padronizados - Removido CommentAnnotationRow (anotação por comentário não existe mais) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumo
AnnotationeAnnotationConflictagora referenciamdataset_entry_id(FK →dataset_entries) em vez decomment_idCloses #87
Como testar
docker compose up -d+ aplicar migration:alembic upgrade headPOST /seedcomo admin) para gerar dados de testeentry_id)pytest— 340 testes passandoScreenshots
Mudanças visuais nos botões de classificação (Humano verde / Bot vermelho com ícones) e na tabela de usuários (status binário anotado/pendente em vez de progresso por comentário).
🤖 Generated with Claude Code