-
Notifications
You must be signed in to change notification settings - Fork 0
Updates in details of DF #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@Autowired | ||
@Qualifier("roleRepository") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joaoeudes7 o que muda com essa alteração de Anotação?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Como a instância já existe antes de chamar esse controller, é feito a alteração para o Qualifier, com isso ele não vai precisar ser recriado e precisa apenas chamar pelo nome
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joaoeudes7 acho que ainda precisa de alguns ajustes!
// @GetMapping("/df/list") | ||
// public ModelAndView list() { | ||
// @GetMapping("/df/list/{projectId}") | ||
// public ModelAndView list(@PathVariable("projectId") Long projectId) throws BusinessRuleException { | ||
// ModelAndView mv = new ModelAndView("df/list"); | ||
// | ||
// User current = getCurrentUser(); | ||
// User currentUser = getCurrentUser(); | ||
// Project project = projectService.findOne(projectId); | ||
// | ||
// if (!project.isMemberOfProject(currentUser)) { | ||
// throw MEMBER_NOT_EXISTS; | ||
// } | ||
// | ||
// List<Project> projects = projectService.findByUserId(current.getId()); | ||
// List<DataFunction> dfs = dataFunctionService.findByProject(projectId); | ||
// | ||
// mv.addObject("projects", projects); | ||
// mv.addObject("project", project); | ||
// mv.addObject("dfs", dfs); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joaoeudes7 muito código comentado. Ainda está em construção?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Para saber se posso remover, como os DFs vão ser puxadas a partir da view do projeto, não vejo mais necessidade dessa view de list, até por isso descartei o que eu havia feito, veja os detalhes da tarefas e #31
|
||
// Consultar se precisa ser por projeto ou time a busca | ||
@GetMapping("/df/list") | ||
public ModelAndView list() { | ||
ModelAndView mv = new ModelAndView("df/list"); | ||
|
||
List<DataFunction> dfs = dataFunctionService.findAll(); | ||
|
||
mv.addObject("dfs", dfs); | ||
|
||
return mv; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joaoeudes7 não tem mais o listar de DataFunction?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Veja a resposta no outro comentário
d9cfbd9
to
457bd3e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<script type="text/javascript"> | ||
function viewDetailsDf(id) { | ||
window.location = `details/${id}`; | ||
} | ||
</script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O que acha de invés de adicionar um botão na linha da tabela, fazer a mudança de rota por meio do clique na linha? Utilizando JS
457bd3e
to
c55deae
Compare
c55deae
to
b93f5e0
Compare
b93f5e0
to
f37da80
Compare
No description provided.