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

feat!: upgrading mark_student_can_skip_entrance_exam api with DRF ( 21 ) #35460

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

awais786
Copy link
Contributor

@awais786 awais786 commented Sep 10, 2024

#35284

Postman testing

  1. send post request to this URL ( user your course id )
  2. pass the form-data as unique_student_identifier=admin

expected result
{ "message": "This student (admin) is already allowed to skip the entrance exam." }

end to end testing

  1. Go to this instructor->student-admin page
  2. Pass the username in Adjust a learner's entrance exam results input box
  3. press the Let Learner Skip Entrance Exam button.
Screenshot 2024-08-09 at 6 50 21 PM

@awais786 awais786 changed the title feat!: upgrading simple api with DRF. feat!: upgrading mark_student_can_skip_entrance_exam api with DRF ( 20th ) Sep 10, 2024
@awais786 awais786 changed the title feat!: upgrading mark_student_can_skip_entrance_exam api with DRF ( 20th ) feat!: upgrading mark_student_can_skip_entrance_exam api with DRF ( 21 ) Sep 10, 2024
@awais786 awais786 marked this pull request as ready for review September 11, 2024 11:06
@@ -3165,6 +3165,42 @@ def mark_student_can_skip_entrance_exam(request, course_id):
return JsonResponse(response_payload)


@method_decorator(cache_control(no_cache=True, no_store=True, must_revalidate=True), name='dispatch')
class MarkStudentCanSkipEntranceExam(APIView):
Copy link
Contributor

Choose a reason for hiding this comment

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

@awais786 should there be an old function that is deleted? I don't see the deletion here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, i missed that. Thanks for catching.

@awais786
Copy link
Contributor Author

@feanil please review.

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

Successfully merging this pull request may close these issues.

2 participants