SORMAS-Project icon indicating copy to clipboard operation
SORMAS-Project copied to clipboard

'Final laboratory result' for Event Participants is not updated when a new sample is added

Open adinaflorea9 opened this issue 3 years ago • 0 comments

Bug Description

On the 'Event Participants' page of an event, in the column 'Final laboratory result' the value displayed is not updated consistently, based on the sample with the latest 'Date sample was collected'.

Steps to Reproduce

  1. Navigate to the 'Events' directory and open an event or create one (Covid-19);
  2. Add a new event participant;
  3. Add to the event participant from step 2 a Covid-19 sample with a 'positive' final laboratory result and a pathogen test with a 'positive' test result ('Date sample was collected' = 1st of June); -> on the 'Event Participants' tab of the event, the values from the 'Final laboratory result' and 'Date sample was collected' have been updated according to the sample from step 3;
  4. Add a second sample to the event participant from step 2 ('Date sample was collected' = 15th of June; 'Final laboratory result' = negative; 'Test result' = Negative);

Actual Behavior

The 'Final laboratory result' value is not updated consistently based on the latest sample (i.e. the sample with the latest 'Date sample was collected') added for the respective event participant.

Expected Behavior

Both the 'Final laboratory result' and the 'Date sample was collected' values should be updated based on the latest sample (i.e. the sample with the latest 'Date sample was collected') added for the respective event participant.

Screenshots

GIF of the steps to reproduce: Event Participant Result

System Details

  • Device: Windows 10
  • SORMAS version: 1.75.0-SNAPSHOT(c5c40bf)
  • Android version/Browser: Chrome
  • Server URL: local machine
  • User Role: Admin+NatUser

Additional Information

adinaflorea9 avatar Jul 27 '22 10:07 adinaflorea9