Commit Graph

243 Commits

Author SHA1 Message Date
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
aarif
61800c619f replaced StringIO imports with import from six
replaced cStringIO and StringIO imports with import from six

fixed StringIO imports

fixed StringIO imports

fixed XSS python-wrap warning
2019-08-08 00:09:16 +05:00
Diego Millan
0dcb6ecea5 Making the regex that gets the index courses more secure 2019-07-25 11:09:32 -04:00
Troy Sankey
4500536151 Add history to CourseOverview 2019-07-03 16:24:28 -04:00
Calen Pennington
390122ec93 Make CourseOverviewFactory create new courses every time (unless otherwise specified) 2019-06-25 12:04:59 -04:00
Jeremy Bowman
f9929f32b5 Update quality threshold counts (#20681) 2019-05-24 08:27:54 -04:00
Amit
d0810a5c94 INCR-249: Make compatible with Python 3.x without breaking Python 2.7 support (#20528)
* INCR-249: Make compatible with Python 3.x without breaking Python 2.7 support --> openedx/core/djangoapps/content/block_structure

* INCR-249: Grouped six package

* INCR-249: Remove the duplicate lines for absolute_import
2019-05-13 12:15:05 -04:00
amitvadhel
467eb70f50 INCR-141: Run python-modernize on openedx/core/djangoapps/content/block_structure [migrations, management, config] 2019-05-10 12:13:17 +03:00
Anthony Wee
a73dd36f60 INCR-143: Run python-modernize on openedx/core/djangoapps/content/course_overviews (#20443)
* INCR-143: Run python-modernize on openedx/core/djangoapps/content/course_overviews

* isort

* pylint
2019-05-07 16:34:04 -04:00
Nimisha Asthagiri
e160b23903 Move django_comment_client to discussion/ 2019-05-03 12:09:46 -04:00
Nimisha Asthagiri
ef0e06cc0a Revert "Discussions consolidation" 2019-05-02 14:59:56 -04:00
Nimisha Asthagiri
db89a64d06 Move django_comment_client to discussion/ 2019-05-01 19:13:10 -04:00
Michael Youngstrom
2935466408 INCR-120 2019-04-25 10:31:19 -04:00
Giovanni Cimolin da Silva
13e8322b00 INCR-118: Run python-modernize on openedx/core/djangoapps/content/course_overviews/migrations 2019-03-28 15:46:29 -07:00
Julia Eskew
368f221f0a Initial start on annotations. 2019-02-19 11:24:21 -05:00
Matthew Piatetsky
f294b1a374 fix unicode strings in openedx/ part 1 2019-02-13 10:47:35 -05:00
Michael Youngstrom
4bbd1dee0b Remove shards from commonlib-unit tests 2019-02-12 14:28:35 -05:00
Calen Pennington
6c596f7c49 Allow courses api to return data incrementally
Prior to this commit, the course api (/api/courses/v1/courses/)
performed all the work necessary to return all courses available
to the user, and then only actually returned on page's worth of those
courses.

With this change, the api now does the work incrementally, computing
only the data needed to fetch the courses up to and including the page
being returned. This still increases approximately linearly as
the page number accessed being increases, but should be more cache-friendly.
One side effect of this is that the max_page reported by pagination
will be an overestimate (it will include pages that are removed due
to a users access restrictions).

This change also changes the sort-order of courses being returned by the
course_api. By sorting by course-id, rather than course-number, we
can sort in the database, rather than in Python, and defer loading data
from the end of the list until it is requested.

REVMI-90
2019-02-06 10:11:15 -05:00
Calen Pennington
805f32a357 Revert "Allow courses api to return data incrementally" 2019-01-25 12:56:57 -05:00
Calen Pennington
a3541d6e46 Allow courses api to return data incrementally
Prior to this commit, the course api (/api/courses/v1/courses/)
performed all the work necessary to return all courses available
to the user, and then only actually returned on page's worth of those
courses.

With this change, the api now does the work incrementally, computing
only the data needed to fetch the courses up to and including the page
being returned. This still increases approximately linearly as
the page number accessed being increases, but should be more cache-friendly.
One side effect of this is that the max_page reported by pagination
will be an overestimate (it will include pages that are removed due
to a users access restrictions).

This change also changes the sort-order of courses being returned by the
course_api. By sorting by course-id, rather than course-number, we
can sort in the database, rather than in Python, and defer loading data
from the end of the list until it is requested.

REVMI-90
2019-01-25 10:30:09 -05:00
Cory Lee
305167cd86 Removing unnecessary log statements 2018-10-18 11:08:54 -04:00
Nimisha Asthagiri
700a902b68 Cleanup and remove deprecated RequestCache Django app
ARCH-223
2018-09-12 14:39:11 -04:00
Michael Youngstrom
bc1d883e1a Dont let DarkLangConfig cache interfere with other tests 2018-09-06 10:33:54 -04:00
Jeremy Bowman
d90afa4cde TE-2689 Remove useless pylint suppressions part 5 2018-08-21 11:07:52 -04:00
Awais Jibran
316fdd67c2 Revert "Adding more logging" 2018-08-08 21:45:45 +05:00
Awais Jibran
0d4a9a9e51 Merge pull request #18744 from edx/aj/add-more-logging-in-load_from_module_store
Adding more logging
2018-08-08 16:13:09 +05:00
Awais Jibran
e38957bdb0 Adding more logging 2018-08-08 11:54:02 +05:00
Jeremy Bowman
c290bf8a07 TE-2524 Stop using nose.plugins - openedx 2018-08-02 14:54:50 -04:00