-
Notifications
You must be signed in to change notification settings - Fork 142
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
#13157 - Disable Contact Management for RSV Cases #13178
#13157 - Disable Contact Management for RSV Cases #13178
Conversation
SonarCloud analysis: https://sonarcloud.io/dashboard?id=SORMAS-Project&pullRequest=13178 |
@@ -233,6 +237,12 @@ protected ComboBox addDiseaseField(String fieldId, boolean showNonPrimaryDisease | |||
newItem.getItemProperty(SormasFieldGroupFieldFactory.CAPTION_PROPERTY_ID).setValue(value.toString()); | |||
} | |||
}); | |||
|
|||
// |
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 delete the empty comment
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.
removed
@@ -233,6 +237,12 @@ protected ComboBox addDiseaseField(String fieldId, boolean showNonPrimaryDisease | |||
newItem.getItemProperty(SormasFieldGroupFieldFactory.CAPTION_PROPERTY_ID).setValue(value.toString()); | |||
} | |||
}); | |||
|
|||
// | |||
if (hideFollowUpDisabledDiseases) { |
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.
this should be done before statement
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.
moved above the above statement
@@ -503,6 +513,16 @@ protected void addNonPrimaryDiseasesTo(ComboBox diseaseField) { | |||
} | |||
} | |||
|
|||
protected void removeFollowUpDisabledDiseases(ComboBox diseaseField) { |
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 merge this with the above function to avoid requesting and iterating over disease configurations
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.
this doesn't allow changing the followupEnabled from the DB because you always take the default value of the enum, you should use disease configuration instances to check wether followup is enabled or not.
So the filtering should be done on the backend
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.
update the method to retrieve the followUpEnabled diseases
SonarCloud analysis: https://sonarcloud.io/dashboard?id=SORMAS-Project&pullRequest=13178 |
Fixes #13157