-
Notifications
You must be signed in to change notification settings - Fork 3
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
1080: Add start day #1090
1080: Add start day #1090
Conversation
… protobuf, adjust card content to show date start, add stillInvalidCheck
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.
Tested on android emulator.
frontend/lib/identification/card_detail_view/card_detail_view.dart
Outdated
Show resolved
Hide resolved
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.
Imo, the start date must also be added to the DB table and checked in the backend.
Not sure what you mean by "each timestamp we add". I don't think there will be yet another timestamp in the future regarding the validity period. Also I think, we should make sure that the backend has the (ultimate) capability of checking whether a card is valid or not (simply by looking at the row in the DB table). (Might also be interesting to have a statistic like "Currently valid cards" which we wouldn't be able to accurately determine if we don't add it to the DB). More importantly (imo), the Implementing some validity checks on the frontend (of the verifier's device) and some validity checks on the backend seems a bit arbitrary to me from a design perspective. |
…ding issue for card verification
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.
Haven't tested
backend/src/main/kotlin/app/ehrenamtskarte/backend/migration/migrations/V0007_AddStartDay.kt
Outdated
Show resolved
Hide resolved
backend/src/main/kotlin/app/ehrenamtskarte/backend/verification/database/Schema.kt
Show resolved
Hide resolved
Co-authored-by: Michael Markl <[email protected]>
Co-authored-by: Michael Markl <[email protected]>
…n/database/Schema.kt Co-authored-by: Michael Markl <[email protected]>
…st for card info utils isCardNotYetValid, add a check that expiry date is after start day
4510f4b
to
2e276f0
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.
Again works as expected. I like the additional tests and checks. Checking the time is sth. we seemingly have overseen completely before.
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.
Not tested
frontend/lib/identification/card_detail_view/card_detail_view.dart
Outdated
Show resolved
Hide resolved
frontend/lib/identification/card_detail_view/card_detail_view.dart
Outdated
Show resolved
Hide resolved
7eab2ae
to
1dbae00
Compare
…dart Co-authored-by: Michael Markl <[email protected]>
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.
I left some minor comments. Please rerequest review once you have updated the last changes, then I'll look over it (hopefully) one last time
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.
👌🏼 nice work. works fine.
resolves #1080