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

Fix and amend statistics #959

Merged
merged 3 commits into from
Jan 29, 2024
Merged

Fix and amend statistics #959

merged 3 commits into from
Jan 29, 2024

Conversation

realmayus
Copy link
Contributor

  • count registrations of helpers/pupils (instead of just tutors/tutees)
  • consider both screenings and instructor_screenings in helperScreenings endpoint
  • nowFirstMatchesStudent now considers all students that had their first match in a certain month; not just students that only had a single match which happens to be in that month
  • nowDissolvedMatchesAfter/BeforeThreeMonths now considers dissolvedAt instead of updatedAt
  • add category controls to offeredLectures and numSubcourses
  • consider start date of first lecture for numSubcourses, only consider courses that are allowed
  • consider start date of lectures instead of creation date in offeredLectures, only consider group type appointments
  • split rateSuccessfulCoCs into tutor and instructor endpoints
  • rate of successful CoCs is now calculated differently: out of all tutors that must have turned in their CoC (max 8 weeks after screening) within the selected timeframe, how many actually did it?
  • compute trends for dissolved matches (cannot do that in retool as selected timeframe may not align with a specific month)
  • matchesByDuration now counts the matches that were created after statistics.from and dissolved before statistics.to
  • add helpersWithoutScreening metric for determining number of helpers that were invited for a screening
  • add medianTimeToMatch to provide a better estimate; do this for both students and pupils (used in retool and perhaps in match request form in user app later down the road)

- count registrations of helpers/pupils (instead of just tutors/tutees)
- consider both screenings and instructor_screenings in `helperScreenings` endpoint
- `nowFirstMatchesStudent` now considers all students that had their first match in a certain month; not just students that only have a single match
- `nowDissolvedMatchesAfter/BeforeThreeMonths` now considers dissolvedAt instead of updatedAt
- add category controls to `offeredLectures` and `numSubcourses`
- consider start date of first lecture for `numSubcourses`, only consider courses that are allowed
- consider start date of lectures instead of creation date in `offeredLectures`, only consider group type appointments
- split `rateSuccessfulCoCs` into tutor and instructor endpoints
- rate of successful CoCs is now calculated differently: out of all tutors that must have turned in their CoC (max 8 weeks after screening) within the selected timeframe, how many actually did it?
- compute trends for dissolved matches (cannot do that in retool as selected timeframe may not align with a specific month)
- `matchesByDuration` now counts the matches that were created after `statistics.from` and dissolved after `statistics.to`
- add `helpersWithoutScreening` metric for determining number of helpers that were invited for a screening
- add `medianTimeToMatch` to provide a better estimate; do this for both students and pupils (used in retool and perhaps in match request form in user app later down the road)
@realmayus realmayus temporarily deployed to backend-feat-statistics-dhux9r January 21, 2024 20:15 Inactive
…as data is nonsense, remove rateTutorFirstMatchStillActiveAfterOneMonth as it's no longer needed
@realmayus realmayus temporarily deployed to backend-feat-statistics-dhux9r January 22, 2024 11:47 Inactive
@realmayus realmayus merged commit 6df2e47 into master Jan 29, 2024
2 checks passed
@realmayus realmayus deleted the feat-statistics branch January 29, 2024 10:48
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.

2 participants