-
Notifications
You must be signed in to change notification settings - Fork 7
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
Some fixes #254
Merged
Merged
Some fixes #254
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
296df23
optimize booking and add better logging & exception handling
LukasForst baa043d
make detekt happy
LukasForst d8508e4
round time slots
LukasForst 7d32a49
make detekt happy
LukasForst 52de6c3
implement more tests and some fixes
LukasForst c8ccd27
add more necessary tests
LukasForst ea2e46b
return more reasonable output after registration
LukasForst 5932f2f
implement more tests for patient registrastion
LukasForst 8651b39
add more test cases for patient registration
LukasForst edc82b6
make detekt happy again
LukasForst 280ce4a
add more logs to increase observability
LukasForst 26b1fff
FE new model generated + merged location onto confirmation
misslecter ff0bab6
fix merge issues
LukasForst d65f142
add task number for the booking
LukasForst File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 8 additions & 3 deletions
11
backend/src/main/kotlin/blue/mild/covid/vaxx/dto/internal/IsinValidationResultDto.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
package blue.mild.covid.vaxx.dto.internal | ||
|
||
sealed interface PatientValidationResultDto { | ||
val status: PatientValidationResult | ||
val patientId: String? | ||
} | ||
|
||
data class IsinValidationResultDto( | ||
val status: IsinValidationResultStatus, | ||
val patientId: String? = null | ||
) | ||
override val status: PatientValidationResult, | ||
override val patientId: String? = null | ||
) : PatientValidationResultDto |
2 changes: 1 addition & 1 deletion
2
...to/internal/IsinValidationResultStatus.kt → ...x/dto/internal/PatientValidationResult.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 4 additions & 11 deletions
15
...nd/src/main/kotlin/blue/mild/covid/vaxx/dto/response/PatientRegistrationResponseDtoOut.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
package blue.mild.covid.vaxx.dto.response | ||
|
||
import blue.mild.covid.vaxx.dao.model.EntityId | ||
import java.time.Instant | ||
|
||
data class PatientRegistrationResponseDtoOut( | ||
val email: String, | ||
val slot: VaccinationSlot | ||
) { | ||
data class VaccinationSlot( | ||
val locationId: EntityId, | ||
val queue: Int, | ||
val from: Instant, | ||
val to: Instant | ||
) | ||
} | ||
val patientId: EntityId, | ||
val slot: VaccinationSlotDtoOut, | ||
val location: LocationDtoOut | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../blue/mild/covid/vaxx/utils/Extensions.kt → .../mild/covid/vaxx/extensions/Extensions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package blue.mild.covid.vaxx.utils | ||
package blue.mild.covid.vaxx.extensions | ||
|
||
import mu.KLogging | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
to asi neni potreba, it uz nepouzijes. Ne?
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.
Nicmene bys mohl mozna...
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.
tohle se pouzije, protoze se to propise do finalniho jsonu jako
"exception": {...}
tzn v AWS uvidime celej stacktrace - to mi prijde uzitecneThere 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.
Jakoze bez toho
it
se nevypise stacktrace, jo? Potom to samozrejme chcemeThere 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.
presne tak