-
Notifications
You must be signed in to change notification settings - Fork 144
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
#13147 - Phone Number Validation for E-Santé Reports – Remove and Sto… #13151
#13147 - Phone Number Validation for E-Santé Reports – Remove and Sto… #13151
Conversation
…re Non-Numeric Text
…re Non-Numeric Text
…re Non-Numeric Text
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 new field should be mapped to case/contact/event participant when processing
@@ -29,7 +29,7 @@ | |||
*/ | |||
public class I18nConstantGenerator { | |||
|
|||
private static final String FILE_PATH_PATTERN = "src/main/java/de/symeda/sormas/api/i18n/%s.java"; | |||
private static final String FILE_PATH_PATTERN = "sormas-api/src/main/java/de/symeda/sormas/api/i18n/%s.java"; |
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.
please revert this
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.
reverted
@@ -449,4 +450,13 @@ public String getTsv() { | |||
public void setTsv(String tsv) { | |||
this.tsv = tsv; | |||
} | |||
|
|||
@Column(length = CHARACTER_LIMIT_DEFAULT) |
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.
should be CHARACTER_LIMIT_TEXT
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.
changed
SonarCloud analysis: https://sonarcloud.io/dashboard?id=SORMAS-Project&pullRequest=13151 |
…re Non-Numeric Text - changes after review
the new additionalDetails field was added to Person's general comment field |
…re Non-Numeric Text - changes after review
…re Non-Numeric Text - changes after review
SonarCloud analysis: https://sonarcloud.io/dashboard?id=SORMAS-Project&pullRequest=13151 |
@@ -158,6 +158,9 @@ public class ExternalMessageDto extends SormasToSormasShareableDto { | |||
|
|||
private boolean automaticProcessingPossible; | |||
|
|||
@Size(max = FieldConstraints.CHARACTER_LIMIT_TEXT, message = Validations.textTooLong) | |||
private String additionalDetails; |
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.
please rename to personAdditionalDetails
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.
renamed
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.
renamed
…re Non-Numeric Text - changes after review
…ject into feature-13147_phone_number_validation_for_e-sante # Conflicts: # sormas-backend/src/main/resources/sql/sormas_schema.sql
SonarCloud analysis: https://sonarcloud.io/dashboard?id=SORMAS-Project&pullRequest=13151 |
|
||
final PersonDto person = buildPerson(); | ||
person.setAdditionalDetails(externalMessageDto.getPersonAdditionalDetails()); |
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 additional details should be set using the mapper. see buildPerson function
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.
updated
@@ -13249,4 +13249,12 @@ ALTER TABLE users_history ADD COLUMN externalid text; | |||
|
|||
INSERT INTO schema_version (version_number, comment) VALUES (550, '#13080 Keycloak username modification is not synced by sormas'); | |||
|
|||
-- 2024-09-23 #13147 Phone Number Validation for E-Santé Reports – Remove and Store Non-Numeric Text | |||
ALTER TABLE externalmessage | |||
ADD COLUMN personAdditionaldetails text; |
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.
column names are all lowercase in general
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.
changed
…re Non-Numeric Text
SonarCloud analysis: https://sonarcloud.io/dashboard?id=SORMAS-Project&pullRequest=13151 |
…re Non-Numeric Text
SonarCloud analysis: https://sonarcloud.io/dashboard?id=SORMAS-Project&pullRequest=13151 |
…re Non-Numeric Text
Fixes #13147