Skip to content

feat: add cli command and query methods - #286

Merged
Alec4r merged 9 commits into
survey_reportfrom
survey_report_methods
Oct 26, 2022
Merged

feat: add cli command and query methods#286
Alec4r merged 9 commits into
survey_reportfrom
survey_report_methods

Conversation

@Alec4r

@Alec4r Alec4r commented Oct 21, 2022

Copy link
Copy Markdown
Member

Description

This PR adds the model needed to manage the report with the openedx instance data that will be sent to Openedx API, in accordance with the queries sent to the community to gathering impact data on Open edX Instances and the methods to get the data from django models.

How to test

With a nutmeg environment you should run the command python manage.py lms generate_report, if you don't get a error you can see the report values using the python shell:

from openedx.features.survey_report.models import SurveyReport
SurveyReport.objects.all().values()

"""
<QuerySet [{'id': 1, 'courses_offered': 0, 'learners': 0, 'registered_learners': 2, 'enrollments': 0, 'generated_certificates': 0, 'extra_data': {}, 'request_details': None, 'created_at': datetime.datetime(2022, 10, 27, 12, 45, 1, 268473, tzinfo=<UTC>), 'sent_at': None}]>
"""

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 this pull request may close these issues.

2 participants