-
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
1791: Create application verifications automatically for verein360 applications #1810
1791: Create application verifications automatically for verein360 applications #1810
Conversation
aac3e94
to
ea6a8eb
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.
First of all some general thoughts
I'm just thinking of how we "mark" this application in the overview view table and i'm not sure if we really have to define this "source" attribute on a verification but on an application level once. That would simplify that we don't need to loop through all verifications (Even the verification source values will be equal for a application).
Or do you think we will have the case where we have for one application different verification sources?
I would prefer to just add a "Source" column to applications to keep it simple because one application comes typically from one source.
We could then set "Internal" as default source or sth. similar
Maybe i've overseen sth that makes your implementation needed.
Yes of course I thought about this, too. I decided to do it this way for the following reasons:
|
Alright thx for the detailed explanation. :) |
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.
The code looks fine to me but i couldn't test if the external source will be set to "Verein360". I added a comment
...rc/main/kotlin/app/ehrenamtskarte/backend/application/webservice/utils/ApplicationHandler.kt
Show resolved
Hide resolved
...rc/main/kotlin/app/ehrenamtskarte/backend/application/webservice/utils/ApplicationHandler.kt
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.
Works fine. Nice 👍
Seems to be an issue:
|
...c/main/kotlin/app/ehrenamtskarte/backend/application/database/repos/ApplicationRepository.kt
Outdated
Show resolved
Hide resolved
dc284d6
to
b04a621
Compare
} | ||
|
||
fun setApplicationVerificationToVerifiedNow(verificationEntities: List<ApplicationVerificationEntity>) { | ||
fun setApplicationVerificationToPreVerifiedNow(verificationEntities: List<ApplicationVerificationEntity>) { |
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.
fun setApplicationVerificationToPreVerifiedNow(verificationEntities: List<ApplicationVerificationEntity>) { | |
fun setApplicationVerificationToPreVerified(verificationEntities: List<ApplicationVerificationEntity>) { |
🙃 just a personal preference to keep the names shorter, not sure if 'now' is an important detail here. feel free to ignore
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.
thanks, looks good to me now!
Short description
Application verifications get source set for verein360 applications
Proposed changes
Side effects
None, maybe affecting normal application creation process
Testing
create new application with one or more organizations. Check for correct error messages if isAlreadyVerified differs. Check if one or all are true, the applicationVerifications table column automaticSource is set properly to VEREIN360
Feel free to test the complete feature in this PR: #1811
Resolved issues
Fixes: #1791