Skip to content

Commit

Permalink
[GITFLOW]merging 'release-1.94.0' into 'master'
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins committed Feb 1, 2024
2 parents 3aa26a4 + 7e6441c commit df4501b
Show file tree
Hide file tree
Showing 476 changed files with 6,196 additions and 1,720 deletions.
6 changes: 3 additions & 3 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ The development team uses an epic as an umbrella for large change or feature str

## Contributing to the Project

There are many ways in which you can contribute to this project as a non-developer. If there is something you would like to do that you don't find instructions about here - or if you want to learn how you can get involved - please contact us at [email protected]
There are many ways in which you can contribute to this project as a non-developer. If there is something you would like to do that you don't find instructions about here - or if you want to learn how you can get involved - please contact us at [email protected]
or through our [GitHub Discussions](https://github.com/sormas-foundation/SORMAS-Project/discussions) and let us know how we can assist you!

Some possibilities to contribute to SORMAS are:
Expand All @@ -115,7 +115,7 @@ Some possibilities to contribute to SORMAS are:
## Contributing to the Code

If you're interested in participating in the development of SORMAS, please follow the [Development Environment Setup Instructions](DEVELOPMENT_ENVIRONMENT.md) before you start developing. If you have problems setting up your development environment or need assistance in choosing the first issue to work on,
please get in touch with us through our [GitHub Discussions](https://github.com/sormas-foundation/SORMAS-Project/discussions) or by contacting us at [email protected].
please get in touch with us through our [GitHub Discussions](https://github.com/sormas-foundation/SORMAS-Project/discussions) or by contacting us at [email protected].

Additionally, our [Wiki](https://github.com/sormas-foundation/SORMAS-Project/wiki) contains some specific development guides that cover common issues like adding new fields to an entity that we suggest to check out before you start implementing something related to those topics:

Expand Down Expand Up @@ -249,4 +249,4 @@ These dependencies have been added to the dependabot ignore list, so no dependen

#### Keycloak
The Keycloak version in SORMAS-Project only defines the version of the Keycloak admin client library. When a new version of Keycloak is available this should be updated after the [Keycloak version is SORMAS-Docker](https://github.com/SORMAS-Foundation/SORMAS-Docker/blob/devops/keycloak/Dockerfile) has been updated. \
This can be tested locally by building the updated Keycloak docker image and then using it in a [container](https://github.com/SORMAS-Foundation/SORMAS-Project/tree/development/sormas-base/setup/keycloak) together with a local Payara instance.
This can be tested locally by building the updated Keycloak docker image and then using it in a [container](https://github.com/SORMAS-Foundation/SORMAS-Project/tree/development/sormas-base/setup/keycloak) together with a local Payara instance.
2 changes: 1 addition & 1 deletion sormas-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<parent>
<groupId>de.symeda.sormas</groupId>
<artifactId>sormas-base</artifactId>
<version>1.93.0</version>
<version>1.94.0</version>
<relativePath>../sormas-base</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class CaseFollowUpDto extends FollowUpDto {
private Boolean isInJurisdiction;

//@formatter:off
public CaseFollowUpDto(String uuid, Date changeDate, String personFirstName, String personLastName,
public CaseFollowUpDto(String uuid, String personFirstName, String personLastName,
Date reportDate, Date symptomsOnsetDate, Date followUpUntil, SymptomJournalStatus symptomJournalStatus,
Disease disease,
boolean isInJurisdiction
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ public CaseIndexDetailedDto(long id, String uuid, String epidNumber, String exte
YesNoUnknown reInfection, String city, String street, String houseNumber, String additionalInformation, String postalCode, String phone,
String reportingUserUuid, String reportingUserFirstName, String reportingUserLastName, Date symptomOnsetDate,
String responsibleRegion, String responsibleCommunity,
int visitCount, long eventCount, Date latestSampleDateTime, long sampleCount, Date latestChangedDate) {
int visitCount, long eventCount, Date latestSampleDateTime, long sampleCount) {
super(id, uuid, epidNumber, externalID, externalToken, internalToken, personUuid, personFirstName, personLastName,
disease, diseaseVariant, diseaseDetails, caseClassification, investigationStatus,
presentCondition, reportDate, creationDate,
regionUuid, districtUuid, healthFacilityUuid,
healthFacilityName, healthFacilityDetails, pointOfEntryUuid, pointOfEntryName, pointOfEntryDetails, surveillanceOfficerUuid, outcome,
age, ageType, birthdateDD, birthdateMM, birthdateYYYY, sex,
quarantineTo, completeness, followUpStatus, followUpUntil, symptomJournalStatus, vaccinationStatus, changeDate, facilityId,
responsibleRegionUuid, responsibleDistrictUuid, responsibleDistrictName, deletionReason, otherDeleteReason, isInJurisdiction, visitCount, latestChangedDate);
responsibleRegionUuid, responsibleDistrictUuid, responsibleDistrictName, deletionReason, otherDeleteReason, isInJurisdiction, visitCount);
//@formatter:on

this.reInfection = reInfection;
Expand All @@ -114,38 +114,6 @@ public CaseIndexDetailedDto(long id, String uuid, String epidNumber, String exte
this.responsibleCommunity = responsibleCommunity;
}

//@formatter:off
public CaseIndexDetailedDto(
long id, String uuid, String epidNumber, String externalID, String externalToken, String internalToken,
String personUuid, String personFirstName, String personLastName,
Disease disease, DiseaseVariant diseaseVariant, String diseaseDetails,
CaseClassification caseClassification, InvestigationStatus investigationStatus, PresentCondition presentCondition,
Date reportDate, Date creationDate,
String regionUuid, String districtUuid,
String healthFacilityUuid, String healthFacilityName, String healthFacilityDetails,
String pointOfEntryUuid, String pointOfEntryName, String pointOfEntryDetails, String surveillanceOfficerUuid,
CaseOutcome outcome, Integer age, ApproximateAgeType ageType, Integer birthdateDD, Integer birthdateMM, Integer birthdateYYYY,
Sex sex, Date quarantineTo, Float completeness, FollowUpStatus followUpStatus, Date followUpUntil,
SymptomJournalStatus symptomJournalStatus, VaccinationStatus vaccinationStatus, Date changeDate, Long facilityId,
String responsibleRegionUuid, String responsibleDistrictUuid, String responsibleDistrictName, DeletionReason deletionReason, String otherDeleteReason, boolean isInJurisdiction,
//detailed fields
YesNoUnknown reInfection, String city, String street, String houseNumber, String additionalInformation,
String postalCode, String phone, String reportingUserUuid, String reportingUserFirstName, String reportingUserLastName,
Date symptomOnsetDate, String responsibleRegion, String responsibleCommunity, int visitCount,
Date latestSampleDateTime, long sampleCount, Date latestChangedDate) {
this(id, uuid, epidNumber, externalID, externalToken, internalToken, personUuid, personFirstName, personLastName,
disease, diseaseVariant, diseaseDetails, caseClassification, investigationStatus, presentCondition,
reportDate, creationDate, regionUuid, districtUuid, healthFacilityUuid, healthFacilityName,
healthFacilityDetails, pointOfEntryUuid, pointOfEntryName, pointOfEntryDetails, surveillanceOfficerUuid,
outcome, age, ageType, birthdateDD, birthdateMM, birthdateYYYY, sex, quarantineTo, completeness,
followUpStatus, followUpUntil, symptomJournalStatus, vaccinationStatus, changeDate, facilityId,
responsibleRegionUuid, responsibleDistrictUuid, responsibleDistrictName, deletionReason, otherDeleteReason, isInJurisdiction, reInfection,
city, street, houseNumber, additionalInformation, postalCode, phone, reportingUserUuid,
reportingUserFirstName, reportingUserLastName, symptomOnsetDate, responsibleRegion, responsibleCommunity,
visitCount, 0, latestSampleDateTime, sampleCount, latestChangedDate);
//@formatter:on
}

public YesNoUnknown getReInfection() {
return reInfection;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,29 +135,6 @@ public class CaseIndexDto extends PseudonymizableIndexDto implements MergeableIn

private Boolean isInJurisdiction;

//@formatter:off
public CaseIndexDto(long id, String uuid, String epidNumber, String externalID, String externalToken, String internalToken, String personUuid, String personFirstName, String personLastName, Disease disease,
DiseaseVariant diseaseVariant, String diseaseDetails, CaseClassification caseClassification, InvestigationStatus investigationStatus,
PresentCondition presentCondition, Date reportDate, Date creationDate, String regionUuid,
String districtUuid, String healthFacilityUuid, String healthFacilityName, String healthFacilityDetails,
String pointOfEntryUuid, String pointOfEntryName, String pointOfEntryDetails, String surveillanceOfficerUuid, CaseOutcome outcome,
Integer age, ApproximateAgeType ageType, Integer birthdateDD, Integer birthdateMM, Integer birthdateYYYY, Sex sex, Date quarantineTo,
Float completeness, FollowUpStatus followUpStatus, Date followUpUntil, SymptomJournalStatus symptomJournalStatus, VaccinationStatus vaccinationStatus, Date changeDate, Long facilityId,
// responsible jurisdiction
String responsibleRegionUuid, String responsibleDistrictUuid, String responsibleDistrictName, DeletionReason deletionReason, String otherDeletionReason, boolean isInJurisdiction) {
this(id, uuid, epidNumber, externalID, externalToken, internalToken, personUuid, personFirstName, personLastName, disease,
diseaseVariant, diseaseDetails, caseClassification, investigationStatus,
presentCondition, reportDate, creationDate, regionUuid,
districtUuid, healthFacilityUuid, healthFacilityName, healthFacilityDetails,
pointOfEntryUuid, pointOfEntryName, pointOfEntryDetails, surveillanceOfficerUuid, outcome,
age, ageType, birthdateDD, birthdateMM, birthdateYYYY, sex, quarantineTo,
completeness, followUpStatus, followUpUntil, symptomJournalStatus, vaccinationStatus, changeDate, facilityId,
responsibleRegionUuid, responsibleDistrictUuid, responsibleDistrictName, deletionReason, otherDeletionReason, isInJurisdiction,
null, null
);
}
//@formatter:on

//@formatter:off
public CaseIndexDto(long id, String uuid, String epidNumber, String externalID, String externalToken, String internalToken, String personUuid, String personFirstName, String personLastName, Disease disease,
DiseaseVariant diseaseVariant, String diseaseDetails, CaseClassification caseClassification, InvestigationStatus investigationStatus,
Expand All @@ -170,8 +147,7 @@ public CaseIndexDto(long id, String uuid, String epidNumber, String externalID,
// responsible jurisdiction
String responsibleRegionUuid, String responsibleDistrictUuid, String responsibleDistrictName, DeletionReason deletionReason, String otherDeletionReason, boolean isInJurisdiction,
// others
Integer visitCount,
Date latestChangedDate // unused, only here for TypedQuery mapping
Integer visitCount
) {
//@formatter:on

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package de.symeda.sormas.api.caze;

import java.util.Date;
import java.util.Objects;

import de.symeda.sormas.api.Disease;
import de.symeda.sormas.api.common.DeletionReason;
Expand Down Expand Up @@ -79,7 +78,6 @@ public CaseMergeIndexDto(
deletionReason,
otherDeletionReason,
isInJurisdiction,
null,
null
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,15 @@ public ContactIndexDetailedDto(String uuid, String personUuid, String personFirs
String externalID, String externalToken, String internalToken, DeletionReason deletionReason, String otherDeleteReason, boolean isInJurisdiction, boolean isCaseInJurisdiction,
Sex sex, Integer approximateAge, ApproximateAgeType approximateAgeType,
String city, String street, String houseNumber, String additionalInformation, String postalCode, String phone,
String reportingUserFirstName, String reportingUserLastName, ContactRelation relationToCase, int visitCount,
Date latestChangedDate // unused, only here for TypedQuery mapping
String reportingUserFirstName, String reportingUserLastName, ContactRelation relationToCase, int visitCount
) {
//@formatter:on

//@formatter:off
super(uuid, personUuid, personFirstName, personLastName, cazeUuid, disease, diseaseDetails, caseFirstName, caseLastName,
regionName, districtName, lastContactDate, contactCategory, contactProximity, contactClassification, contactStatus,
completeness, followUpStatus, followUpUntil, symptomJournalStatus, vaccinationStatus, contactOfficerUuid, reportingUserUuid, reportDateTime, caseClassification,
caseRegionName, caseDistrictName, changeDate, externalID, externalToken, internalToken, deletionReason, otherDeleteReason,isInJurisdiction, isCaseInJurisdiction , visitCount, latestChangedDate);
caseRegionName, caseDistrictName, changeDate, externalID, externalToken, internalToken, deletionReason, otherDeleteReason,isInJurisdiction, isCaseInJurisdiction , visitCount);

//@formatter:on

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ public ContactIndexDto(String uuid, String personUuid, String personFirstName, S
CaseClassification caseClassification, String caseRegionName, String caseDistrictName,
Date changeDate, // XXX: unused, only here for TypedQuery mapping
String externalID, String externalToken, String internalToken, DeletionReason deletionReason, String otherDeletionReason, boolean isInJurisdiction, boolean isCaseInJurisdiction,
int visitCount,
Date latestChangedDate // unused, only here for TypedQuery mapping
int visitCount
) {
//@formatter:on

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* Base class for customizable enums. Supposed to be extended for every enum that is made customizable to ensure type safety.
*/
@AuditedClass
public abstract class CustomizableEnum implements Serializable {
public abstract class CustomizableEnum implements Serializable, Cloneable {

private static final long serialVersionUID = 8698428745095686559L;

Expand Down Expand Up @@ -96,5 +96,14 @@ public int hashCode() {
return Objects.hash(value);
}

@Override
public CustomizableEnum clone() {
try {
return (CustomizableEnum) super.clone();
} catch (CloneNotSupportedException e) {
throw new RuntimeException(e);
}
}

public abstract Map<String, Class<?>> getAllProperties();
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class CustomizableEnumCriteria extends BaseCriteria implements Serializab
private String freeTextFilter;
private CustomizableEnumType dataType;
private Disease disease;
private Boolean active = true;

public String getFreeTextFilter() {
return freeTextFilter;
Expand Down Expand Up @@ -55,4 +56,13 @@ public CustomizableEnumCriteria disease(Disease disease) {
return this;
}

public Boolean getActive() {
return active;
}

public CustomizableEnumCriteria active(Boolean active) {
this.active = active;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ public interface CustomizableEnumFacade
* Retrieves the cached contents of all enum value instances of the specified type. The results are already
* internationalized based on the user's language, or the server language as a fallback. If the enum values for the
* specified type and disease have not been requested yet, the cache is extended with them on demand.
*
*
* @param type
* The type for which to retrieve the enum values
* @param disease
* The disease for which to retrieve the enum values. If null, all enum values that are disease-independent are retrieved
* The disease for which to retrieve the enum values; if null, all enum values that are disease-independent are retrieved
* @param <T>
* The specific extension of {@link CustomizableEnum} for type safety
* @return A list of all enum instances containing their values, internationalized captions, and optional properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public class CustomizableEnumValueDto extends EntityDto {
public static final String TRANSLATIONS = "translations";
public static final String DISEASES = "diseases";
public static final String PROPERTIES = "properties";
public static final String ACTIVE = "active";

@NotNull(message = Validations.required)
private CustomizableEnumType dataType;
Expand All @@ -69,10 +70,12 @@ public class CustomizableEnumValueDto extends EntityDto {
* or translations because they can be translated via properties files.
*/
private boolean defaultValue;
private boolean active;

public static CustomizableEnumValueDto build() {
CustomizableEnumValueDto dto = new CustomizableEnumValueDto();
dto.setUuid(DataHelper.createUuid());
dto.setActive(true);
return dto;
}

Expand Down Expand Up @@ -147,4 +150,12 @@ public boolean isDefaultValue() {
public void setDefaultValue(boolean defaultValue) {
this.defaultValue = defaultValue;
}

public boolean isActive() {
return active;
}

public void setActive(boolean active) {
this.active = active;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
*/
package de.symeda.sormas.api.event;

import java.util.Date;

import de.symeda.sormas.api.uuid.AbstractUuidDto;

public class EventGroupIndexDto extends AbstractUuidDto {
Expand All @@ -27,16 +25,12 @@ public class EventGroupIndexDto extends AbstractUuidDto {
public static final String UUID = "uuid";
public static final String NAME = "name";
public static final String EVENT_COUNT = "eventCount";
public static final String CHANGED_DATE = "changeDate";

private String name;
private Long eventCount;
private Date changeDate;

public EventGroupIndexDto(String uuid, String name, Date changeDate, Long eventCount) {
public EventGroupIndexDto(String uuid, String name, Long eventCount) {
super(uuid);
this.name = name;
this.changeDate = changeDate;
this.eventCount = eventCount;
}

Expand All @@ -48,14 +42,6 @@ public void setName(String name) {
this.name = name;
}

public Date getChangeDate() {
return changeDate;
}

public void setChangeDate(Date changeDate) {
this.changeDate = changeDate;
}

public Long getEventCount() {
return eventCount;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ public EventIndexDto(
String responsibleUserFirstName,
String responsibleUserLastName,
boolean isInJurisdictionOrOwned,
Date changeDate,
EventIdentificationSource eventIdentificationSource,
DeletionReason deletionReason,
String otherDeletionReason) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import de.symeda.sormas.api.caze.VaccinationStatus;
import de.symeda.sormas.api.common.DeletionReason;
import de.symeda.sormas.api.person.ApproximateAgeType;
import de.symeda.sormas.api.person.Sex;
import de.symeda.sormas.api.sample.PathogenTestResultType;
import de.symeda.sormas.api.utils.PersonalData;
Expand Down Expand Up @@ -64,12 +63,10 @@ public EventParticipantIndexDto(
String lastName,
Sex sex,
Integer approximateAge,
ApproximateAgeType approximateAgeType,
String involvementDescription,
PathogenTestResultType pathogenTestResult,
Date sampleDateTime,
VaccinationStatus vaccinationStatus,
String reportingUserUuid,
DeletionReason deletionReason,
String otherDeletionReason,
boolean isInJurisdiction,
Expand Down
Loading

0 comments on commit df4501b

Please sign in to comment.