Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleted cases should not be considered in the dashboard epi curve #6261

Closed
marko-arn opened this issue Aug 3, 2021 · 12 comments · Fixed by #6279
Closed

Deleted cases should not be considered in the dashboard epi curve #6261

marko-arn opened this issue Aug 3, 2021 · 12 comments · Fixed by #6279
Assignees
Labels
backend Affects the web backend bug An error or misbehavior of an existing feature (ticket type) dashboard major A functional requirement is incorrect or incomplete, ... (Severity for bugs/defects) qa-verified Issue has been tested and verified by QA

Comments

@marko-arn
Copy link

marko-arn commented Aug 3, 2021

Bug Description

We got the update to 1.61.2 this night.

On the dashboard the Epidemiological Curve is not calculated correctly. In our office it shows 18 cases "Not yet classified", while we have only 6 of them in total.

Steps to Reproduce

  1. Enter a case of any classification
  2. Check for it being displayed on the epi curve on the surveillance dashboard
  3. Delete that same case
  4. Check the epi curve again
  5. Check the database (via export) for deleted cases if necessary

Expected Behavior

It should only show the right amount of these kind of cases.

Screenshots

grafik

grafik

In addition, I extended the time period in the curve to this year and downloaded an Excel spreadsheet via the burger menu. This shows 89 cases as "Not yet Classified":

grafik

System Details

  • Device:
  • SORMAS version:
  • Android version/Browser:
  • Server URL:
  • User Role:

Additional Information

@marko-arn marko-arn added the bug An error or misbehavior of an existing feature (ticket type) label Aug 3, 2021
@marko-arn
Copy link
Author

I also exported all cases and double-checked if there are cases which are not shown in the case-directory correctly, but we stll have only 6 not yet classified cases:

image

@kwa20
Copy link

kwa20 commented Aug 3, 2021

@Marko-ilmkreis Does changing the case reference date have any effect on the display of the epi curve? Are the other classifications correct or also differing?

@marko-arn
Copy link
Author

@kwa20 For the displayed last weeks in the dashboard the other classifications are correct.
The change of the case reference date brings only other miss-calculation. E.g. if I set on the symptom-onset-date it shows in the dashboard:
grafik

It shows 3 not classified cases:

grafik

While the case directory shows zero:

grafik

@kwa20
Copy link

kwa20 commented Aug 3, 2021

@Marko-ilmkreis I tested a bit further and it seems like the additional entries shown are deleted cases.

@MateStrysewske Is there a way for you to verify this?

Steps to reproduce:

  1. Enter a case of any classification
  2. Check for it being displayed on the epi curve on the surveillance dashboard
  3. Delete that same case
  4. Check the epi curve again
  5. Check the database (via export) for deleted cases if necessary

@marko-arn
Copy link
Author

@kwa20 I can confirm that these are the deleted cases which are shown wrongly.

@MateStrysewske MateStrysewske changed the title Wrong calculation of 'Not yet classified' at dashboard Deleted cases should not be considered in the dashboard epi curve Aug 3, 2021
@MateStrysewske MateStrysewske added dashboard backend Affects the web backend labels Aug 3, 2021
@MateStrysewske MateStrysewske added this to the Sprint 106 - 1.63.0 milestone Aug 3, 2021
@Candice-Louw
Copy link
Contributor

Similar behaviour for duplicate detection (#6267) where deleted entities are being considered.

@DavidBaldsiefen
Copy link
Contributor

@kwa20 @MateStrysewske

Should the dashboard also exclude archived cases in the epicurve?

@kwa20
Copy link

kwa20 commented Aug 4, 2021

@DavidBaldsiefen archived cases should not be excluded

@bernardsilenou
Copy link

@MateStrysewske @kwa20 @DavidBaldsiefen
Since this kind of request happens repeatedly, would it not be nice to add this instruction to the document on how to contribute to SORMAS, so that all developers can consider in their coding, even if not specified in the story?
For all computation methods, always:

  • check and drop deleted entities and
  • Include archived entities

@DavidBaldsiefen
Copy link
Contributor

Since this kind of request happens repeatedly, would it not be nice to add this instruction to the document on how to contribute to SORMAS, so that all developers can consider in their coding, even if not specified in the story?

Haha, I just told Mate the same 1 Minute ago :D So yes I agree

@kwa20
Copy link

kwa20 commented Aug 4, 2021

@DavidBaldsiefen Apparantly, deleted contacts are also included on the contact dashboard. The support still tries to verify the scope of the affected variables. Should we do this with this issue or should I open a separate one for the contact dashboard?

@DavidBaldsiefen
Copy link
Contributor

@kwa20 I have seen that several counters of the dashboard were affected (contacts, cases, events, ...). I have fixed (hopefully) all of them in this issue, so you do not need to create a new one

@AndyBakcsy-she AndyBakcsy-she added the qa-verified Issue has been tested and verified by QA label Aug 5, 2021
@StefanKock StefanKock added the major A functional requirement is incorrect or incomplete, ... (Severity for bugs/defects) label Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Affects the web backend bug An error or misbehavior of an existing feature (ticket type) dashboard major A functional requirement is incorrect or incomplete, ... (Severity for bugs/defects) qa-verified Issue has been tested and verified by QA
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants