Kyle Mulka
ba993c5937
INCR-226 run modernize on common/lib/xmodule/xmodule/modulestore/mong… ( #20431 )
...
* INCR-226 run modernize on common/lib/xmodule/xmodule/modulestore/mongo, split_mongo, and perf_tests
* fix pep8 error
2019-05-07 10:36:58 -04:00
Nimisha Asthagiri
700a902b68
Cleanup and remove deprecated RequestCache Django app
...
ARCH-223
2018-09-12 14:39:11 -04:00
Jeremy Bowman
2bd0c3d9a1
PLAT-1917 Stop using deprecated Location and AssetLocation
2018-02-03 00:31:59 -05:00
Jeremy Bowman
113e8dde61
PLAT-1885 Stop using deprecated BlockUsageLocator properties
2018-01-12 16:40:21 -05:00
Jeremy Bowman
669aa13ad6
PLAT-1873 to_deprecated_string() cleanup part 2
2018-01-08 17:26:55 -05:00
cahrens
b26b41b9fc
Replace deprecated_string methods.
2017-08-15 14:21:45 -04:00
Mushtaq Ali
0bede12821
Fix multiple copies of components on discard changing a move operation - TNL-6670
2017-04-04 16:53:35 +05:00
Ned Batchelder
0872732cf0
Fix pylint C7630 (literal used as attribute) violations
...
There's no need to use a string literal in setattr, delattr, or the
two-argument form of getattr.
2015-11-23 15:32:54 -05:00
Calen Pennington
f8f9b91c16
Make unpublish raise the same errors in split and old-mongo when asked to unpublish a DIRECT_ONLY_CATEGORY
2015-10-06 16:54:34 -04:00
Renzo Lucioni
b50c905865
Remove modulestore dependency from Enrollment API
...
Sets the Enrollment API free of the modulestore by replacing modulestore queries with calls to the CourseOverview model. Course deletion invalidates the corresponding CourseOverview. XCOM-462.
2015-07-20 13:41:19 -04:00
Calen Pennington
fdf81042f5
Pass XBlock parents down to their children when constructing them, for caching
2015-06-25 13:59:46 -04:00
Nimisha Asthagiri
65e330e8b5
Make RequestCache reusable
2015-06-12 09:27:16 -04:00
Davorin Sego
e37a98d1be
Indexing moved to celery task. Reorganised indexing to always allow for full course reindex. Indexing code no longer needs to be in common, because it is triggered by signal instead of being called.g
2015-04-10 14:30:19 -04:00
Calen Pennington
8f133f6696
Merge pull request #6035 from edx/jeskew/xmodule_to_xblock_vertical
...
Convert Vertical XModule to pure Vertical XBlock.
2015-03-31 11:10:22 -04:00
Calen Pennington
ee401f15f4
Make mongo/draft.py pass the active descriptor system through item loading
2015-03-31 09:43:51 -04:00
Martyn James
838060f30c
Update course_publish event to:
...
* Only fire on bulk operation if something therein was published
* Wrap calls that use the following repeated pattern:
if self.signal_handler and not bulk_record.active:
self.signal_handler.send()
* Ensure consistent firing of signal between split and draft implementations
* Updated tests to use typical course nesting structures
* Added tests within bulk operations
2015-03-23 15:17:23 -04:00
Dino Cikatic
2117d168a4
SOL-217 Adding basic analytics events logging for courseware search and index
2015-03-19 21:52:23 +00:00
Clinton Blackburn
92ca64fa2a
Finishing async course structure work
...
- Added tests
- Updated model field specification
- Fixed issue of multiple event emission
- Updated admin page
- Added management command to manually generate course structures
2015-02-13 12:21:51 -05:00
David Ormsbee
ba5cbb64d5
Add course publish signal to old Mongo modulestore.
2015-02-11 16:13:10 -05:00
Davorin Sego
e09d47b122
Courseware Search integration
2015-01-28 21:34:58 -05:00
jsa
17d892c521
make block.get_parent() work.
...
Co-Authored-By: Christina Roberts <christina@edx.org >
Co-Authored-By: Daniel Friedman <dfriedman@edx.org >
Co-Authored-By: Don Mitchell <dmitchell@edx.org >
2015-01-15 10:33:44 -05:00
Don Mitchell
a969755661
Handle children pointers to non-existent children in has_changes
...
TNL-1141
2015-01-09 11:34:46 -05:00
Adam Palay
7837607ca9
only recusively delete modules if all their parents are marked for deletion (PLAT-333)
...
update '_delete_item' method for draft only modules and update delete_orphans management command
fix test_courseware which fails due to invalid future date
2015-01-05 14:54:17 -05:00
Don Mitchell
fc83c299ca
Generalize assets to any block_type but using
...
AssetKey and the metadata store
PLAT-204
2014-11-05 16:01:50 -05:00
Don Mitchell
b7b5400c3e
Upgrade pymongo
...
LMS-11437
2014-10-09 11:55:14 -04:00
Andy Armstrong
7c4d8d3752
Revert the changes from PR 5152
...
The changes in 5152 appear to have introduced a
performance problem on stage, so we're going to
revert them for now.
2014-09-17 12:24:59 -04:00
Tim Babych
f1da4efb8e
Merge pull request #5152 from edx/tim/less-has-changes
...
Calculate has_changes only Section/Subsection only on Outline page
2014-09-11 16:11:42 +03:00
Tim Babych
8b37dd7f95
Calculate has_changes only Section/Subsection only on Outline page
2014-09-11 12:42:56 +03:00
Don Mitchell
4faed64859
Generalize bulk_operations logic
...
LMS-11366
2014-09-10 15:35:28 -04:00
Don Mitchell
96bc5cc83a
Merge pull request #5001 from edx/split/edit_info
...
Split/edit info
2014-09-03 08:28:31 -04:00
Don Mitchell
85fa712fdf
Change published_date to published_on
...
to make consistent with other edit info timestamps
LMS-11184
2014-09-02 13:20:23 -04:00
Andy Armstrong
7b26e85478
Merge branch 'release' into andya/merge-hotfix-2014-08-29
...
Conflicts:
cms/djangoapps/contentstore/tests/test_import.py
common/lib/xmodule/xmodule/modulestore/__init__.py
common/lib/xmodule/xmodule/modulestore/tests/test_mixed_modulestore.py
lms/djangoapps/courseware/tests/test_module_render.py
2014-08-29 16:50:10 -04:00
Don Mitchell
1db107c2ce
Add memoization for has_changes
2014-08-29 14:09:41 -04:00
Nimisha Asthagiri
af9c9cd573
LMS-11185 Split implementation of revert_to_published
2014-08-27 15:41:14 -04:00
Don Mitchell
ee8fc41b62
compute_publish_state -> has_published_version
...
LMS-11213
2014-08-27 11:48:10 -04:00
Don Mitchell
47851c5041
Replace create_xmodule with create_xblock
...
Refactor all callers (often replacing with more appropriate fn)
Also, added for_branch_setting method to old mongo and removed some
branch verification tests
Conflicts:
common/lib/xmodule/xmodule/modulestore/mongo/draft.py
common/lib/xmodule/xmodule/modulestore/split_mongo/split_draft.py
common/lib/xmodule/xmodule/modulestore/xml_importer.py
2014-08-08 14:40:27 -04:00
Nimisha Asthagiri
d2b59cb6e0
get_items API: have qualifiers be a separate parameter instead of assuming kwargs.
2014-08-08 12:38:42 -04:00
Nimisha Asthagiri
abbfa95e4c
LMS-11168 Support for removing versions and branch in Split, Mixed, and SQL.
...
Make default_store thread-safe.
2014-08-07 18:07:41 -04:00
Ben McMorran
f3070e6796
Reduce mongo calls on course outline and container pages
2014-08-07 12:27:38 -04:00
Andy Armstrong
ef581e1146
Apply code review comments and fix tests
2014-08-07 12:27:14 -04:00
Andy Armstrong
a359065329
Integrate visual styling into the course outline
2014-08-07 12:27:13 -04:00
Nimisha Asthagiri
fe4bce8bba
clone_course: Add fields parameter to support new display_name.
2014-07-29 15:03:36 -04:00
Mathew Peterson
9a039e93ec
Adding auto_publishing to split_draft
...
Added update_item, create_item, create_child to split_draft.py
Cleaned up TODOs in test_mixed_modulestore.py
Unit test for auto-publish
LMS-11017
Added tests to test_mixed_modulestore.py for has_changes and added black_list to _auto_publish
Moved DIRECT_ONLY_CATEGORIES to draft_and_publish.py
Deleted test_split_draft_modulestore.py
Added _auto_publish to create course
Publish cleanups for update_version, source_version
Changed has_changes to use source_version
Removing mixed test that no longer makes sense in auto_publish world
Addressed TODOs in test_branch_setting
2014-07-28 20:49:30 +00:00
Diana Huang
167e2b675b
Split branch settings code review fixes LMS-11056
2014-07-23 21:59:33 -04:00
Nimisha Asthagiri
1dc6ea39f3
Split branch settings LMS-11056
2014-07-23 20:36:15 -04:00
Nimisha Asthagiri
3eecc9639a
Make overriding branch settings thread-safe LMS-11125
2014-07-23 17:41:08 -04:00
John Jarvis
7023eb4c19
resolving merge conflicts
2014-07-21 13:42:06 -04:00
Calen Pennington
483e2a6a5d
split create_item and create_child out as separate methods
2014-07-18 21:11:37 -04:00
Nimisha Asthagiri
7efd0cb49e
converge Split APIs with Mixed and Draft
2014-07-17 22:48:11 -04:00
Don Mitchell
801dcd07a2
Merge pull request #4462 from edx/bug/delete_draft
...
Piecemeal conversion to draft needs to allow
2014-07-17 15:45:54 -04:00