Skip to content

Commit

Permalink
Austenem/CAT-1037 Sort homepage publications (#3686)
Browse files Browse the repository at this point in the history
* update query sort

* add changelog

* remove timestamp from query
  • Loading branch information
austenem authored Feb 11, 2025
1 parent ab4bbe0 commit 674b3b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-sort-homepage-publications.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Sort "Recent Publications" on home page by publication date.
12 changes: 2 additions & 10 deletions context/app/static/js/components/home/RecentEntities/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,13 @@ export const recentPublicationsQuery: SearchRequest = {
},
sort: [
{
last_modified_timestamp: {
'publication_date.keyword': {
order: 'desc',
},
},
],
size: 6,
_source: [
'uuid',
'title',
'contributors',
'publication_status',
'publication_venue',
'publication_date',
'last_modified_timestamp',
],
_source: ['uuid', 'title', 'contributors', 'publication_status', 'publication_venue', 'publication_date'],
};

// Fetches the most recent datasets with a visualization
Expand Down

0 comments on commit 674b3b8

Please sign in to comment.