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

Deleting a pathogen test without edit right over the associated case does not update the case classification

Open adinaflorea9 opened this issue 1 year ago • 0 comments

Bug Description

When a user that does not have edit rights over a case deletes a pathogen test that was used to automatically classify the case, the case's classification is not updated back.

Reproduction Steps

  1. With a regular Admin+NatUser create a case and add to it a sample with positive pathogen test result (Covid-19);
  2. Once the pathogen test and the sample are saved, the case's classification is automatically updated to 'Confirmed case with unknown symptoms' or 'Confirmed case' (if the symptoms are also present);
  3. Log in with a user that has the following rights over cases and samples: image image
  4. Open the sample and delete the pathogen test; or delete the whole sample (if the right to 'Delete existing samples' is also given to the user).

Expected Behavior

Once the pathogen test is deleted, the Case classification should be automatically updated to the value that can be met by the current case classification criteria. (solution should be similar to #11980).

Affected Area(s)

Web app

SORMAS Version

1.84.0

Android version/Browser

Chrome

User Role(s)

Admin+NatUser; Configured user with the rights from the steps to reproduce

Server URL

local machine

Additional Information

No response

adinaflorea9 avatar May 24 '23 10:05 adinaflorea9