-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: Activities with evidences as attachment #121
base: main
Are you sure you want to change the base?
Conversation
… to EvidenceController
…part max-file-size to 100MModify /activity/{activityId}/evidence Controller to return Multipart.
…Id to getActivityEvidence
…ase and evidence not found exception
…ase to return DTO Object
… retrieve in the repository
@@ -25,7 +25,6 @@ class ActivitiesResponseConverter( | |||
project = activity.projectRole.project, | |||
projectRole = activity.projectRole, | |||
duration = activity.duration, | |||
hasImage = activity.hasEvidences |
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.
Mejor poner el valor a false. Este conversor se usa para la API del hook. Si nos cargamos este campo rompemos la integración actual
@@ -15,5 +15,4 @@ data class ActivitiesResponse( | |||
val billable: Boolean, | |||
val organization: Organization, | |||
val project: Project, | |||
val hasImage: Boolean? |
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.
Lo mismo aquí: no quitar el campo hasImage, rompemos el contrato con el hook!!
@@ -13,7 +13,5 @@ data class ActivityRequestBodyHookDTO( | |||
val description: String, | |||
val billable: Boolean, | |||
val projectRoleId: Long, | |||
val hasImage: Boolean, |
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.
No podemos romper la API del Hook!!!!
...ncept-binnacle/src/main/kotlin/com/autentia/tnt/binnacle/usecases/ActivityDeletionUseCase.kt
Outdated
Show resolved
Hide resolved
tntconcept-binnacle/src/main/kotlin/com/autentia/tnt/binnacle/usecases/ActivityUpdateUseCase.kt
Outdated
Show resolved
Hide resolved
tntconcept-ddbb/src/main/resources/db/migration/V016__activity_attachments.sql
Outdated
Show resolved
Hide resolved
…o feat/activity_evidence
…o feat/activity_evidence
Describe your changes
Change the API so in the request there is no evidences as base64 string but an array with all the attachment identifiers that represents an evidence. Also, the flag hasEvidence has been redesigned.
There is a new intermediate table ActivityEvidence that associates the activities with the attachment table
Create/Update/Delete use cases had been modified to use the new attachments and stop using the old ones
Review / Tests
isTemporary
flag must befalse
from the initialtrue
isTemporary
flag must betrue
and the new attachmentfalse