Skip to content

Commit

Permalink
#3330: fixed property name
Browse files Browse the repository at this point in the history
  • Loading branch information
moellerth committed Apr 24, 2024
1 parent 2d166c1 commit 1985e4c
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export class DataacquisitionprojectSearchService {
}

if (verbundFdb) {
let dataTransmissionBase = {'isTransmittedViaVerbundFDB': verbundFdb === 'true' ? true : false};
let dataTransmissionBase = {'isTransmittedViaVerbundFdb': verbundFdb === 'true' ? true : false};
let dataTransmissionFilter = this.createFilterFragment(QueryFragmentType.term, dataTransmissionBase);
boolQuery.bool.filter?.push(dataTransmissionFilter);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ public DataPackage save(DataPackage dataPackage) {
project.setHasUserServiceRemarks(false);
}
if (dataPackage.getTransmissionViaVerbundFdb()) {
project.setIsTransmittedViaVerbundFDB(true);
project.setIsTransmittedViaVerbundFdb(true);
} else {
project.setIsTransmittedViaVerbundFDB(false);
project.setIsTransmittedViaVerbundFdb(false);
}
if (dataPackage.getExternalDataPackage()) {
project.setIsExternalDataPackage(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,16 @@ public class DataAcquisitionProject extends AbstractShadowableRdcDomainObject
* for data packages.
*/
@NotNull(message = "data-acquisition-project-management.error.data-acquisition-project"
+ ".is-external.not-null")
+ ".is-external.not-null")
private Boolean isExternalDataPackage = false;

/**
* Flag indicating whether this project is transmitted via VerbundFDB. Can only be true
* for data packages.
*/
@NotNull(message = "data-acquisition-project-management.error.data-acquisition-project"
+ ".is-tansmitted-via-verbundfdb.not-null")
private Boolean isTransmittedViaVerbundFDB = false;
+ ".is-tansmitted-via-verbundfdb.not-null")
private Boolean isTransmittedViaVerbundFdb = false;

/**
* A valid {@link Release} object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,14 @@ private boolean addUpsertActionForDataAcquisitionProjects(ElasticsearchUpdateQue
&& !dataPackage.getRemarksUserService().equals("")) {
project.setHasUserServiceRemarks(true);
}
if (dataPackage != null
&& dataPackage.getExternalDataPackage()) {
project.setIsExternalDataPackage(true);
}
if (dataPackage != null
&& dataPackage.getTransmissionViaVerbundFdb()) {
project.setIsTransmittedViaVerbundFdb(true);
}
DataAcquisitionProjectSearchDocument searchDocument = new DataAcquisitionProjectSearchDocument(
project);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"type": "boolean",
"copy_to": "all"
},
"isTransmittedViaVerbundFDB": {
"isTransmittedViaVerbundFdb": {
"type": "boolean",
"copy_to": "all"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public static DataAcquisitionProject buildDataAcquisitionProject(String projectI
DataAcquisitionProject project =
DataAcquisitionProject.builder().id(projectId).hasBeenReleasedBefore(false)
.configuration(configuration).assigneeGroup(AssigneeGroup.PUBLISHER).hasUserServiceRemarks(false)
.isExternalDataPackage(false).isTransmittedViaVerbundFDB(false).build();
.isExternalDataPackage(false).isTransmittedViaVerbundFdb(false).build();

project.setMasterId(projectId);
return project;
Expand Down

0 comments on commit 1985e4c

Please sign in to comment.