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

upgrade get_grading_config api with DRF #35061

Closed
Tracked by #35057
awais786 opened this issue Jul 2, 2024 · 0 comments
Closed
Tracked by #35057

upgrade get_grading_config api with DRF #35061

awais786 opened this issue Jul 2, 2024 · 0 comments
Assignees

Comments

@awais786
Copy link
Contributor

awais786 commented Jul 2, 2024

existing API code

Things to implement.

  1. Use DRF to upgrade this API.
  2. Use the standard edx-platform authentication.
  3. Maintain existing behaviour and status codes.

verify with postman

1: Use this URL with post request. ( pass your valid course id )

expected result
{ "course_id": "course-v1:edx+cs222+2311", "grading_config_summary": "<pre>-----------------------------------------------------------------------------\nCourse grader:\n&lt;class &#39;xmodule.graders.WeightedSubsectionsGrader&#39;&gt;\n\nGraded sections:\n subgrader=&lt;class &#39;xmodule.graders.AssignmentFormatGrader&#39;&gt;, type=Homework, category=Homework, weight=0.15\n subgrader=&lt;class &#39;xmodule.graders.AssignmentFormatGrader&#39;&gt;, type=Lab, category=Lab, weight=0.15\n subgrader=&lt;class &#39;xmodule.graders.AssignmentFormatGrader&#39;&gt;, type=Midterm Exam, category=Midterm Exam, weight=0.3\n subgrader=&lt;class &#39;xmodule.graders.AssignmentFormatGrader&#39;&gt;, type=Final Exam, category=Final Exam, weight=0.4\n subgrader=&lt;class &#39;xmodule.graders.AssignmentFormatGrader&#39;&gt;, type=Entrance Exam, category=Entrance Exam, weight=0.0\n-----------------------------------------------------------------------------\nListing grading context for course course-v1:edx+cs222+2311\ngraded sections:\n[&#39;Entrance Exam&#39;]\n--&gt; Section Entrance Exam:\n Entrance Exam - Subsection (format=Entrance Exam, Assignment=Entrance 01)\nall graded blocks:\nlength=1\n</pre>" }

end to end testing

  1. Go to instructor page and data download tab. Using tutor use this link ( your valid course id )
  2. Press Grading Configuration button.
Screenshot 2024-08-09 at 2 13 58 PM
@awais786 awais786 changed the title get_grading_config to DRF Upgrade get_grading_config api with DRF Aug 9, 2024
@awais786 awais786 changed the title Upgrade get_grading_config api with DRF upgrade get_grading_config api with DRF Aug 23, 2024
@awais786 awais786 self-assigned this Sep 10, 2024
@awais786 awais786 closed this as completed Oct 1, 2024
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

No branches or pull requests

1 participant