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

Inconsistencies between the Surveillance tab and the Contacts tab on the Dashboard for disabled diseases

Open roxanamlendea opened this issue 2 years ago • 0 comments

Problem Description

When a user is limited by a disease that has been disabled from the DB accesses the Dashboard, there are some inconsistencies between the Surveillance tab and the Contacts tab. On the Surveillance tab, the numbers for Cases and Events are 0 for the disabled disease, but the numbers do appear in the Epidemiological Curve. On the Contacts tab, the numbers for Contacts are displayed.

Steps to reproduce the problem:

  1. From the DB, in the 'diseaseconfiguration' table, set 'primarydisease' = true for the disease 'Malaria';
  2. Restart the server;
  3. In the vaadin-app, create a new user (with user roles of admin + national user) and set for it the 'Limited disease' = Malaria;
  4. Create some entities with the disease 'Malaria' (cases, contacts, events);
  5. Navigate to the DB and set the 'primarydisease' = false;
  6. Save the changes and restart the server again;
  7. Log into the vaadin-app with the user created at step 3;
  8. Navigate to the Dashboard and inspect the numbers on the Surveillance tab and the Contacts tab.

image image

Proposed Change

As discussed with @MartinWahnschaffe , there are 2 options and it needs to be discussed which of the following should be chosen:

  • option no. 1: show 0 for all numbers (Cases, Events, Contacts) on the Dashboard that are related to a disabled disease; or
  • option no. 2: when the user still has access to the Cases / Contacts / Events related to a disabled disease, he should be able to see the actual numbers on the Dashboard;

Acceptance Criteria

Implementation Details

Additional Information

Was discovered when testing ticket #10086

roxanamlendea avatar Sep 19 '22 12:09 roxanamlendea