Skip to content

Conversation

@Andreimd02
Copy link

…cional.

Copy link
Contributor

@rcaa rcaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

O código realmente possui vários erros. Comentei os mais relevantes que encontrei pra que você possa evitar nas próximas atividades.

@Transactional(readOnly = true)
class EvaluationController {

static allowedMethods = [update: "PUT"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

por que todo esse código foi removido?

}
'*'{ respond evaluationInstance, [status: OK] }
static allowedMethods = [save: "POST", update: "PUT", delete: "DELETE"]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

também não entendi o porquê adicionar todo esse código

/*if (evaluationInstance == null) {
notFound()
return
}*/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

talvez você tenha alterado a identação do código. Isso deve ser evitado pois aparecem várias alterações que não tem relação com a tarefa

<label for="criterion">
<g:message code="evaluation.criterion.label" default="Criterion" />
<span class="required-indicator">*</span>
</label>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

por que esse optionValue foi removido?


</div>

<div id="list-student" class="content scaffold-list" role="main">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aqui também não entendi o motivo da remoção do código.

</g:eachError>
</ul>
</g:hasErrors>
<g:form url="[action:'saveAll']" >
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

muito provavelmente essa mudança quebra a funcionalidade "create" de Evaluation

<%@ page import="ta.Evaluation" %>
<!DOCTYPE html>
<html>
<head>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aparentemente aqui ocorre o mesmo erro: alterar identação. Isso dificulta muito a revisão do código.


<td>${fieldValue(bean: evaluationInstance, field: "value")}</td>

<td>${fieldValue(bean: evaluationInstance, field: "criterion.description")}</td>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

algo vai deixar de funcionar com essa alteração.

<table>
<thead>
<tr>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

evitar pular linha desnecessariamente.

<li class="fieldcontain">
<span id="criterion-label" class="property-label"><g:message code="evaluation.criterion.label" default="Criterion" /></span>

<span class="property-value" aria-labelledby="criterion-label"><g:link controller="criterion" action="show" id="${evaluationInstance?.criterion?.id}">${evaluationInstance?.criterion?.description?.encodeAsHTML()}</g:link></span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

essa alteração tambémdeve quebrar alguma funcionalidade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants