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 simple api to drf compatible (4th api ), list_entrance_exam_instructor_tasks #35135

Merged
merged 6 commits into from
Aug 6, 2024

Conversation

awais786
Copy link
Contributor

@awais786 awais786 commented Jul 18, 2024

Issue

list_entrance_exam_instructor_tasks API

How to enable entrance exams for course.

Testing steps:

  1. go to this page on instructor page.
  2. Adjust a learner's entrance exam results ( pass student id ) and press reset attempts to zero.
  3. now at bottom press tasks results Show the status for the rescoring tasks that you submitted for this learner and entrance exam..
Screenshot 2024-07-31 at 4 17 52 PM

Postman api
http://local.edly.io:8000/courses/course-v1:edx+cs222+2311/instructor/api/list_entrance_exam_instructor_tasks
Body params
unique_student_identifier as key and student email as value

Expected results

{
    "tasks": [
        {
            "task_type": "reset_problem_attempts",
            "task_input": "{\"entrance_exam_url\": \"block-v1:edx+cs222+2311+type@chapter+block@9b2ef4ddf799482da311e9b10122ec8a\", \"student\": \"admin\"}",
            "task_id": "c71f3e80-1e31-4c29-99ad-a18c4ca42b62",
            "requester": "admin",
            "task_state": "SUCCESS",
            "created": "2024-07-31T11:03:53.649745+00:00",
            "duration_sec": 0,
            "status": "Incomplete",
            "task_message": "Unable to find entrance exam submission to be reset for student 'admin'"
        },
        {
            "task_type": "reset_problem_attempts",
            "task_input": "{\"entrance_exam_url\": \"block-v1:edx+cs222+2311+type@chapter+block@9b2ef4ddf799482da311e9b10122ec8a\", \"student\": \"admin\"}",
            "task_id": "1204f407-5863-4935-bba5-f288078dac43",
            "requester": "admin",
            "task_state": "SUCCESS",
            "created": "2024-07-31T10:55:30.726424+00:00",
            "duration_sec": 0,
            "status": "Incomplete",
            "task_message": "Unable to find entrance exam submission to be reset for student 'admin'"
        }
    ]
}

@awais786 awais786 force-pushed the list_entrance_exam_instructor_tasks branch from 968d5bc to 51f8201 Compare July 31, 2024 10:08
@awais786 awais786 changed the title feat: upgrading simple api to drf compatible. feat: upgrading simple api to drf compatible (4th api ) Jul 31, 2024
@awais786 awais786 closed this Jul 31, 2024
@awais786 awais786 reopened this Jul 31, 2024
@awais786 awais786 requested a review from feanil July 31, 2024 14:28
@awais786 awais786 marked this pull request as ready for review July 31, 2024 14:28
student = request.POST.get('unique_student_identifier', None)
if student is not None:
student = get_student_from_identifier(student)
authentication_classes = (
Copy link
Contributor

Choose a reason for hiding this comment

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

We should drop this line, we want to use the defaults here.

@awais786 awais786 merged commit 0a067ff into master Aug 6, 2024
49 checks passed
@awais786 awais786 deleted the list_entrance_exam_instructor_tasks branch August 6, 2024 10:25
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

1 similar comment
@edx-pipeline-bot
Copy link
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

@awais786 awais786 changed the title feat: upgrading simple api to drf compatible (4th api ) feat: upgrading simple api to drf compatible (4th api ), list_entrance_exam_instructor_tasks Aug 7, 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

Successfully merging this pull request may close these issues.

3 participants