Usman Khalid
dd96a2aa72
Convert Course, Section and Sequence XModules to XBlocks. ( #25965 )
2021-03-02 10:29:33 -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
Usman Khalid
8dfc8e5fda
Convert AboutModule, CourseInfoModule, HtmlModule and StaticTabModule to XBlocks.
2019-07-24 20:19:44 +05:00
aarif
5f5b2ddc12
parent c89ecb384f
...
author aarif <mraarif@outlook.com > 1562661182 +0500
committer root <root@lms.devstack.edx > 1563270070 +0000
ran python-modernize and isort on files mentioned in INCR-327
changes made to comply with pylint
changes made to comply with pylint and pass failing test
changes made to comply with pylint
2019-07-16 09:46:20 +00:00
Usman Khalid
41c6236e0a
Convert CapaModule to ProblemBlock.
...
* Minimum possible changes were made to merge CapaModule & CapaDescriptor into
one ProblemBlock class.
* There are no known changes in behavior.
* CapaModule and CapaDescriptor inherited from a number of classes which inherit
from XModule or XModuleDescriptor but did not depend on them. For all these
classes the methods were moved to mixins which did not inherit from either and
then these mixins were added to ProblemBlock in the order which maintains MRO.
2019-05-01 20:08:36 +05:00
Andy Armstrong
ebb04ca396
Reorder Studio imports using isort
2017-05-30 17:00:50 -04:00
Ehtesham
31be6fad43
make CAPA dropdown problems accessible
2016-09-02 19:44:24 +05:00
muhammad-ammar
d14928cc61
separation based on responsetypes poc
...
FEDX-176
2016-09-02 19:44:22 +05:00
Ned Batchelder
2e1238b83e
Remove unused imports
2016-04-08 11:23:05 -04:00
John Eskew
78af86bc5b
Refactor the test_crud file.
...
Move Split-specific tests to test_split_modulestore.py.
Derive remaining tests from ModuleStoreTestCase.
Remove unused persistent_factory.py.
2015-09-14 07:51:00 -04:00
Calen Pennington
03a05fd9d4
Always call super(..).setUp() from setUp
2015-02-04 09:09:14 -05:00
Jesse Zoldak
77bbd30396
Do not create a modulestore unnecessarily in tests
2014-12-10 11:18:12 -05:00
Sarina Canelake
725e4908e3
Remove more pep8 violations
2014-11-04 07:37:41 -05:00
Calen Pennington
7b81dcc3ea
Make split_mongo assert block identity uniqueness only over (block_type, block_id) tuples [LMS-11364]
2014-09-11 09:38:13 -04:00
Calen Pennington
a205788c4d
Work around for split not having a coherent way to work with/track updated versions of structures
2014-08-27 16:29:48 -04:00
Calen Pennington
3672c9a292
Make find_matching_* work during split bulk operations
2014-08-27 16:29:47 -04:00
Don Mitchell
192d701899
Code review changes re split import/export, create_xblock
2014-08-11 12:13:31 -04:00
Don Mitchell
f69ef41c21
Disable fetching by version guid for now
2014-08-08 15:00:48 -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
Don Mitchell
6074e0b117
Split get_courses_for_wiki implementation [LMS-2914]
...
- Move Mongo tests to mixed ddt tests
- Check if `fields` is None before updating search targets
- Fix for double course version
2014-07-21 17:17:48 -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
Nimisha Asthagiri
d7cf8b7fa0
Implement close_connections and drop_database on modulestores.
2014-07-14 16:01:10 -04:00
Don Mitchell
639658913d
Refactor split migrator
...
LMS-2936
Also, a bunch of ancillary cleanups.
Conflicts:
common/lib/xmodule/xmodule/modulestore/tests/test_publish.py
Conflicts:
cms/djangoapps/contentstore/management/commands/migrate_to_split.py
cms/djangoapps/contentstore/management/commands/tests/test_rollback_split_course.py
common/lib/xmodule/xmodule/modulestore/__init__.py
common/lib/xmodule/xmodule/modulestore/mixed.py
common/lib/xmodule/xmodule/modulestore/mongo/draft.py
common/lib/xmodule/xmodule/modulestore/split_migrator.py
common/lib/xmodule/xmodule/modulestore/split_mongo/split.py
common/lib/xmodule/xmodule/modulestore/tests/test_split_migrator.py
common/lib/xmodule/xmodule/modulestore/tests/test_split_w_old_mongo.py
2014-07-14 11:20:29 -04:00
Mat Peterson
e39cc5dfa3
Switch offering to course and run
2014-07-11 15:40:08 -04:00
Nimisha Asthagiri
ea32529866
Fix all modulestore calls to pass in user ids.
2014-07-09 21:10:12 -04:00
Nimisha Asthagiri
f5abef88c2
LMS-2947 remove get_error_courses in Split.
...
LMS-2950 move delete_course to Mongo.
2014-07-09 21:10:12 -04:00
Nimisha Asthagiri
eecff6e0aa
ModulestoreEnum class.
2014-06-27 14:37:35 -04:00
Nimisha Asthagiri
a9213509c3
Enable Mixed Modulestore STUD-1540
...
Refactor get_parent_locations STUD-1663
2014-06-26 18:00:11 -04:00
Calen Pennington
cfcbdc0145
Move to OpaqueKey implementations from the external library
...
[LMS-2757]
2014-05-29 17:03:35 -04:00
Don Mitchell
62bccd4e93
Split mongo correctly serializes and deserialized references
...
STUD-1592, STUD-1603, LMS-2642
2014-05-28 08:29:13 -04:00
Don Mitchell
ded28af8b4
Make Locators comply with UsageKey accessors
2014-05-12 15:35:54 -04:00
Calen Pennington
0d88379eeb
Make course ids and usage ids opaque to LMS and Studio [partial commit]
...
This commit adds all of cms.
These keys are now objects with a limited interface, and the particular
internal representation is managed by the data storage layer (the
modulestore).
For the LMS, there should be no outward-facing changes to the system.
The keys are, for now, a change to internal representation only. For
Studio, the new serialized form of the keys is used in urls, to allow
for further migration in the future.
Co-Author: Andy Armstrong <andya@edx.org >
Co-Author: Christina Roberts <christina@edx.org >
Co-Author: David Baumgold <db@edx.org >
Co-Author: Diana Huang <dkh@edx.org >
Co-Author: Don Mitchell <dmitchell@edx.org >
Co-Author: Julia Hansbrough <julia@edx.org >
Co-Author: Nimisha Asthagiri <nasthagiri@edx.org >
Co-Author: Sarina Canelake <sarina@edx.org >
[LMS-2370]
2014-05-07 12:56:43 -04:00
Don Mitchell
0895e90ab8
Generate split test data via split
2014-03-12 15:15:47 -04:00
Don Mitchell
542b146f2f
Split: add schema version and drop pretty_id (was placeholder looking for purpose)
...
STUD-1359
2014-03-12 11:30:44 -04:00
Don Mitchell
d754791213
Make course_id a required arg to split.create_course
...
and remove attempt to make it unique. Instead raise exception on dupe.
STUD-1359
2014-03-06 17:21:10 -05:00
Calen Pennington
9126777ed7
Add test of local_resource_url in AcidBlock
2014-02-25 14:01:37 -05:00
Don Mitchell
b8ea7f3c43
update_item and other refactorings continued
2014-02-05 10:24:24 -05:00
Calen Pennington
417fe21d05
Enable pure XBlocks, but behind a feature flag
...
[LMS-226]
[LMS-2013]
2014-01-10 11:40:03 -05:00
Don Mitchell
a07896dacc
Set definition_locator on in-memory xblocks
2014-01-09 12:39:39 -05:00
Don Mitchell
b7368ef69a
Change course_id to package_id
...
on new Locators to make it clear that they have a different syntax
than Location.course_id altho they represent the same info.
2013-12-20 16:16:50 -05:00
Don Mitchell
a46e112a04
Improve test coverage
...
and fix found errors.
2013-12-20 10:44:01 -05:00
Don Mitchell
b776590226
Rename BlockUsageLocator's block_id field from usage_id
...
usage_id implies self-sufficiency. The block_id is relative to its structure.
2013-12-17 12:15:32 -05:00
Don Mitchell
fbc68df88b
Ensure bootstrapping tests start w/ clean slate.
2013-10-16 16:54:31 -04:00
Don Mitchell
59b31474ca
Separate db config from modulestore config parms
...
use to instantiate loc_mapper
test loc_mapper injection into split modulestore
2013-09-26 12:57:40 -04:00
Don Mitchell
fc131fa841
Add InheritanceKVS and standardize inherited attr patterns
2013-09-06 12:19:50 -04:00