-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
src/main/kotlin/pt/up/fe/ni/website/backend/service/activity/EventService.kt
Outdated
Show resolved
Hide resolved
@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) | ||
} |
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.
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
Check the documentation preview: https://64bb3d784bb2041328a940f5--niaefeup-backend-docs.netlify.app |
Check the documentation preview: https://64c0067aad4acc0093b0c053--niaefeup-backend-docs.netlify.app |
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.
Awesome job! Some great much needed generalizations besides the additions here. Left mostly questions
src/main/kotlin/pt/up/fe/ni/website/backend/controller/AccountController.kt
Show resolved
Hide resolved
src/main/kotlin/pt/up/fe/ni/website/backend/controller/ErrorController.kt
Show resolved
Hide resolved
src/main/kotlin/pt/up/fe/ni/website/backend/controller/EventController.kt
Show resolved
Hide resolved
src/main/kotlin/pt/up/fe/ni/website/backend/service/activity/AbstractActivityService.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/pt/up/fe/ni/website/backend/service/activity/AbstractActivityService.kt
Show resolved
Hide resolved
...tlin/pt/up/fe/ni/website/backend/utils/documentation/payloadschemas/model/PayloadActivity.kt
Show resolved
Hide resolved
src/test/kotlin/pt/up/fe/ni/website/backend/controller/AccountControllerTest.kt
Outdated
Show resolved
Hide resolved
src/test/kotlin/pt/up/fe/ni/website/backend/controller/EventControllerTest.kt
Show resolved
Hide resolved
ba351fb
to
88ce5bf
Compare
5dab80d
to
a8175f7
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.
Some other minor questions here and there. Also not sure why the test action is failing
src/test/kotlin/pt/up/fe/ni/website/backend/controller/AccountControllerTest.kt
Outdated
Show resolved
Hide resolved
src/test/kotlin/pt/up/fe/ni/website/backend/controller/ProjectControllerTest.kt
Show resolved
Hide resolved
...otlin/pt/up/fe/ni/website/backend/utils/documentation/payloadschemas/model/PayloadProject.kt
Outdated
Show resolved
Hide resolved
...otlin/pt/up/fe/ni/website/backend/utils/documentation/payloadschemas/model/PayloadProject.kt
Show resolved
Hide resolved
74cd6c1
to
247fa9a
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.
This PR appears to be almost ready. I left just a few questions.
src/test/kotlin/pt/up/fe/ni/website/backend/controller/AccountControllerTest.kt
Outdated
Show resolved
Hide resolved
8d316a0
to
55eb68f
Compare
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😕 |
55eb68f
to
2024c42
Compare
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. |
218b693
to
8762094
Compare
8762094
to
0fdae7e
Compare
0fdae7e
to
511e498
Compare
Check the documentation preview: https://64d13b7e3f5d6a15627613ce--niaefeup-backend-docs.netlify.app |
c6f6983
to
05a4181
Compare
Check the documentation preview: https://64d13f9cbb9f331953df344e--niaefeup-backend-docs.netlify.app |
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.
Great job as usual :)
newProject.apply { | ||
teamMembers.clear() | ||
dto.teamMembersIds?.forEach { | ||
hallOfFame.clear() |
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.
Good catch here!
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.
Good job!
Check the documentation preview: |
closes #146 #65
Review checklist