Skip to content

feat: Drop support for the legacy Grading page.#38418

Merged
irfanuddinahmad merged 10 commits into
masterfrom
iahmad/DEPR-36108-grading
May 8, 2026
Merged

feat: Drop support for the legacy Grading page.#38418
irfanuddinahmad merged 10 commits into
masterfrom
iahmad/DEPR-36108-grading

Conversation

@irfanuddinahmad
Copy link
Copy Markdown
Contributor

@irfanuddinahmad irfanuddinahmad commented Apr 23, 2026

This pull request removes the legacy grading settings page and its supporting code from the codebase. The grading settings are now handled exclusively by the new grading page, and all references, templates, and JavaScript for the old implementation have been deleted.

Removal of legacy grading settings page:

  • Deleted the settings_graders.html template, which previously rendered the legacy grading settings UI.
  • Removed the settings_graders.js factory and its dependencies, eliminating the JavaScript logic for the old grading settings page.

Backend code cleanup:

  • Removed all references to the legacy grading page toggle and utility functions from course.py, including the use_new_grading_page toggle and get_course_grading import.
  • Updated the grading_handler view to always redirect to the new grading page, removing the conditional logic and legacy rendering path.

Testing:
302 redirect on test page

image

🤖 Generated with Claude Code

@irfanuddinahmad irfanuddinahmad force-pushed the iahmad/DEPR-36108-grading branch from 4d6e343 to a560b9c Compare April 23, 2026 07:44
@irfanuddinahmad irfanuddinahmad changed the title feat!: Drop support for the legacy Grading page. feat: Drop support for the legacy Grading page. Apr 23, 2026
@irfanuddinahmad irfanuddinahmad marked this pull request as draft April 23, 2026 08:40
@irfanuddinahmad irfanuddinahmad force-pushed the iahmad/DEPR-36108-grading branch 6 times, most recently from 502aede to b729f4d Compare April 28, 2026 11:19
@irfanuddinahmad irfanuddinahmad linked an issue Apr 28, 2026 that may be closed by this pull request
52 tasks
@irfanuddinahmad irfanuddinahmad added the create-sandbox open-craft-grove should create a sandbox environment from this PR label Apr 28, 2026
@irfanuddinahmad irfanuddinahmad force-pushed the iahmad/DEPR-36108-grading branch 4 times, most recently from a4d684b to 4e2c6bf Compare May 4, 2026 00:41
@irfanuddinahmad irfanuddinahmad marked this pull request as ready for review May 4, 2026 10:59
@irfanuddinahmad irfanuddinahmad force-pushed the iahmad/DEPR-36108-grading branch 4 times, most recently from 3313068 to 6701e88 Compare May 6, 2026 16:20
@irfanuddinahmad irfanuddinahmad force-pushed the iahmad/DEPR-36108-grading branch from 6701e88 to a97f9a2 Compare May 7, 2026 16:38
The legacy Grading page in Studio has been replaced with a new view in
the Authoring MFE. This change removes the now unused JS/HTML/Python
related to the old page.

This work is part of #36108

BREAKING CHANGE: The 'legacy_studio.grading' waffle flag will no longer
be respected. The system will behave as if the flag is set to false
permanently.
@irfanuddinahmad irfanuddinahmad force-pushed the iahmad/DEPR-36108-grading branch from a97f9a2 to 26f3d14 Compare May 8, 2026 00:17
irfanuddinahmad and others added 2 commits May 8, 2026 10:50
… dedicated redirect test

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…lper, inline explicit redirect assertion

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@irfanuddinahmad irfanuddinahmad merged commit b8adc05 into master May 8, 2026
47 checks passed
@irfanuddinahmad irfanuddinahmad deleted the iahmad/DEPR-36108-grading branch May 8, 2026 07:41
% for template_name in ["course_grade_policy", "course_grade_cutoff"]:
<script type="text/template" id="${template_name}-tpl">
<%static:include path="js/${template_name}.underscore" />
</script>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@irfanuddinahmad there are underscore templates related to this view that should also be cleaned up if they're not used by other pages. Can you do that in a followup PR in this case and for any other PRs that have landed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@irfanuddinahmad there are underscore templates related to this view that should also be cleaned up if they're not used by other pages. Can you do that in a followup PR in this case and for any other PRs that have landed.

#38629

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

create-sandbox open-craft-grove should create a sandbox environment from this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DEPR]: Various legacy Studio pages with direct MFE replacements

3 participants