-
Notifications
You must be signed in to change notification settings - Fork 4.3k
docs: add more details to the survey report README #33623
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
Merged
felipemontoya
merged 3 commits into
openedx:master
from
eduNEXT:mfmz/update-readme-survey-report
Dec 19, 2023
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,77 @@ | ||
| Survey Report | ||
| -------------------- | ||
| This Django app was created for the purpose of gathering aggregated, anonymized data | ||
| about Open edX courses at scale, so that we can begin to track the growth | ||
| and trends in Open edX usage over time, namely in the annual Open edX | ||
| Impact Report. | ||
|
|
||
| You could find in this directory some methods to manage survey | ||
| reports, one command to generate the report, some queries to get the | ||
| information from database and one method to send the report to openedx | ||
| api. | ||
| =============== | ||
|
|
||
| This Django app was created to gather aggregated, anonymized data about Open edX courses at scale so that we can begin to track the growth and trends in Open edX usage over time, namely in the annual Open edX Impact Report. | ||
|
|
||
| With this app, you can collect the following information on your platform: | ||
|
|
||
| - ``courses_offered``: Total number of active unique courses. | ||
| - ``learners``: Recently active users with login in the last four weeks. | ||
| - ``registered_learners``: Total number of users ever registered in the platform. | ||
| - ``enrollments``: Total number of active enrollments in the platform. | ||
| - ``generated_certificates``: Total number of generated certificates. | ||
| - ``extra_data``: Extra information that will be saved in the report, e.g., site_name, openedx-release. | ||
| - ``state``: State of the async generating process. | ||
|
|
||
| You can find in this directory: | ||
| - Some methods to manage survey reports. | ||
| - One command to generate the report. | ||
| - Some queries to get the information from the database. | ||
| - One method to send the report to Open edX API. | ||
|
|
||
| How to Generate a Report and Send It | ||
| ------------------------------------- | ||
|
|
||
| By setting ``SURVEY_REPORT_ENDPOINT``, you can choose to whom you would like to send the report; by default, you will send the report to the Open edX organization to collaborate with the annual Open edX Impact Report. You can see `Settings for Survey Report`_ for more information. | ||
|
|
||
| .. TODO: Complete this part | ||
| By the tutor plugin X | ||
| ~~~~~~~~~~~~~~~~~~~~~~ | ||
| You can generate and send reports automatically by installing the tutor plugin X and following its instructions. | ||
|
|
||
| Django Admin | ||
| ~~~~~~~~~~~~~ | ||
| You can create reports using the Django Admin; for that, you need to follow these steps: | ||
|
|
||
| 1. Enter the **Survey Report** option in your Django admin (URL: ``<your LMs domain>/admin/survey_report/surveyreport/``) | ||
| 2. Click the **Generate Report** button. | ||
| 3. Then, you can select the reports you want to send and use the admin actions to send the report to an external API. | ||
|
|
||
| .. image:: docs/_images/survey_report_admin.png | ||
| :alt: Survey report by Django admin | ||
|
|
||
| Screenshot of Survey Report option in a Django admin and use the admin actions to send the report to an external API | ||
|
|
||
| Command Line | ||
| ~~~~~~~~~~~~~ | ||
| 1. Run a Bash shell in your LMS container. For example, using ``tutor dev run lms bash``. | ||
| 2. Run the command: ``./manage.py lms generate_report`` | ||
|
|
||
| **Note:** by default that the command also sends the report; if you only want to generate it, you need to add the flag ``--no-send``. For more information, you can run the command ``./manage.py lms generate_report --help`` | ||
|
|
||
| .. image:: docs/_images/survey_report_command.png | ||
| :alt: Survey Report by command line | ||
|
|
||
| Screenshot of a bash shell with the result of running ``./manage.py lms generate_report --no-send`` | ||
|
|
||
| Settings for Survey Report | ||
| ---------------------------- | ||
|
|
||
| You have the following settings to customize the behavior of your reports. | ||
|
|
||
| - ``SURVEY_REPORT_EXTRA_DATA``: This setting is a dictionary. This info will appear as a value in the report extra_data attribute. By default, the value is {}. | ||
|
|
||
| - ``SURVEY_REPORT_ENDPOINT``: This setting is a string with the endpoint to send the report. This URL should be capable of receiving a POST request with the data. By default, the setting is to an Open edX organization endpoint. | ||
|
|
||
| - ``ANONYMOUS_SURVEY_REPORT``: This is a boolean to specify if you want to use your LMS domain as ID for your report or to send the information anonymously with a UUID. By default, this setting is False. | ||
|
|
||
|
|
||
| About the Survey Report Admin Banner | ||
| ------------------------------------- | ||
|
|
||
| This app implements a banner to make it easy for the Open edX operators to generate and send reports automatically. | ||
|
|
||
| .. image:: docs/_images/survey_report_banner.png | ||
| :alt: Survey Report Banner | ||
|
|
||
| **Note:** The banner will appear if a survey report is not sent in the months defined in the ``context_processor`` file, by default, is set to appear monthly. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.