feat: exibe status de rascunho e publicada para provas na gerência de…#89
Merged
biancastephani merged 2 commits intodevelopmentfrom Apr 7, 2026
Merged
Conversation
… atividades Problema: Na gerência de atividades (Edição > Conteúdo > selecionar turma > "Gerência de atividades avaliativas/de frequência" > bloco Prova), provas em rascunho não apareciam na listagem. Para testar: Edição > Conteúdo > Tipo: Graduação à Distância > Curso: Licenciatura em Química > Disciplina: Química I > Semestre: 2011.1 > selecionar turma > Gerência de atividades > bloco Prova Causa: O método EvaluativeTool.find_tools filtrava apenas provas publicadas com `AND exams.status = 't'` no SQL. Solução: - Remove filtro `exams.status = 't'` do SQL em EvaluativeTool.find_tools - Adiciona coluna `exams.status` no bloco Exam do UNION (SELECT e GROUP BY) - Adiciona `NULL::boolean AS status` nos demais blocos do UNION para compatibilidade de tipos no PostgreSQL - Exibe badge 'Rascunho' para provas com status false - Exibe badge 'Liberada' para provas com status true - Adiciona estilos .label-draft e .label-released em _editions.scss reutilizando variáveis $lesson_status_draft_background e $lesson_status_released_background já existentes no projeto
JailsonPLima03
approved these changes
Feb 27, 2026
…raft-exams-in-activity-management
biancastephani
approved these changes
Apr 7, 2026
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.
Problema: Na gerência de atividades (Edição > Conteúdo > selecionar turma > "Gerência de atividades avaliativas/de frequência" > bloco Prova), provas em rascunho não apareciam na listagem.
Para testar: Edição > Conteúdo > Tipo: Graduação à Distância >
Curso: Licenciatura em Química > Disciplina: Química I >
Semestre: 2011.1 > Selecionar turma: QM-CAU > Gerência de atividades > bloco Prova
Causa: O método EvaluativeTool.find_tools filtrava apenas provas publicadas com
AND exams.status = 't'no SQL.Solução:
exams.status = 't'do SQL em EvaluativeTool.find_toolsexams.statusno bloco Exam do UNION (SELECT e GROUP BY)NULL::boolean AS statusnos demais blocos do UNION para compatibilidade de tipos no PostgreSQL