[SE-4175] Add CCX ID to generated filename prefixes

Description

This pull requests adds a new feature to include CCX course IDs in the generated course filenames used for downloading reports, etc.

The suffix appended to the generated filename prefix is following the `<separator>ccx<ccx id>` pattern, to ensure unique filename generation per ccx - previously all CCX courses were downloaded with the same name.

*Dependencies*: None

*Screenshots*:
![Screenshot 2021-03-16 at 16 22 12](https://user-images.githubusercontent.com/19173947/111349994-f1c42980-8681-11eb-8fff-d28024899957.png)

*Sandbox URL*: Due to an `DeprecatedEdxPlatformImportError` exception the sandbox is not provisioned.

*Merge deadline*: None

*Testing instructions*:

1. Enable `ALLOW_COURSE_STAFF_GRADE_DOWNLOADS`, `ENABLE_GRADE_DOWNLOADS`, and `ENABLE_COURSE_FILENAME_CCX_SUFFIX` features.
2. Create a course
3. Enable CCX for the course in the advanced settings
4. Create a new CCX for the course
5. Generate and download grades

*Author notes and concerns*:

N/A

*Reviewers*

  • [ ] @mavidser

  • [ ] TBD

Activity

Show:
Natalia Berdnikov
March 22, 2021, 1:19 PM

I believe this is with the arch team, can someone please review?

Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Peter Pinch

Reporter

Open Source Pull Request Bot

Labels

Contributor Name

Gábor Boros

Repo

edx/edx-platform

Customer

Github Lines Added

84

Github Lines Deleted

6