SE-1069 Module Engagement: handle case when no elasticsearch host is configured #751
SE-1069 Module Engagement: handle case when no elasticsearch host is configured #751
Conversation
Thanks for the pull request, @swalladge! I've created OSPR-3784 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will still be done via the GitHub pull request interface. As a reminder, our process documentation is here. |
Codecov Report
@@ Coverage Diff @@
## master #751 +/- ##
==========================================
- Coverage 74.57% 74.56% -0.02%
==========================================
Files 207 207
Lines 23404 23413 +9
==========================================
+ Hits 17453 17457 +4
- Misses 5951 5956 +5
Continue to review full report at Codecov.
|
@swalladge Thank you for your contribution. Please let me know once it is ready for our review. |
and ensures that the ModuleEngagementWorkflowTask.host parameter matches the base class parameter type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@swalladge 👍
In the process of getting the acceptance tests working, I discovered a bug in original commit from the client's branch, so we'll need to make sure this fix makes it there too.
- I tested this by verifying that this code runs as expected on our client's instance, which does not have
[elasticsearch] host
configured.
Also ran the updated acceptance tests from this branch:- Set up the Analytics Pipeline docker devstack
- Check out this branch and install it:
make analytics-pipeline-shell # From devstack/Makefile#L300 sudo chown -R hadoop:hadoop /edx/app/analytics_pipeline source /edx/app/hadoop/.bashrc make install
- From the analytics-pipeline-shell, ran:
make develop-local make docker-test-acceptance-local ONLY_TESTS=edx.analytics.tasks.tests.acceptance.test_module_engagement
- I checked the code against the client's branch ff19850
-
I checked for accessibility issuesN/A - Includes documentation:
ModuleEngagementWorkflowTask.host
field description provided, tasks are automatically documented from parameters.
This is ready for edX review, @natabene Uncertain what to do about the unit test coverage drop -- the only way I can think to unit test this basically mimics the code change itself. But we've added an acceptance test which verifies the config change is ok, so hopefully that is enough? |
@edx/analytics Please review this when you have a chance. |
@swalladge 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
I think the unit test coverage drop is small enough to not be worth worrying about. |
Thank you @brianhw ! |
Runs just ModuleEngagementRosterPartitionTask instead of the full ModuleEngagementRosterIndexTask if no elasticsearch host is configured.
JIRA tickets: OSPR-3784
Discussions: open-craft#10
Dependencies: None
Merge deadline: None
Testing instructions:
Author notes and concerns:
Reviewers
Settings