Waqas Khalid
a9b83a5ae9
Merge pull request #7096 from edx/jeskew/PLAT_454_import_500_error
...
PLAT-454: Fix import error when exported course edited.
2015-03-02 19:01:51 +05:00
Waqas Khalid
4b9dc74cad
Add tests for rename import error
2015-03-02 16:09:34 +05:00
Daniel Friedman
0c1cc07b8c
Merge pull request #7131 from edx/django-upgrade/backport-changes/misc-code-changes
...
Django upgrade/backport changes/misc code changes
2015-02-27 11:17:20 -05:00
Daniel Friedman
e622e63c7b
Catch PluginMissingError when generating component templates
2015-02-26 13:46:28 -05:00
Calen Pennington
6c0982b214
Force GitExportError messages to be unicode objects
2015-02-26 12:31:41 -05:00
Dino Cikatic
b597df2e39
Changing search_reindex call to be more inline with DRF convention
2015-02-24 10:58:50 -05:00
Sarina Canelake
6900bd27fe
Merge pull request #7013 from stvstnfrd/pylint/low
...
Fix Pylint violations (easy)
2015-02-20 16:36:52 -05:00
muzaffaryousaf
a31e38416d
Adds content group "Delete" and "Usage" functionality to group configurations page on cms.
...
TNL-1185
2015-02-20 14:56:22 +05:00
stv
69695a8f12
Fix Pylint: W0107(unnecessary-pass)
2015-02-19 19:56:52 -08:00
stv
66f28fd8da
Fix Pylint: I0022(deprecated-pragma)
2015-02-19 19:56:51 -08:00
Waqas Khalid
a730f81132
Missing discussion blackout throwing exception
...
When the list is empty in discussion blackout
on studio side it causes the exception on lms
side when we try to access the discussion. We
were expecting the values and try to parse it
in two values start and end date whereas parsing
empty values to two values causing the exception.
Now values will be parse when value exists. Empty
value will be ignored.
TNL-1390
2015-02-16 19:43:03 +05:00
Muzaffar yousaf
5d4e84eb37
Merge pull request #6984 from edx/muzaffar/studio-group-config-tnl1446
...
Applying unicode to the content experiment display name.
2015-02-13 20:58:41 +05:00
Sarina Canelake
1b07bcdf67
Merge pull request #6949 from stvstnfrd/gettext/empty
...
Remove superfluous empty string check
2015-02-13 08:31:31 -05:00
muzaffaryousaf
bff205579b
Minor refactoring.
...
TNL-1146
2015-02-13 14:56:33 +05:00
muzaffaryousaf
4189bd19f7
Applying unicode to the usage label with test.
...
TNL-1146
2015-02-13 14:54:34 +05:00
cahrens
0d2969909f
Enable course reruns by default.
...
TNL-1380
2015-02-11 17:16:52 -05:00
Adam
296167e531
Merge pull request #6950 from edx/release
...
Release
2015-02-10 16:06:24 -05:00
stv
405f03a6e9
Remove superfluous empty string check
...
Since we began monkey-patching `django.utils.translation` [1], we no
longer need to check for empty strings before translating them.
Previously, the empty string would be translated into translation
metadata. Now, translating the empty string intuitively yields the empty
string.
[1] 86633df3db
2015-02-10 09:47:48 -08:00
Calen Pennington
89d4749057
get the raw DescriptorSystem, not the CombinedSystem when instantiating xmodules (TNL-1226)
...
get the raw DescriptorSystem, not the CombinedSystem when instantiating xmodules (TNL-1226)
quality fixes
remove trailing comma
2015-02-10 09:47:44 -05:00
Martyn James
181d0e46c5
Reorganise reindexing operation
2015-02-09 22:13:25 -05:00
cahrens
d88b0c488e
store.has_course fails on old mongo with unicode chars.
...
xml_importer now calls store.has_course even if create_course_if_not_present is False.
2015-02-09 10:00:33 -05:00
cahrens
78a8fd807a
If existing course is found on import, make sure dest_course_id is correct.
...
TNL-1362
2015-02-09 10:00:33 -05:00
cahrens
149c4e78c1
Update tests in reaction to ModuleStoreTestCase cleanup.
2015-02-09 10:00:32 -05:00
cahrens
a89304b991
Cleanup to make tests agnostic to the modulestore being used.
2015-02-09 10:00:32 -05:00
cahrens
040f96223c
Update for split modulestore as default.
2015-02-09 10:00:14 -05:00
cahrens
f5d3d6050d
Test of draft content depends on old mongo.
2015-02-09 10:00:12 -05:00
cahrens
840b42a9f1
Specify old mongo modulestore.
...
Testing migration from old mongo to split.
2015-02-09 09:26:06 -05:00
cahrens
b5e798062b
Specify old mongo modulestore.
...
Tests verify operation counts for old mongo. Should be extended to split in the future.
2015-02-09 09:26:06 -05:00
cahrens
818a950815
Change to work with split modulestore.
...
Cannot create an xblock in a course that doesn't exist.
2015-02-09 09:26:05 -05:00
cahrens
e9f2f626ca
Change to work with split modulestore.
...
make_asset_key does not start with "/" for split locators.
2015-02-09 09:26:05 -05:00
cahrens
29e235213c
Update for default store being split.
...
Note that now 2 courses can be imported where the only difference between them is run.
2015-02-09 09:26:04 -05:00
cahrens
e66e2eda20
Use old mongo store to create courses.
...
export_courses_to_output_path uses old mongo locator to create directory structure.
2015-02-09 09:26:04 -05:00
cahrens
4e6c532717
Force usage of the old mongo modulestore.
...
The way that assets are accessed (the usage of _id) seems specific to old mongo and fails with split.
2015-02-09 09:26:04 -05:00
cahrens
9e6249ddd6
Enable split for new courses.
2015-02-09 09:26:04 -05:00
Calen Pennington
79fe947a92
Add test of PLAT-417
2015-02-06 09:59:49 -05:00
Christine Lytwynec
4c809fb6ae
Merge pull request #6893 from edx/clytwynec/reshard_cms_lettuce_tests
...
re-shard cms lettuce tests back to 1 shards
2015-02-05 17:29:54 -05:00
polesye
d02d3b7926
TNL-1299: Update default video.
2015-02-05 10:55:36 +02:00
Christine Lytwynec
5ae4681bd8
re-shard cms lettuce tests back to 2 shards
2015-02-04 13:47:01 -05:00
Calen Pennington
b353ed2ea2
Better support specifying of modulestore configuration in test cases
...
The existing pattern of using `override_settings(MODULESTORE=...)` prevented
us from having more than one layer of subclassing in modulestore tests.
In a structure like:
@override_settings(MODULESTORE=store_a)
class BaseTestCase(ModuleStoreTestCase):
def setUp(self):
# use store
@override_settings(MODULESTORE=store_b)
class ChildTestCase(BaseTestCase):
def setUp(self):
# use store
In this case, the store actions performed in `BaseTestCase` on behalf of
`ChildTestCase` would still use `store_a`, even though the `ChildTestCase`
had specified to use `store_b`. This is because the `override_settings`
decorator would be the innermost wrapper around the `BaseTestCase.setUp` method,
no matter what `ChildTestCase` does.
To remedy this, we move the call to `override_settings` into the
`ModuleStoreTestCase.setUp` method, and use a cleanup to remove the override.
Subclasses can just defined the `MODULESTORE` class attribute to specify which
modulestore to use _for the entire `setUp` chain_.
[PLAT-419]
2015-02-04 09:09:14 -05:00
Calen Pennington
03a05fd9d4
Always call super(..).setUp() from setUp
2015-02-04 09:09:14 -05:00
muzaffaryousaf
e5a440ef7a
Refactoring the mocked user service.
...
TNL-836
2015-02-04 12:32:38 +05:00
Ned Batchelder
fb595c89f3
Fix a number of incorrect translation string uses
...
These were found by the new pylint checker I wrote! :)
2015-02-02 22:38:27 -05:00
Dino Cikatic
772908d79d
SOL-302 Hide reindex button if 'ENABLE_COURSEWARE_INDEX' false
2015-02-02 11:22:36 +01:00
Greg Price
20eb84d431
Merge pull request #6828 from edx/gprice/video-upload-ordering
...
Sort Studio video uploads by creation date
2015-01-30 15:08:09 -05:00
Greg Price
3978d91644
Sort Studio video uploads by creation date
...
This provides a better UX for video uploaders, because recent uploads
are readily visible at the beginning of the table.
2015-01-30 13:23:44 -05:00
Muzaffar yousaf
ae102de3be
Merge pull request #6777 from edx/muzaffar/student-info-tnl836
...
Get user anonymous id via xblock user service.
2015-01-30 19:35:26 +05:00
Jonathan Piacenti
f1fff439a6
Add clearer error message for library content blocks on incompatible modulestores.
2015-01-29 20:36:19 +00:00
Jim Abramson
116dba39a8
Merge pull request #6711 from edx/jsa/fix-rerun-exception
...
avoid database error when recording task exception
2015-01-29 12:51:02 -05:00
jsa
ace2bffae6
avoid database error when recording task exception
2015-01-29 11:25:45 -05:00
muzaffaryousaf
3a09af07e5
Fixing the broken tests.
...
TNL-1185
2015-01-29 18:37:22 +05:00