Skip to content

Commit

Permalink
Full display of a job now includes start time in header
Browse files Browse the repository at this point in the history
Instead of current time, as was incorrectly shown before.

Fixes UIHAADM-103.
  • Loading branch information
MikeTaylor committed Jan 12, 2024
1 parent 9bef6c1 commit 2c9787d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Paginate list of jobs. Fixes UIHAADM-95.
* Improve DatePicker setup. Fixes UIHAADM-69.
* Display `<Datepicker>` in full view by using `usePortal`. Fixes UIHAADM-98.
* Full display of a job now includes start time in header instead of current time. Fixes UIHAADM-103.

## [2.0.0](https://github.com/folio-org/ui-harvester-admin/tree/v2.0.0) (2023-10-13)

Expand Down
2 changes: 1 addition & 1 deletion src/util/message2stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function message2stats(message) {
const [_matched, name, processed, loaded, deleted, failed] = matchData;
stats[name.toLowerCase()] = { processed, loaded, deleted, failed };
} else {
// eslint-disable-next-line no-console
// eslint-disable-next-line no-console, no-lonely-if
if (row) console.warn('message2stats: no match for row:', row);
}
});
Expand Down
5 changes: 3 additions & 2 deletions src/views/HarvestableLog/HarvestableLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ const HarvestableLog = (props) => {
const paneTitle = (
<>
{record.name}
({formatDateTime(record.lastHarvestFinished)})
&nbsp;
({formatDateTime(record.started)})
{status &&
<>
{' '}&mdash;{' '}
Expand Down Expand Up @@ -79,7 +80,7 @@ HarvestableLog.propTypes = {
data: PropTypes.shape({
record: PropTypes.shape({
name: PropTypes.string.isRequired,
lastHarvestFinished: PropTypes.string,
started: PropTypes.string,
currentStatus: PropTypes.string, // .isRequired for harvestable, not for previous-job
}),
plainTextLog: PropTypes.string,
Expand Down

0 comments on commit 2c9787d

Please sign in to comment.