Skip to content
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

Added project missing fields #178

Merged
merged 24 commits into from
Aug 8, 2023
Merged

Conversation

BrunoRosendo
Copy link
Member

closes #146 #65

Review checklist

  • Properly documents API changes in the corresponding controller test
  • Contains enough appropriate tests
  • Behavior is as expected
  • Clean, well structured code

Comment on lines +50 to +60
@PutMapping("/{id}", consumes = ["multipart/form-data"])
fun updateProjectById(
@PathVariable id: Long,
@RequestBody dto: ProjectDto
) = service.updateProjectById(id, dto)
@RequestPart project: ProjectDto,
@RequestParam
@ValidImage
image: MultipartFile?
): Project {
project.imageFile = image
return service.updateProjectById(id, project)
}
Copy link
Member Author

Choose a reason for hiding this comment

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

In this version, the way to update the timeline is to send a PUT with the whole project, the same way we do for the remaining fields. I think this makes the API simpler and is fine since the timeline doesn't hold a lot of data

@BrunoRosendo BrunoRosendo linked an issue Jul 22, 2023 that may be closed by this pull request
@github-actions
Copy link

Check the documentation preview: https://64bb3d784bb2041328a940f5--niaefeup-backend-docs.netlify.app

@BrunoRosendo BrunoRosendo marked this pull request as ready for review July 25, 2023 17:25
@github-actions
Copy link

Check the documentation preview: https://64c0067aad4acc0093b0c053--niaefeup-backend-docs.netlify.app

Copy link
Collaborator

@MRita443 MRita443 left a comment

Choose a reason for hiding this comment

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

Awesome job! Some great much needed generalizations besides the additions here. Left mostly questions

@BrunoRosendo BrunoRosendo force-pushed the feature/project-missing-fields branch from ba351fb to 88ce5bf Compare July 31, 2023 23:42
@BrunoRosendo BrunoRosendo force-pushed the feature/project-missing-fields branch 2 times, most recently from 5dab80d to a8175f7 Compare August 1, 2023 00:01
Copy link
Collaborator

@MRita443 MRita443 left a comment

Choose a reason for hiding this comment

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

Some other minor questions here and there. Also not sure why the test action is failing

@BrunoRosendo BrunoRosendo force-pushed the feature/project-missing-fields branch from 74cd6c1 to 247fa9a Compare August 1, 2023 22:12
Copy link
Member

@jamcunha jamcunha left a comment

Choose a reason for hiding this comment

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

This PR appears to be almost ready. I left just a few questions.

@BrunoRosendo BrunoRosendo force-pushed the feature/project-missing-fields branch 7 times, most recently from 8d316a0 to 55eb68f Compare August 2, 2023 02:03
@BrunoRosendo
Copy link
Member Author

BrunoRosendo commented Aug 2, 2023

I have no idea as to why the build is failing here with a compilation error. Everything works normally locally and the error does not make sense to me😕

@BrunoRosendo BrunoRosendo force-pushed the feature/project-missing-fields branch from 55eb68f to 2024c42 Compare August 2, 2023 02:06
@MRita443
Copy link
Collaborator

MRita443 commented Aug 2, 2023

I have no idea as to why the build is failing here with a compilation error. Everything works normally locally and the error does not make sense to me😕

Everything worked for me locally too, it's weird but imo the most important thing is that it works locally and when it's ready we can merge it anyways

@limwa
Copy link
Member

limwa commented Aug 2, 2023

I have no idea as to why the build is failing here with a compilation error. Everything works normally locally and the error does not make sense to me😕

Everything worked for me locally too, it's weird but imo the most important thing is that it works locally and when it's ready we can merge it anyways

I'll look into it as well. I don't think it's wise to merge until we know what is happening.

@BrunoRosendo BrunoRosendo force-pushed the feature/project-missing-fields branch from 0fdae7e to 511e498 Compare August 7, 2023 18:38
@github-actions
Copy link

github-actions bot commented Aug 7, 2023

Check the documentation preview: https://64d13b7e3f5d6a15627613ce--niaefeup-backend-docs.netlify.app

@BrunoRosendo BrunoRosendo force-pushed the feature/project-missing-fields branch from c6f6983 to 05a4181 Compare August 7, 2023 18:56
@github-actions
Copy link

github-actions bot commented Aug 7, 2023

Check the documentation preview: https://64d13f9cbb9f331953df344e--niaefeup-backend-docs.netlify.app

Copy link
Collaborator

@MRita443 MRita443 left a comment

Choose a reason for hiding this comment

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

Great job as usual :)

newProject.apply {
teamMembers.clear()
dto.teamMembersIds?.forEach {
hallOfFame.clear()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good catch here!

Copy link
Member

@jamcunha jamcunha left a comment

Choose a reason for hiding this comment

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

Good job!

@BrunoRosendo BrunoRosendo merged commit 8f44a36 into develop Aug 8, 2023
3 checks passed
@BrunoRosendo BrunoRosendo deleted the feature/project-missing-fields branch August 8, 2023 16:10
@github-actions
Copy link

github-actions bot commented Aug 8, 2023

Check the documentation preview:

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.

projects: add missing fields projects: timeline
4 participants