Skip to content

Commit

Permalink
Correctly sort list if a single harvester's jobs
Browse files Browse the repository at this point in the history
The list of a single harvester's recent jobs is sorted in reverse
chonological order, like the list of all jobs.

Fixes UIHAADM-133.
  • Loading branch information
MikeTaylor committed Sep 6, 2024
1 parent 8fac61e commit 538e318
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Close button on last-logs page returns to harvestables list or detail page depending on where it came from. Fixes UIHAADM-129.
* The "Extra configuration" textarea in the Storage form is now mandatory. Fixes UIHAADM-127.
* Update jobs column heading and jobs detail view text. Fixes UIHAADM-131.
* The list of a single harvester's recent jobs is sorted in reverse chonological order, like the list of all jobs. Fixes UIHAADM-133.

## [2.1.0](https://github.com/folio-org/ui-harvester-admin/tree/v2.1.0) (2024-02-28)

Expand Down
2 changes: 1 addition & 1 deletion src/routes/HarvestableJobsRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ HarvestableJobsRoute.manifest = Object.freeze({
query: (queryParams, pathComponents, rv, logger) => {
const extraFilter = `harvestableId.${pathComponents.recId}`;
const allFilters = rv.query.filters ? `${rv.query.filters},${extraFilter}` : extraFilter;
rv.query = { ...rv.query, filters: allFilters };
rv.query = { sort: '-started', ...rv.query, filters: allFilters };
const res = queryFunction('name="%{query.query}" or message="%{query.query}"',
queryParams, pathComponents, rv, logger);
if (res === undefined) return undefined;
Expand Down

0 comments on commit 538e318

Please sign in to comment.