Skip to content

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

Merged
merged 1 commit into from
Nov 19, 2020
Merged

Conversation

joaoeudes7
Copy link
Member

No description provided.

Comment on lines 24 to 25
@Autowired
@Qualifier("roleRepository")
Copy link
Member

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?

Copy link
Member Author

@joaoeudes7 joaoeudes7 Nov 18, 2020

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

Copy link
Member

@tacianosilva tacianosilva left a 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!

Comment on lines -81 to +94
// @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);
Copy link
Member

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?

Copy link
Member Author

@joaoeudes7 joaoeudes7 Nov 18, 2020

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

Comment on lines -129 to -141

// 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;
}

Copy link
Member

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?

Copy link
Member Author

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

@joaoeudes7 joaoeudes7 force-pushed the feat/create_list_and_details_df branch from d9cfbd9 to 457bd3e Compare November 18, 2020 00:16
Copy link
Member Author

@joaoeudes7 joaoeudes7 left a comment

Choose a reason for hiding this comment

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

Comment on lines +182 to +186
<script type="text/javascript">
function viewDetailsDf(id) {
window.location = `details/${id}`;
}
</script>
Copy link
Member Author

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

@joaoeudes7 joaoeudes7 force-pushed the feat/create_list_and_details_df branch from 457bd3e to c55deae Compare November 18, 2020 00:27
@joaoeudes7 joaoeudes7 changed the title feat/create_list_and_details_df Updates in details of DF #31 Nov 18, 2020
@joaoeudes7 joaoeudes7 changed the title Updates in details of DF #31 Updates in details of DF Nov 18, 2020
@tacianosilva tacianosilva added this to the Release 01 milestone Nov 19, 2020
@joaoeudes7 joaoeudes7 force-pushed the feat/create_list_and_details_df branch from c55deae to b93f5e0 Compare November 19, 2020 21:34
@joaoeudes7 joaoeudes7 force-pushed the feat/create_list_and_details_df branch from b93f5e0 to f37da80 Compare November 19, 2020 21:35
@tacianosilva tacianosilva merged commit 6bbc0ea into develop Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants