Commit Graph

80 Commits

Author SHA1 Message Date
usamasadiq
3f1df8eb2a Ran pyupgrade on lms/djangoapps
Ran pyupgrade on lms/djangoapps/instructor_analytics
Ran pyugprade on lms/djangoapps/instructor_task
Ran pyupgrade on lms/djangoapps/learner_dashboard
2021-02-19 17:30:59 +05:00
Awais Qureshi
44576ce3f6 BOM-2282
Apply pylint-amnesty.
2021-02-01 19:27:15 +05:00
Jillian Vogel
511d6b975d SE-2010 Allows XBlocks to order columns for the Problem Response Report (#23109) 2020-12-11 09:37:26 -05:00
Kyle McCormick
151bd13666 Use full names for common.djangoapps imports; warn when using old style (#25477)
* Generate common/djangoapps import shims for LMS
* Generate common/djangoapps import shims for Studio
* Stop appending project root to sys.path
* Stop appending common/djangoapps to sys.path
* Import from common.djangoapps.course_action_state instead of course_action_state
* Import from common.djangoapps.course_modes instead of course_modes
* Import from common.djangoapps.database_fixups instead of database_fixups
* Import from common.djangoapps.edxmako instead of edxmako
* Import from common.djangoapps.entitlements instead of entitlements
* Import from common.djangoapps.pipline_mako instead of pipeline_mako
* Import from common.djangoapps.static_replace instead of static_replace
* Import from common.djangoapps.student instead of student
* Import from common.djangoapps.terrain instead of terrain
* Import from common.djangoapps.third_party_auth instead of third_party_auth
* Import from common.djangoapps.track instead of track
* Import from common.djangoapps.util instead of util
* Import from common.djangoapps.xblock_django instead of xblock_django
* Add empty common/djangoapps/__init__.py to fix pytest collection
* Fix pylint formatting violations
* Exclude import_shims/ directory tree from linting
2020-11-10 07:02:01 -05:00
Kyle McCormick
d1a775d3cd Use full names for lms.djangoapps imports (#25401)
* Use full LMS imports paths in LMS settings and urls modules
* Use full LMS import paths in Studio settings and urls modules
* Import from lms.djangoapps.badges instead of badges
* Import from lms.djangoapps.branding instead of branding
* Import from lms.djangoapps.bulk_email instead of bulk_email
* Import from lms.djangoapps.bulk_enroll instead of bulk_enroll
* Import from lms.djangoapps.ccx instead of ccx
* Import from lms.djangoapps.course_api instead of course_api
* Import from lms.djangoapps.course_blocks instead of course_blocks
* Import from lms.djangoapps.course_wiki instead of course_wiki
* Import from lms.djangoapps.courseware instead of courseware
* Import from lms.djangoapps.dashboard instead of dashboard
* Import from lms.djangoapps.discussion import discussion
* Import from lms.djangoapps.email_marketing instead of email_marketing
* Import from lms.djangoapps.experiments instead of experiments
* Import from lms.djangoapps.gating instead of gating
* Import from lms.djangoapps.grades instead of grades
* Import from lms.djangoapps.instructor_analytics instead of instructor_analytics
* Import form lms.djangoapps.lms_xblock instead of lms_xblock
* Import from lms.djangoapps.lti_provider instead of lti_provider
* Import from lms.djangoapps.mobile_api instead of mobile_api
* Import from lms.djangoapps.rss_proxy instead of rss_proxy
* Import from lms.djangoapps.static_template_view instead of static_template_view
* Import from lms.djangoapps.survey instead of survey
* Import from lms.djangoapps.verify_student instead of verify_student
* Stop suppressing EdxPlatformDeprecatedImportWarnings
2020-11-04 08:48:33 -05:00
Kshitij Sobti
9adeeb0056 Remove report path from task output data
Use alternative method for getting report download link
2020-09-11 14:12:28 +02:00
Kshitij Sobti
2eff127e8d Add support for generating problem response reports for multiple blocks, or filtered block types.
This change adds support for specifying multiple root blocks while generating
problem response reports. It also allows specifying a block type filter so that
only blocks of the filtered types will be included in the report.

Finally, this change also consistenly uses absolute path for the location in the
report instead of relative paths.
2020-08-18 22:28:05 +05:30
Kshitij Sobti
559ff54a06 Add UI to display report creation progress.
Adds an in-line status display for problem report generation progress.

Co-authored-by: Adam Kovari <adam@opencraft.com>
Co-authored-by: Eugeny Kolpakov <eugeny.kolpakov@gmail.com>
Co-authored-by: Kshitij Sobti <kshitij@sobti.in>
Co-authored-by: Braden MacDonald <braden@opencraft.com>
2020-08-12 19:05:31 +05:30
Awais Jibran
5d4df5383b Change switch to waffle flag. 2020-06-15 15:15:10 +05:00
Alex Dusenbery
f40bb34ce7 For course grade and problem grade reports, clear course enrollment caches after each batch of users is processed. 2020-04-20 14:19:54 -04:00
SaadYousaf
297a114d6e remove unneccesary log. 2020-04-15 15:12:46 +05:00
Aarif
6ee2089077 fixed warnings for wrong-import-order 2020-04-08 23:43:06 +05:00
Awais Jibran
ac49d4fd99 Pass course structure to CourseGradeFactory.iter 2020-04-07 18:02:15 +05:00
SaadYousaf
738dbae563 add investigation logs. 2020-04-03 21:13:53 +05:00
SaadYousaf
3c1f7ec5e9 add logs to optimized ProblemGradeReport code. 2020-04-02 14:39:43 +05:00
SaadYousaf
6fb9d199a0 optimize code for problem_grade_report. 2020-03-30 20:33:49 +05:00
Saad Yousaf
a458491f04 Revert "[PROD-1287] - initial work to optimise problem_grade_report code." 2020-03-30 19:05:54 +05:00
SaadYousaf
4e4bffe404 initial work to optimise problem_grade_report code. 2020-03-30 13:14:01 +05:00
Awais Jibran
d7d258cd36 Generate grade report for verified learnes by default 2020-01-28 14:04:02 +05:00
Feanil Patel
9cf2f9f298 Run 2to3 -f future . -w
This will remove imports from __future__ that are no longer needed.

https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Awais Jibran
fb4b46c12c Code Refactor for Course Grade Report 2019-11-15 12:30:15 +05:00
Awais Jibran
b2805a92e6 Fixes Course Grade Report.
This PR implements a waffle flag for generating course grade report only for verified learners.
2019-11-13 15:14:02 +05:00
atesker
c007499a54 PROD-826 - Add CourseWaffleFlag that restricts the set of ProblemGradeReport enrollees to only verified learners.
cr comments

added unit test

removed debug

style
2019-10-27 15:23:47 -04:00
Awais Jibran
ac9a7055b5 Improve logging against Probelm grade report 2019-10-24 16:40:41 +05:00
Alex Dusenbery
bf77974297 EDUCATOR-4684 | The instructor course grade report should take subsection grade overrides into account. 2019-09-27 11:55:41 -04:00
Ned Batchelder
efba6e45e8 Finally import courseware properly everywhere to get rid of a warning 2019-09-26 09:40:15 -04:00
Syed Muhammad Dawoud Sheraz Ali
22d3f802f2 Revert "[BB-873] Support for filters, and multiple roots in problem response reports" 2019-08-09 17:17:36 +05:00
David Ormsbee
98deba6ec3 Merge pull request #19781 from open-craft/kshtij/problem-response-multi-root-and-fitler
[BB-873] Support for filters, and multiple roots in problem response reports
2019-08-08 13:36:43 -04:00
Kshitij Sobti
98af7496d7 Add support for generating problem response reports for multiple blocks, or filtered block types.
This change adds support for specifying multiple root blocks while generating
problem response reports. It also allows specifying a block type filter so that
only blocks of the filtered types will be included in the report.

Finally, this change also consistenly uses absolute path for the location in the
report instead of relative paths.
2019-08-08 15:02:46 +05:30
Calen Pennington
0cd8f58bcc Remove all instances of from instructor import imports 2019-08-05 09:59:30 -04:00
Stu Young
3b65081fab incr-264 (#20575)
* run python modernize

* run isort

* quality fixes

* quality
2019-05-16 13:39:29 -04:00
Nimisha Asthagiri
eb0791ec89 Inter-app API cleanup for Grades 2019-05-04 11:35:06 -04:00
Kshitij Sobti
a76c6dca87 Fix issue with multiple responses for a single user returned by generate_report_data
Before this fix if an XBlock's generate_report_data method returned multiple
responses for the same user from a single user state, the report generator would
end up overwriting each response over the previous one such that only the last
response would be preserved.
2019-03-14 12:07:20 +05:30
Alex Dusenbery
305573ed8e Prefetch/cache subsection grades for gradebook. 2018-11-29 13:06:28 -05:00
Awais Jibran
4e98578f11 Workaround of CS50 OOM error
EDUCATOR-3483
2018-11-22 09:07:19 +05:00
Alex Dusenbery
34199d9e98 Don't join to auth_user when getting verified user ids; use them in a set and not a list. 2018-09-07 11:59:46 -04:00
Kshitij Sobti
491532c2db Update report generation code to include old state for backwards compatibility
Include report data generated by blocks as columns instead of a json dict
2018-07-09 23:56:51 +05:30
Braden MacDonald
b12346f390 Merge pull request #18170 from open-craft/eugeny/instructor_report_popup_backend
Answers report: Return task ID and generated filename for frontend to consume
2018-06-18 13:26:27 -07:00
Eugeny Kolpakov
d058aacca9 Return task ID and generated filename from backend 2018-06-17 17:22:12 +08:00
Kshitij Sobti
011b295890 Handle NotImplementedError raised by generate_report_data 2018-05-25 18:44:59 +05:30
Kshitij Sobti
7e01a065b9 Use `generate_report_data` for getting report data if the block provides it 2018-05-25 18:44:59 +05:30
Kshitij Sobti
ccabab0771 Added chapter blocks to be excluded from report 2018-05-25 18:44:59 +05:30
Kshitij Sobti
1aa55c6cfa Documentation grammar and accuracy fixes 2018-05-25 18:44:59 +05:30
Kshitij Sobti
ba635383db Filter out sequentials in final report generation stage
Fix tests to match code changes
2018-05-25 18:44:59 +05:30
Kshitij Sobti
c4bbe7f036 Only filter out verticals instead of all non-problem blocks
Improve documentation
2018-05-25 18:44:59 +05:30
Kshitij Sobti
d2b78a34f4 Unconditionally yield root block so it's always included in the report 2018-05-25 18:44:59 +05:30
Kshitij Sobti
723a0639ca Fix: issue generating reports for single problem
code style fixes
2018-05-25 18:44:59 +05:30
Kshitij Sobti
94f1e0aa1c Fix error due to improper problem_key
Add tests
2018-05-25 18:44:59 +05:30
Kshitij Sobti
7e31718f91 Documentation and PEP8 2018-05-25 18:44:59 +05:30
Kshitij Sobti
0b75749c6e Use cls instead of direct class name 2018-05-25 18:44:59 +05:30