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

[Data rearchitecture] Implement ContinuedCourseActivityAlert without revisions #6132

Conversation

gabina
Copy link
Member

@gabina gabina commented Jan 17, 2025

What this PR does

This PR re-implements the significant_activity_after_course_end? method in ContinuedCourseActivityAlertManager class in order to make the ContinuedCourseActivityAlert work without revisions.

The previous criteria to determine if we should send a ContinuedCourseActivityAlert was based on data table revisions in the mainspace after the course end. If those revisions exceed 200 characters, then we send the alert.

This new implementation does not use revisions on the table, but hits the API to determine whether to send the alert. By hitting the API directly, we get revisions in the mainspace for the given users after the course end. Now, we use the number of revisions as the metric instead of characters added, as calculating character counts via the API isn't so straightforward.

Open questions and concerns

I set MINIMUM_REVISIONS_AFTER_COURSE_END to 20 but we may want to change that number.

…ng raw revisions from data table, now we hit the API to get recent revisions.
…ng raw revisions from data table, now we hit the API to get recent revisions.
@gabina gabina marked this pull request as ready for review January 17, 2025 01:56
@gabina gabina merged commit 14ea16d into WikiEducationFoundation:data-rearchitecture-for-dashboard Jan 17, 2025
1 check failed
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.

1 participant