Skip to content

Commit

Permalink
Merge branch 'main' of github.com:indexdata/ui-harvester-admin
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeTaylor committed Sep 22, 2023
2 parents 69f19a7 + 999fa5d commit acd1f9a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* Fix duplicate-step operation (previously failed with "Provided object contains unexpected additional property: virtualName"). Fixes UIHAADM-86.
* Duplication of records includes fields from full record, not just summary. Fixes UIHAADM-88.
* Changes made when editing a record in settings now immediately appear in the right pane. Fixes UIHAADM-85.
* `summarizeLine` now correctly includes "failed" counts. Fixes UIHAADM-91.

## [1.0.3](https://github.com/folio-org/ui-harvester-admin/tree/v1.0.3) (2023-05-26)

Expand Down
1 change: 0 additions & 1 deletion src/search/renderNumericFilterPair.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ function renderSingleNumericFilter(intl, filterStruct, updateQuery, field, bound
}
updateQuery({ filters: deparseFilters(fs2) });
}}
useInput
/>
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/util/message2stats.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function message2stats(message) {
const stats = {};
if (!message) return stats;
if (!message || message === 'No records harvested') return stats;

message.split(' ').forEach(row => {
const matchData = row.match(/(.*?)_.*:_+([^_]*)_+([^_]*)_+([^_]*)_+([^_]*)/);
Expand All @@ -10,7 +10,7 @@ function message2stats(message) {
stats[name.toLowerCase()] = { processed, loaded, deleted, failed };
} else {
// eslint-disable-next-line no-console
console.warn('message2stats: no match for row:', row);
if (row) console.warn('message2stats: no match for row:', row);
}
});

Expand All @@ -25,7 +25,7 @@ console.log(stats);
*/

function summarizeLine(statLine) {
return ['processed', 'loaded', 'deleted', ',failed']
return ['processed', 'loaded', 'deleted', 'failed']
.map(entry => statLine?.[entry] || '')
.join('/');
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/HarvestableLog/HarvestableLogPlainText.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const HarvestableLogPlainText = ({ record, log, refreshLog }) => {

  

<Download file="harvester-log.txt" content={log}>
<Download file="harvester-log.txt" content={log || ''}>
<Button
data-test-download-logs
id="clickable-download-logs"
Expand Down

0 comments on commit acd1f9a

Please sign in to comment.