-
Notifications
You must be signed in to change notification settings - Fork 6
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(vaccination report): Apps connected to EPS can submit a vaccinatio… #651
feat(vaccination report): Apps connected to EPS can submit a vaccinatio… #651
Conversation
6fa4277
to
a53289a
Compare
|
||
try { | ||
|
||
var number = util.parse(text, "DE"); |
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.
So we are only checking for DE numbers. We should enforce the country code by regex and validate against the correct country. There will be employees with foreign country phone numbers.
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, we do not check only for DE. This "DE" parameter is the default Region and is used if the number without country code.
From JavaDoc of the parse
method:
defaultRegion: region that we are expecting the number to be from. This is only used if the number being parsed is not written in international format. The country_code for the number in this case would be stored as that of the default region supplied. If the number is guaranteed to start with a '+' followed by the country calling code, then RegionCode.ZZ or null can be supplied.
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 have added valid non-German phone numbers with country code in the test.
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.
Thank you. Nevertheless we should enforce the country code by regex I think.
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.
If we allow numbers without country code they will be used as "DE". This will lead to inaccuracies if numbers from other countries are entered without country code.
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.
Regex? Oh my God, no way! I prefer to do it differently. ;)
…n information lists via the JSON-RPC method `submitVaccinationInfoList`. The information is saved and made available to health department staff via the front end. Refs iris-connect/iris-backlog#274
8a9d5e8
to
a732cd7
Compare
Unit Test Results 40 files + 2 40 suites +2 3m 3s ⏱️ -40s Results for commit 5bc53f7. ± Comparison against base commit c38078a. This pull request removes 6 and adds 36 tests. Note that renamed tests count towards both.
|
# [1.5.0-rc.1](v1.4.1...v1.5.0-rc.1) (2022-03-09) ### Bug Fixes * Adds grpc server to client EPS. Still not reachable from outside, but necessary for communication between health departments. ([679c08e](679c08e)), closes [#637](#637) * Fixes an error when changing user data (IllegalStateException: Cannot convert value of type 'java.lang.String' […] no matching editors or conversion strategy found). ([58b3d42](58b3d42)) ### Features * Adds a hint to search for hd-contacts by postal code or city into the message input frontend. ([032a648](032a648)), closes [#632](#632) [#636](#636) * Displays meta-data (who and when created/last modified an entity) on event-tracking, index-tracking and user detail pages. ([da1b7a6](da1b7a6)), closes [iris-connect/iris-backlog#234](https://github.com/iris-connect/iris-backlog/issues/234) [#638](#638) * **vaccination report:** Apps connected to EPS can announce the submission of a vaccination report via the JSON-RPC method `announceVaccinationInfoList`. A transmission channel is then opened briefly for the respective user of the app. ([c38078a](c38078a)), closes [iris-connect/iris-backlog#273](https://github.com/iris-connect/iris-backlog/issues/273) [#635](#635) * **vaccination report:** Apps connected to EPS can submit a vaccination report via the JSON-RPC method `submitVaccinationInfoList`. The information is saved and made available to health department staff via the front end. ([72b1f74](72b1f74)), closes [iris-connect/iris-backlog#274](https://github.com/iris-connect/iris-backlog/issues/274) [#651](#651) * **vaccination report:** There is a new view in the front end with an overview of submitted vaccination reports. In the details view of a vaccination report, the submitted persons are displayed with their vaccination status. ([00e93e8](00e93e8)), closes [iris-connect/iris-backlog#275](https://github.com/iris-connect/iris-backlog/issues/275) [#629](#629)
🎉 This PR is included in version 1.5.0-rc.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
# [1.5.0](v1.4.1...v1.5.0) (2022-03-16) ### Bug Fixes * Adds grpc server to client EPS. Still not reachable from outside, but necessary for communication between health departments. ([679c08e](679c08e)), closes [#637](#637) * Fixes an error when changing user data (IllegalStateException: Cannot convert value of type 'java.lang.String' […] no matching editors or conversion strategy found). ([58b3d42](58b3d42)) ### Features * Adds a hint to search for hd-contacts by postal code or city into the message input frontend. ([032a648](032a648)), closes [#632](#632) [#636](#636) * Displays meta-data (who and when created/last modified an entity) on event-tracking, index-tracking and user detail pages. ([da1b7a6](da1b7a6)), closes [iris-connect/iris-backlog#234](https://github.com/iris-connect/iris-backlog/issues/234) [#638](#638) * **Docker Compose:** Adds scope labels to the services in the Docker Compose file to avoid conflicts with possibly existing other instances of Watchtower on the same Docker host. ([499267f](499267f)), closes [#666](#666) * **Messages:** Uses `_ping` and the EPS version check when building the recipient list to determine if a health department is able to receive messages. This avoids additional configuration and enables faster propagation of the feature. ([446da17](446da17)), closes [#668](#668) * **vaccination report:** Apps connected to EPS can announce the submission of a vaccination report via the JSON-RPC method `announceVaccinationInfoList`. A transmission channel is then opened briefly for the respective user of the app. ([c38078a](c38078a)), closes [iris-connect/iris-backlog#273](https://github.com/iris-connect/iris-backlog/issues/273) [#635](#635) * **vaccination report:** Apps connected to EPS can submit a vaccination report via the JSON-RPC method `submitVaccinationInfoList`. The information is saved and made available to health department staff via the front end. ([72b1f74](72b1f74)), closes [iris-connect/iris-backlog#274](https://github.com/iris-connect/iris-backlog/issues/274) [#651](#651) * **vaccination report:** There is a new view in the front end with an overview of submitted vaccination reports. In the details view of a vaccination report, the submitted persons are displayed with their vaccination status. ([00e93e8](00e93e8)), closes [iris-connect/iris-backlog#275](https://github.com/iris-connect/iris-backlog/issues/275) [#629](#629)
🎉 This PR is included in version 1.5.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
…n report via the JSON-RPC method
submitVaccinationInfoList
. The information is saved and made available to health department staff via the front end.Refs iris-connect/iris-backlog#274