Jeff LaJoie
fa3b1cd835
AA-6: Adds in dates tab and dates dashboard view to courseware
2020-02-25 10:48:45 -05:00
Dave St.Germain
a5b0f71108
Several optimizations for improving vertical rendering performance.
2020-02-20 11:41:21 -05:00
Dave St.Germain
9da8ff0f0b
Allow anonymous access to courseware API, and return error message if user is unenrolled.
2020-02-14 11:03:15 -05:00
Dave St.Germain
1aa8c9c53d
Add a new courseware API Django app to support the courseware micro-frontend.
2020-01-28 14:59:07 -05:00
Kyle McCormick
b8a38bd8c2
Improve logging for CourseOverview creation
2020-01-27 11:17:06 -05:00
Kyle McCormick
28c0433352
Reinstate "Remove CourseOverview.get_from_id[s]_if_exists ( #22918 )"
...
This reverts commit cdb0619846 ,
which itself reverted 3ca006214e .
The original commit (3ca006) was reverted because it was suspected
that it was causing unexpectedly-increased memcached usage and
500s in the Gradebook API. It is not clear whether that is actually
the case. We are optimistically reinstating 3ca006 and will monitor
production to see if there is an adverse effect.
MST-105
2020-01-27 11:17:06 -05:00
Kyle McCormick
cdb0619846
Revert "Remove CourseOverview.get_from_id[s]_if_exists ( #22918 )" ( #22926 )
...
This reverts commit 3ca006214e .
2020-01-23 13:52:11 -05:00
Kyle McCormick
3ca006214e
Remove CourseOverview.get_from_id[s]_if_exists ( #22918 )
...
The functions `CourseOverview.get_from_id_if_exists`
and `CourseOverview.get_from_ids if exists` are bug-
prone, in that they do not go to the modulestore
when a CourseOverview is out-of-date or uncached.
The docstrings spell this out, but callers seem
not to understand the implications.
So, in this commit, we:
* Remove both functions
* Add `CourseOverview.get_from_ids` for almost-as-fast
yet safer bulk-fetching of overviews
* Update call sites to use `course_exists` or `get_from_ids`
in place of the old functions.
* Add tests for @verify_course_exists.
This PR should specifically fix an issue where
the program_enrollments API was breaking when the CourseOverview
version was bumped.
CR-1708
2020-01-23 09:41:55 -05:00
Calen Pennington
2abfc665da
Rather than deleting CourseOverviews to update their version numbers, just reload them from the modulestore
2020-01-15 13:30:41 -05:00
hunytalk
ef7350f375
Add comment
2020-01-13 19:09:15 +05:00
hunytalk
8374d111c1
Add start_date, end_date for renaming start, end field to CourseOverview
2020-01-13 18:59:51 +05:00
David Ormsbee
db30d8f447
Merge pull request #22631 from appsembler/omar/iexact__in
...
Safer CourseOverview.org filed matching
2019-12-30 14:59:13 -05:00
Feanil Patel
046feb0cf0
Merge pull request #22649 from edx/feanil/fix_pep8
...
Fix all E303 pep8 errors.
2019-12-30 13:32:26 -05:00
Feanil Patel
6e3fe00fff
Fix all E303 pep8 errors.
2019-12-30 12:25:38 -05:00
Feanil Patel
2df8b8226b
Merge pull request #22643 from edx/feanil/2to3_asserts
...
Run `2to3 -f asserts . -w` on edx-platform.
2019-12-30 12:13:42 -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
Feanil Patel
70294b0ad2
Run 2to3 -f asserts . -w on edx-platform.
...
https://docs.python.org/3.5/library/2to3.html#2to3fixer-asserts
2019-12-30 10:22:19 -05:00
Omar Al-Ithawi
99960d7001
Safer CourseOverview.org filed matching
...
Regular expressions are harder to read and debug
2019-12-30 11:01:50 +03:00
Hassan Javeed
b699308933
Added management command to add history from snapshot.
2019-12-19 15:41:29 +05:00
Feanil Patel
f485ff450d
Deal with pylint.
2019-12-09 11:03:22 -05:00
Feanil Patel
bf482f4989
Respond to code review.
2019-12-06 15:02:22 -05:00
Feanil Patel
48e9724808
Handle other places where we might be unpickling things.
...
We use pickling in conjunction with caches in these cases so we should
be able to fallback to the uncached behavior if the pickled data is
corrupt in some way.
eg. it's a python 2 pickle we don't know how to read.
2019-12-05 17:06:12 -05:00
Stu Young
9ec9d45bc4
remove backfill history management command ( #22267 )
2019-11-07 15:03:31 -05:00
Stu Young
cb9f6b4a1b
fix example in history backfill command ( #22224 )
2019-11-01 17:32:47 -04:00
Hassan Javeed
86f0f42520
Replace 'NULL' with None.
2019-10-28 16:05:45 +05:00
Manjinder Singh
7f3045cf75
BOM-933: Fix type mismatches in various migrations 4 ( #22146 )
...
* fix type mismatch in course_goals migrations
* fix type mismatch in experiments migrations
* fix type mismatch in xblock_django migrations
* fix type mismatch in catalog migrations
* fix type mismatch in static_replace migrations
* fix type mismatch in bulk_email migrations
* fix type mismatch in course_overviews migrations
2019-10-24 13:47:51 -04:00
Hassan Javeed
edb732d83a
Added management command to populate history as of 06/29.
2019-10-23 01:43:13 +05:00
Adeel Khan
f11afb57a2
Adds migration for simulate publish command
...
A rewording of help text caused django to create
a new migration for config model and that was not
initially pushed to master.
2019-10-02 14:45:43 +05:00
Nimisha Asthagiri
95c2e49438
Merge pull request #21840 from edx/bom/block-structure-python-3
...
block_structure python-3 upgrade
2019-09-30 08:33:32 -04:00
Nimisha Asthagiri
b0a1a99aa6
block_structure python-3 upgrade
2019-09-28 14:15:24 -04:00
Nimisha Asthagiri
ea0bea8193
course_overviews python-3 upgrade
2019-09-28 14:00:14 -04:00
Jeremy Bowman
ead81288ad
Always store transformers_schema_version as text BOM-576 ( #21823 )
2019-09-27 14:33:25 -04:00
Jeremy Bowman
88b8e97409
Fix block_structure error handling BOM-577 ( #21801 )
2019-09-27 10:06:00 -04:00
Hassan Javeed
8ad77f7f0c
Removed one-off management commands.
2019-09-27 18:04:16 +05:00
Ayub khan
5c47a3b425
BOM Project
...
Updated __unicode__ to __str__
2019-09-25 18:31:54 +05:00
Ned Batchelder
e1a3d66143
Merge pull request #21220 from eduNEXT/coa/course-index-regex
...
Making the regex that gets the index courses more secure
2019-09-23 11:32:28 -04:00
Hassan Javeed
23cd4d9899
Management command to add history to course_overviews_courseoverview.
2019-09-20 23:50:01 +05:00
Kyle McCormick
298c3498ae
Add course_exists utility to CourseOverview class
2019-09-20 09:55:13 -04:00
Aarif
530dadb1b0
Merge pull request #21682 from edx/BOM-485
...
BOM-485
2019-09-18 18:01:37 +05:00
Adeel Khan
98c6c1af49
Adds config models to pass arguments to management command
...
This would enable simulate_publish management command to
fetch its arguments from config model.
PROD-548
2019-09-18 11:42:02 +05:00
aarif
7cc0efdb24
python 3 fixes
2019-09-17 18:19:21 +05:00
Aarif
0225162c67
Merge pull request #21654 from edx/BOM-476
...
BOM-476
2019-09-17 12:37:22 +05:00
Hassan Javeed
092da8c5f4
Management command to insert initial historical records.
2019-09-17 03:13:07 +05:00
Awais Qureshi
f6537586d6
BOM-479
...
Fixing python3
2019-09-15 00:23:39 +05:00
aarif
0690178446
python 3 fixes
2019-09-13 17:02:39 +05:00
Kyle McCormick
7c10e03ce4
Fix CourseOverview factory timezone unawareness warnings
2019-09-12 14:54:03 -04:00
Chris Pappas
228920e701
Merge pull request #21566 from edx/cpappas/course-overview-serializer-bug-fix
...
Updating course overview serializer to return bool data for has_end…
2019-09-05 09:55:26 -04:00
Christopher Pappas
5f510a8dd5
Updating course overview serializer to return string data for has_ended and has_started, and not a bound method
...
Oops meant this to be a bool and not a string type
Had to add a start and end date for the course overview test fixture for tests to pass
2019-09-04 19:32:28 -04:00
Ayub khan
611e43bc6d
BOM-245
...
python3 compatibility
2019-09-04 18:20:20 +05:00
Chris Pappas
4829fd4fde
ENT-2117 | Creating new endpoint for enterprise learner portal. Includes small refactor of programs_enrollment GET logic, sowe do not need to duplicate the logic ( #21258 )
...
Adding new course_overview internal api
CourseOverview serializer work
Removing enterprise learner portal djangoapp from this repo
Removing ent learner portal url
Minor cleanups
Updating serializers again
typo
adding some tests and quality fixes
more quality fixes
Fixing test
Adding in an import i removed
2019-08-14 11:27:12 -04:00