Skip to content

Commit

Permalink
Merge pull request #90 from EyeSeeTea/hotfix/atomic
Browse files Browse the repository at this point in the history
hotfix: Disable atomic
  • Loading branch information
adrianq authored May 24, 2019
2 parents f846390 + 3bec150 commit d53b2a1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "metadata-synchronization",
"description": "Metadata Synchronization",
"version": "0.1.1",
"version": "0.1.2",
"license": "GPL-3.0",
"author": "EyeSeeTea team",
"homepage": ".",
Expand Down
3 changes: 2 additions & 1 deletion src/components/sync-summary/SyncSummary.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from "react";
import _ from "lodash";
import i18n from "@dhis2/d2-i18n";
import PropTypes from "prop-types";
import { ConfirmationDialog } from "d2-ui-components";
Expand Down Expand Up @@ -157,7 +158,7 @@ class SyncSummary extends React.Component {
className={classes.expansionPanelDetails}
>
{SyncSummary.buildMessageTable(
responseElement.report.messages
_.take(responseElement.report.messages, 10)
)}
</ExpansionPanelDetails>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/models/d2Model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class OrganisationUnitModel extends D2Model {
"organisationUnitGroups.organisationUnitGroupSets.userGroupAccesses",
];
protected static includeRules = [
"attribute",
"attributes",
"organisationUnitGroups",
"organisationUnitGroups.attributes",
"organisationUnitGroups.organisationUnitGroupSets",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/synchronization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export async function postMetadata(instance: Instance, metadata: any): Promise<a
importReportMode: "FULL",
importStrategy: "CREATE_AND_UPDATE",
mergeMode: "REPLACE",
atomicMode: "ALL",
atomicMode: "NONE",
};

try {
Expand Down

0 comments on commit d53b2a1

Please sign in to comment.