Fix critical issue with public dataset query

This commit is contained in:
George Kalampokis 2021-08-23 11:48:29 +03:00
parent 6bc5aaed25
commit c964af25b5
2 changed files with 8 additions and 2 deletions

6
.gitignore vendored
View File

@ -40,3 +40,9 @@ dmp-frontend/.vscode/
dmp-frontend/package-lock.json
dmp-backend/logging/target/
ELK.Docker/shared/data-elk/
# Eclipse
.project
.settings/
bin/
*.classpath

View File

@ -291,9 +291,9 @@ public class DashBoardManager {
}
}
if (tableRequest.getOrderings().getFields().get(0).contains("publishedAt")) {
/*if (tableRequest.getOrderings().getFields().get(0).contains("publishedAt")) {
tableRequest.getOrderings().getFields().set(0, tableRequest.getOrderings().getFields().get(0).charAt(0) + "dmp:" + tableRequest.getOrderings().getFields().get(0).substring(1) + "|join|");
}
}*/
PaginationService.applyOrder(datasetList, tableRequest.getOrderings());
datasetList.skip(tableRequest.getDatasetOffset()).take(tableRequest.getLength());