Skip to content

Commit

Permalink
Now sorting the results of a search by StudyDate
Browse files Browse the repository at this point in the history
  • Loading branch information
amazy committed Jul 11, 2024
1 parent 0765d5e commit 8db014f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion WebApplication/src/store/modules/studies.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ const actions = {
if (!getters.isFilterEmpty) {
try {
commit('setIsSearching', { isSearching: true});
const studies = (await api.findStudies(getters.filterQuery, state.labelsFilter, "All"));
let studies = (await api.findStudies(getters.filterQuery, state.labelsFilter, "All"));
studies.sort((a, b) => (a.MainDicomTags.StudyDate ?? "") < (b.MainDicomTags.StudyDate ?? "") ? 1 : -1)
let studiesIds = studies.map(s => s['ID']);
commit('setStudiesIds', { studiesIds: studiesIds });
commit('setStudies', { studies: studies });
Expand Down
5 changes: 3 additions & 2 deletions release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ Pending changes in the mainline
===============================

Changes:
- Authorization tokens can be provided in the as query args in the URL e.g: http://localhost:8042/ui/app/?token=my-token
- Authorization tokens can be provided in the URL as query args e.g: http://localhost:8042/ui/app/?token=my-token
or /ui/app/filtered-studies?StudyDescription=PET&token=my-token and these tokens will be included as HTTP headers
in all requests. Note that the query args must be positioned before the '#' in the URL.
in all requests issued by OE2. Note that the query args must be positioned before the '#' in the URL.
List of valid tokens are "token", "auth-token", "authorization".
- Now sorting the results of a search by StudyDate.


Fixes:
Expand Down

0 comments on commit 8db014f

Please sign in to comment.