Files
edx-platform/scripts/xblock
David Joy a9f1a03787 Pin requirements to temporarily fix instructor task registration (#25787)
* Pin requirements to temporarily fix instructor task registration

We ran into an issue where instructor tasks were not being registered with celery correctly, resulting in: https://openedx.atlassian.net/browse/CR-2982

The cause wasn’t clear, so we started reverting some recent, suspect PRs.  When we reverted #25746, the issue went away.

The revert PR was this one: https://github.com/edx/edx-platform/pull/25766

So that we can unpause our deployment pipelines, we’re temporarily pinning the versions of the four packages upgraded in #25746 so we can continue to investigate.

* Result of make upgrade, propagating constraints out to other requirements files
2020-12-07 12:48:23 -05:00
..
2019-12-30 10:35:30 -05:00

## XBlocks count script

The script in this directory, xblock_counts.py, when run will produce 2 csv files containing a summary
of the XBlock usage in courses.

This script requires a list of XBlock types. The xblock_studio_configuration.json file included is an example. The file
contains a list of types for the tool to summarize with counts.

{
  "data": [
    {
      "name": "problem",
    },
    {
      "name": "video",
    },
    ...
  ]
}

### Steps for usage

1. Ensure all python requirements are up to date including those listed in the requirements.txt file.

2. Request a OAUTH2_Client ID on the api platform you are querying.

3. Execute the command line to run the script.

### Example command line usage

python xblock_counts.py -u <email> -p <password> -c <OAUTH2 Client_id> -m 12 -x xblock_studio_configuration.json -a https://courses.edx.org

Use python xblock_counts.py -h to get a list of command line options.