fritz-marshal/fritz

Changing candidate sort order does not work when loading from a scanning profile

dperley opened this issue · 0 comments

Describe the bug
On the Candidates page, if you have a Scanning Profile set up, the sort order setting from that profile remains in place even if you attempt to change it in the Menu afterwards.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://fritz.science/candidates
  2. Load a pre-set scanning profile under "Manage Scanning Profiles" (or just use your default scanning profile)
  3. Change the sort order to something else. In my case, I might be going back and forth between scanning "rcf" and "RCFDeep" and so I will change the sort order from rcf::rcf age to RCFDeep::RCFDeep age or vice versa (to be loading the autoannotation from the correct filter.) But I have also replicated the error using other sort orders.
  4. View the output. The sort order will usually not be as expected. I think it remains fixed to the order from the scanning profile, even though you have changed it in the menu.

Expected behavior
The order of the displayed candidates should match the options displayed in the menu as these should override what was set in the scanning profile.

Screenshots
I acquired a recording showing an attempt to change the sort order from the Scanning Profile default rcf age to RCFDeep age. It can be seen that the output is not in this order as the (RCFDeep) age jumps backwards a few items down the list. (The video file was too big to upload here, but I'll find a way to share it elsewhere.)

Platform information:

  • Fritz version: v0.9.dev0+git20220512.2af94b4d+fritz.931c4ee.
  • Interface
    • I am using the API
    • I am browsing on a desktop
    • I am browsing on a phone
    • I am browsing on a tablet

Additional context
Changes to the Dates and Program Selection options are respected correctly. Sorting via the sort button after the fact also works correctly, and when loading a new scanning profile (instead of editing the sort options) the sorting also works correctly.