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

Feat: Statistics - support pupil_screenings in knowsCoronaSchoolFrom #1151

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

realmayus
Copy link
Contributor

@realmayus realmayus temporarily deployed to backend-feat-pupil-regi-zzg4bt October 10, 2024 16:48 Inactive
date_part('year', "createdAt"::date) AS year,
date_part('month', "createdAt"::date) AS month,
"knowsCoronaSchoolFrom" AS group
FROM "pupil_screening"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As there are N screenings for each pupil, doesnt this skew the statistics towards more active users?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! How should we handle multiple screenings @FForstbach ? Should we only consider the most recent screening that has a knowsCoronaSchoolFrom entry?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so i would say:

  1. only count once
  2. save the first real answer (dont know, or empty does not count)
  3. dont save subsequent entries (since we want to know how they first heard about coronaschool)

does that make sense @realmayus ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants