Repository navigation
refactor: remove enhanced_staff_grader waffle flag and demo code - #2483
SujalRatnaTamrakar wants to merge 2 commits into
Conversation
|
Thanks for the pull request, @SujalRatnaTamrakar! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Submit a signed contributor agreement (CLA)
If you've signed an agreement in the past, you may need to re-sign. Once you've signed the CLA, please allow 1 business day for it to be processed. 🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. 🔘 Update the status of your PRYour PR is currently marked as a draft. After completing the steps above, update its status by clicking "Ready for Review", or removing "WIP" from the title, as appropriate. Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
|
Hey @SujalRatnaTamrakar, thank you for this contribution! The next step will be for you to submit a signed CLA. See this comment for details. |
TL;DR
Removes the
openresponseassessment.enhanced_staff_graderwaffle flag and the "Demo the new Grading Experience" code path it gated, making the enhanced staff grader the default staff grading experience, per the DEPR in #2250. The legacy staff grader remains available for team assignments, which the enhanced grader does not support.JIRA
None. This implements the removal proposed in GitHub issue #2250: #2250
What changed?
openassessment/xblock/config_mixin.py: removed theENHANCED_STAFF_GRADERconstant, itsFEATURE_TOGGLES_BY_FLAG_NAMEregistry entry, and theis_enhanced_staff_grader_enabledproperty.openassessment/xblock/staff_area_mixin.py: removed the flag from the staff-area context (resolving the AU-617 TODO); theenhanced_staff_grader_urlcontext value is unchanged.openassessment/xblock/openassessmentblock.py: no longer passesENHANCED_STAFF_GRADERin the listing view's JS context.templates/legacy/staff_area/oa_staff_area.html: the enhanced "Grade Available Responses" link now renders whenever the grading URL is set and the assignment is not a team assignment; the demo link block is deleted.xblock/static/js/src/lms/oa_course_items_listing.js: the course-items link label is always "View and grade responses";StaffCell.shouldShowLinknow depends only on the team-assignment check.test_config_mixin.py(the flag toggle test removed),test_staff_area.py,test_openassessment.py(the listing-view test now assertsENHANCED_STAFF_GRADERis absent from the JS context), the JS specoa_listing.js, and the JS fixturestemplates.json.Testing Instructions
Verified locally (Python 3.12 virtualenv, dependencies installed from the repo's pyproject test group, tests run with the repo's pytest.ini):
test_config_mixin.py108;test_staff_area.pyandtest_openassessment.py133).enhanced_staff_grader/ENHANCED_STAFF_GRADERin source, templates, JS, specs, or fixtures. The compileddist/bundle also contains the flag but is a build artifact and was not hand-edited.node --check, and the JS spec was updated to cover the single surviving behavior.Developer Checklist
Reviewer Checklist
Collectively, these should be completed by reviewers of this PR:
AI assistance disclosure
This change was prepared with AI assistance: an AI coding assistant helped with the reference sweep, the edits, and the test updates. All changes were reviewed and verified by me, including the before/after test comparisons reported above.
Fixes #2250