Skip to content

Commit

Permalink
Merge pull request #268 from EyeSeeTea/development
Browse files Browse the repository at this point in the history
Release 3.17.3
  • Loading branch information
adrianq authored Feb 25, 2022
2 parents 9737791 + 70309c4 commit ba97859
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bulk-load",
"description": "Bulk importing made easy",
"version": "3.17.2",
"version": "3.17.3",
"license": "GPL-3.0",
"author": "EyeSeeTea team",
"homepage": ".",
Expand Down
4 changes: 4 additions & 0 deletions src/data/InstanceDhisRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ export class InstanceDhisRepository implements InstanceRepository {
enrollmentStartDate: params.filterTEIEnrollmentDate ? params.startDate : undefined,
enrollmentEndDate: params.filterTEIEnrollmentDate ? params.endDate : undefined,
relationshipsOuFilter: params.relationshipsOuFilter,
// @ts-ignore FIXME: Add property in d2-api
fields: "*",
});

return {
Expand Down Expand Up @@ -508,6 +510,8 @@ export class InstanceDhisRepository implements InstanceRepository {
startDate: startDate?.format("YYYY-MM-DD"),
endDate: endDate?.format("YYYY-MM-DD"),
cache: Math.random(),
// @ts-ignore FIXME: Add property in d2-api
fields: "*",
})
.getData();
};
Expand Down
2 changes: 1 addition & 1 deletion src/domain/helpers/ExcelBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export class ExcelBuilder {
for (const dataEntry of payload.dataEntries) {
const { id, period, dataValues, trackedEntityInstance, attribute: cocId, programStage } = dataEntry;
const someDataElementPresentInSheet = _(dataValues).some(dv => dataElementIdsSet.has(dv.dataElement));
if (!someDataElementPresentInSheet) continue;
if (!someDataElementPresentInSheet && !_.isEmpty(dataValues)) continue;

const eventBelongsToCurrentProgramStage =
dataSourceProgramStageId && dataSourceProgramStageId === programStage;
Expand Down

0 comments on commit ba97859

Please sign in to comment.