Gerenciamento de Usuários#4
Open
msb55 wants to merge 63 commits into
Open
Conversation
…iga 2.15, versão nova 2.24
…trolador de login
…de view {listUsers.gsp} que lista todos os usuários cadastrados no sistema.
… E renomear a page ListCollectorsPage para ListUsersPage
…terceiro teste de GUI está como @ignore porque ainda falta resolver o problema da autenticação)
…rio de GUI e o cenário de controlador
…es, inclusive a de controle e a terceira de GUI
…rios do sistema, e modificações nas outras Pages para os cenários de GUI
…eções sugeridas e indicadas por Daniel Maida.
las33
reviewed
Nov 8, 2016
| newUserInfo.password = params.password | ||
| newUserInfo.enabled = true; | ||
|
|
||
| Address e = new Address() |
There was a problem hiding this comment.
Variável sem nome intuitivo, poderia ser address.
las33
reviewed
Nov 8, 2016
| user.password = params.j_password | ||
| user.enabled = true; | ||
|
|
||
| Address e = new Address() |
There was a problem hiding this comment.
Variável sem nome intuitivo, poderia ser address.
| flash.message = "Sucesso!" | ||
| redirect(controller: "login", action: "signUpSuccessful") | ||
| } catch (ValidationException) { | ||
| flash.message = "Certifique os campos informados!" |
| user.save(failOnError: true) | ||
| UserRole.create(user, role, true) | ||
|
|
||
| flash.message = "Sucesso!" |
las33
reviewed
Nov 8, 2016
| user.password = params.j_password | ||
| user.enabled = true; | ||
|
|
||
| Address e = new Address() |
There was a problem hiding this comment.
Variável sem nome intuitivo, poderia ser address.
las33
reviewed
Nov 8, 2016
| @@ -138,9 +138,4 @@ class LoginController { | |||
| def createUser() { | |||
There was a problem hiding this comment.
Descrição de commit muito geral e não especifica exatamente o que está sendo modificado.
las33
reviewed
Nov 8, 2016
| @@ -0,0 +1,11 @@ | |||
| import cucumber.api.PendingException | |||
There was a problem hiding this comment.
Commit com implementação incompleta de teste.
las33
reviewed
Nov 8, 2016
| } | ||
|
|
||
| def signUpSuccessful(){ | ||
| flash.message = "Cadastro realizado com sucesso!" |
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.
Os requisitos iniciais discutidos na primeira conversa com os stakeholders para a feature de Gerenciamento de Usuários: Dado que novos usuários podem ser adicionados sem o intermédio da prefeitura, já que o propósito do sistema é a abertura para não apenas a cidade universitária, Empresas Coletoras e Geradores de Resíduo podem se cadastrar no sistema, e editar seus dados, prevalecendo regras de negócio como uma delas é o CNPJ informado ser único.