Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhavana Narayanan committed Oct 24, 2024
2 parents 531cf1a + 62fc1b0 commit cce28d5
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "glass",
"description": "DHIS2 Glass App",
"version": "1.6.18",
"version": "1.6.20",
"license": "GPL-3.0",
"author": "EyeSeeTea team",
"homepage": ".",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,9 @@ export class ImportRISIndividualFungalFile {
const sampleDateStr =
AMRDataStage.find(de => de.dataElement === AMR_GLASS_AMR_DET_SAMPLE_DATE)?.value ??
`01-01-${period}`;
const sampleDate = moment(new Date(sampleDateStr)).toISOString().split("T").at(0) ?? period;
const sampleDate = moment(new Date(sampleDateStr)).toISOString()?.split("T").at(0) ?? period;

const createdAt = moment(new Date()).toISOString().split("T").at(0) ?? period;
const createdAt = moment(new Date()).toISOString()?.split("T").at(0) ?? period;

const events: D2TrackerEvent[] = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ export class CustomValidationForEventProgram {
countryName: string,
checkClinics: boolean
): FutureData<ConsistencyError[]> {
const clinicsInEvents = events.map(e => e.orgUnit);
const clinicsInEvents = _(events.map(e => e.orgUnit))
.uniq()
.value();
return Future.joinObj({
clinicsInCountry: checkClinics
? this.metadataRepository.getClinicsAndLabsInOrgUnitId(countryId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,6 @@ export class ProgramRuleValidationForBLEventProgram {

const enrollment = event.enrollmentId ? enrollmentsById[event.enrollmentId] : undefined;

console.debug(`Process event: ${event.eventId}`);

const selectedEntity: TrackedEntityAttributeValuesMap | undefined = tei
? _(tei.attributes)
.map(attr => [attr.attribute, attr.value] as [Id, string])
Expand Down Expand Up @@ -506,10 +504,6 @@ export class ProgramRuleValidationForBLEventProgram {
return undefined;
}

console.debug(
_.compact(["Get effects[results]:", `eventId=${event.eventId}`, `ASSIGNs: ${effects.length}`]).join(" ")
);

if (!_.isEmpty(effects)) {
const eventEffect: EventEffect = {
program,
Expand Down
2 changes: 1 addition & 1 deletion src/domain/utils/ModuleProperties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const moduleProperties = new Map<string, ModuleDetails>([
{
isbatchReq: false,
isQuestionnaireReq: true,
completeStatusChange: "DATASET",
completeStatusChange: "QUESTIONNAIRE",
isSecondaryFileApplicable: false,
isDryRunReq: false,
importLoadingMsg: {
Expand Down
2 changes: 1 addition & 1 deletion src/webapp/pages/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const App: React.FC<AppProps> = React.memo(function App({ api, d2, instan

setAppContext({ api, currentUser, compositionRoot, instance: instance, allCountries: allCountries ?? [] });
// setShowShareButton(isShareButtonVisible);
initFeedbackTool(d2, appConfig);
if (process.env.NODE_ENV !== "production") initFeedbackTool(d2, appConfig);
setLoading(false);
}
setup();
Expand Down

0 comments on commit cce28d5

Please sign in to comment.