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

Graded download issues #77

Closed
CodeWithEmad opened this issue Jul 10, 2024 · 3 comments
Closed

Graded download issues #77

CodeWithEmad opened this issue Jul 10, 2024 · 3 comments

Comments

@CodeWithEmad
Copy link

CodeWithEmad commented Jul 10, 2024

Hi. I noticed a couple of issues related to GRADES_DOWNLOAD.
There's a section in the instructor tab of each course, where instructors can download grades in a CSV format.
Inside lms/djangoapps/instructor_task/models.py, where we create a DjangoStorageReportStore, it needs these values from the config, otherwise will fail:

  • STORAGE_TYPE
  • BUCKET
  • ROOT_PATH
  • CUSTOM_DOMAIN (if exists)

https://github.com/openedx/edx-platform/blob/f3f160f4f20f7bbde45fe0d48ac9626a694afb93/lms/djangoapps/instructor_task/models.py#L230-L242

Oddly, it's not reading them from AWS_S3_ configs.

In the plugin, just a bucket_name and a location kwargs are overridden.

GRADES_DOWNLOAD["STORAGE_KWARGS"] = {"location": GRADES_DOWNLOAD["STORAGE_KWARGS"]["location"].lstrip("/")}
GRADES_DOWNLOAD["STORAGE_KWARGS"]["bucket_name"] = "{{ S3_GRADE_BUCKET }}"

Note that I didn't use the plugin, but just used GRADES_DOWNLOAD config mentioned above and it didn't work.
If this is a valid issue, I would like to work on it.

@fghaas
Copy link
Contributor

fghaas commented Jul 29, 2024

Note that I didn't use the plugin, but just used GRADES_DOWNLOAD config mentioned above and it didn't work.

I am using the plugin, and the "Generate Grade Report" button in the Instructor tab is working just fine for me. Can you please explain what exactly you did, and what broke, and how?

@CodeWithEmad
Copy link
Author

I had this really weird s3 setup for a customer, that didn't work with this config, but having those changes I mentioned did the trick.

I am using the plugin

If it's working on your setup, I'll close this one

@fghaas
Copy link
Contributor

fghaas commented Jul 30, 2024

Okay. It looks like overhangio/tutor-minio#43 produced the same outcome.

@fghaas fghaas closed this as not planned Won't fix, can't repro, duplicate, stale Jul 30, 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 a pull request may close this issue.

2 participants