-
Notifications
You must be signed in to change notification settings - Fork 21
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: mark optional completions #187
base: master
Are you sure you want to change the base?
Conversation
a18d041
to
582c238
Compare
@Agrendalath codecov actually improved in most of files, except one where it was lowered due to an increase of lines it semes: https://app.codecov.io/gh/open-craft/openedx-completion-aggregator/pull/187 |
582c238
to
d704cf4
Compare
@DanielVZ96, just one initial question: what are this change's performance implications? The crucial aspect of the completion aggregator is the ability to process thousands of completions per second. Can we make a quick performance comparison - before and after this change? Side note:
You can add the following to # Restart both containers
edx-restart: lms-restart studio-restart
# This allows you to install an XBlock in both LMS and Studio using
# make install-xblock XBLOCK=problem-builder
install-xblock:
for c in lms studio ; do \
docker exec -it edx.$(COMPOSE_PROJECT_NAME).$$c bash -c \
'cd /edx/src/$(XBLOCK) && /edx/app/edxapp/venvs/edxapp/bin/pip install -e .' ; \
done
make edx-restart |
will test performance tomorrow |
Here's some timings: So in both:
Based on this I can't say there's a clear performance penalty. Also as a side-note: with my current courses it's having to generate 233 completion aggregations. |
Description: Adds support for optional completions by marking completions as optional, and adding them to the mean accordingly.
JIRA: https://tasks.opencraft.com/browse/BB-8586
Dependencies: TODO: add edx-platform PR
Installation instructions: List any non-trivial installation
instructions.
Testing instructions:
1.Install the app from this branch
'source /edx/app/edxapp/edxapp_env && pip install -e /edx/src/openedx-completion-aggregator && while true; do python /edx/app/edxapp/edx-platform/manage.py lms runserver 0.0.0.0:18000 --settings devstack_docker; sleep 2; done'
completion_aggregator
app to theAdvanced Module List
inside Advanced Settings in CMS./manage.py lms reaggregate_course
./manage.py lms run_aggregator_service
Reviewers:
Merge checklist:
Post merge:
finished.
Author concerns: Ideally optional completions should be included in an additional field, but due to time constraints I wasn't able to implement that here.
Private-ref: BB-8586