-
Notifications
You must be signed in to change notification settings - Fork 4.1k
feat: export ora2 summary to DRF #36555
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
base: master
Are you sure you want to change the base?
feat: export ora2 summary to DRF #36555
Conversation
@awais786 PR is ready for review. |
report_type = _('ORA summary') | ||
task_api.submit_export_ora2_summary(request, course_key) | ||
success_status = SUCCESS_MESSAGE_TEMPLATE.format(report_type=report_type) | ||
authentication_classes = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove this. It will use default DRF authentication classes.
cb4e2cd
to
a1edf7a
Compare
a1edf7a
to
1c4ba4f
Compare
@feanil please review. |
@awais786 you've done enough of these DRF changes now that if something looks good to you, feel free to approve and merge it. I don't need to serve as a blocking review if you think it's good to go unless you have specific concerns. I don't need to review everything, just tag me on ones that you think might be risky or where you have less confidence. |
@feanil got it, I will merge this and others after review. |
#35353 issue for tracking
Description
Converts the function-based export_ora2_summary view to a DRF class-based view
This change maintains all existing functionality while providing a more standardized API structure.
Key changes:
To Test the api, try POST request on this url
expected response:
status: "The ORA summary report is being created. To view the status of the report, see Pending Tasks below."
a celery task will be triggered and a csv file will be generated.
verify via instructor dashbaord
go to this page
click on the button "Generate ORA Summart Report"