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 tasks for standalone and fix average progress validation error #463

Merged
merged 2 commits into from
Aug 15, 2022

Conversation

johnbaldwin
Copy link
Contributor

@johnbaldwin johnbaldwin commented Aug 12, 2022

https://appsembler.atlassian.net/browse/BLACK-2554

Fix average progress validation error

The problem was that the new pipeline workflow did not round enrollments' "progress percent" when averaging for CourseDailyMetrics average_progress fixed floating point field. This commit addresses this

Fix site handling for standalone mode

This commit makes figures.sites.get_sites aware of standalone mode. The purpose of this is to help make standalone and multisite modes transparent to the bulk of Figures code

There are also a couple of minor changes in figures.tasks

  1. populate_daily_metrics_next now includes the exception string to the error log entry
  2. run_figures_monthly_metrics is now standalone aware. Since only one site is run for standalone, there's no need to spawn the site level function as a subtask

After this PR, I'll do a PR bump for version to 0.4.3

This commit makes figures.sites.get_sites aware of standalone mode

The purpose of this is to help make standalone and multisite modes
transparent to the bulk of Figures code

There are also a couple of minor changes in figures.tasks

1. populate_daily_metrics_next now includes the exception string to the
   error log entry
2. run_figures_monthly_metrics is now standalone aware. Since only one
   site is run for standalone, there's no need to spawn the site level
   function as a subtask
The problem was that the new pipeline workflow did not round
enrollments' "progress percent" when averaging for CourseDailyMetrics
average_progress fixed floating point field. This commit addresses this
@johnbaldwin johnbaldwin changed the title John/fix tasks standalone John/fix tasks for standalone and fix average progress validation error Aug 12, 2022
@johnbaldwin johnbaldwin changed the title John/fix tasks for standalone and fix average progress validation error Fix tasks for standalone and fix average progress validation error Aug 12, 2022
@johnbaldwin
Copy link
Contributor Author

@OmarIthawi Thanks for approving!

@johnbaldwin johnbaldwin merged commit 6933f8d into main Aug 15, 2022
@johnbaldwin johnbaldwin deleted the john/fix-tasks-standalone branch August 15, 2022 14:31
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