Matt Drayer
68312bdd2d
Revert "Revert "saleem-latif/WL-328: Multi-Site Comprehensive Theming""
...
2. Update COMPREHNSIVE_THEME_DIR to COMPREHENSIVE_THEME_DIRS
3. Update paver commands to support multi theme dirs
4. Updating template loaders
5. Add ENABLE_COMPREHENSIVE_THEMING flag to enable or disable theming via settings
6. Update tests
7. Add backward compatibility for COMPREHEHNSIVE_THEME_DIR
2016-06-30 15:19:51 +05:00
David Ormsbee
255267d42c
Create forums config model for adjusting connection timeouts.
2016-06-16 13:50:13 -04:00
Hasnain
11454640da
Added middleware to redirect the user from expired course page to all courses page.
2016-06-01 14:56:27 -04:00
Calen Pennington
853bfe7a36
Add a TestCase mixin for enabling caches in tests
...
By default, disable all caching in tests, to preserve test independence.
In order to enable caching, inherit from CacheSetupMixin, and specify
which cache configuration is needed.
[EV-32]
2016-05-04 14:51:30 -04:00
Calen Pennington
18e1610043
Remove the create_user argument to setUp.
...
Instead, use a class attribute to define test behavior. This allows for
easier addition of new mixins over time.
2016-05-04 11:35:55 -04:00
Ben Patterson
c504029b39
Create a third shard for lms unit tests.
...
This will leverage the nose attrib plugin to allow us
to break tests apart on our build system to run
in parallel on separate nodes.
2016-03-17 12:01:42 -04:00
Renzo Lucioni
1f0e61baa9
Speed up comment client tests
...
Also accelerates forums UnicodeTestCases
2016-03-01 14:41:52 -05:00
Christine Lytwynec
76c8e33d49
Fix file upload in IE
2016-01-15 14:54:54 -05:00
Nimisha Asthagiri
c14c146d0e
Merge pull request #10841 from edx/mobile/optimize-course-api
...
Optimize Course Catalog using CourseOverview
2015-12-11 10:03:35 -05:00
Nimisha Asthagiri
2b8441a072
Update Course Catalog to use CourseOverview
2015-12-10 20:37:50 -05:00
Ned Batchelder
43ac38aa87
Add autospec to all mocks
2015-12-09 09:44:22 -05:00
Ned Batchelder
f5d0f3ff55
Remove useless pylint suppressions
2015-11-22 07:41:19 -05:00
Brian Beggs
141e0a93c7
Merge branch 'master' into dj18-release-merge
2015-11-19 13:36:13 -05:00
Sven Marnach
3dcc3c4aae
Clean up occurrences of SlashSeparatedCourseKey in the django_comment_client app.
...
The preferred form is to use CourseKey.from_string() instead of
SlashSeparatedCourseKey.from_deprecated_string().
2015-11-18 16:37:57 +01:00
Sven Marnach
ef563e4285
Add tests for the discussion forum vote events.
2015-11-18 16:22:59 +01:00
Sven Marnach
cf5d276aea
Emit events when users vote on forum posts.
2015-11-18 16:21:50 +01:00
Usman Khalid
6cb62f2697
Rebase upgrade Django to v1.8.5
...
Please note that this is a squshed commit and the work of:
Symbolist, macdiesel, nedbat, doctoryes, muzaffaryousaf and muhammad-ammar
2015-11-10 15:00:19 -05:00
Will Daly
8555630df7
Upgrade djangorestframework to v3.1
...
* Upgrade edx-submissions
* Upgrade edx-ora2
* Upgrade edx-val
* Upgrade edx-proctoring
* Update all edx-platform code that depends on DRF, including:
- auth_exchange
- cors_csrf
- embargo
- enrollment
- util
- commerce
- course_structure
- discussion_api
- mobile_api
- notifier_api
- teams
- credit
- profile_images
- user_api
- lib/api (OAuth2 and pagination)
2015-09-25 12:40:57 -04:00
wajeeha-khalid
1059456d69
added GET method for Threads in Dicussion API
2015-09-10 19:23:38 +05:00
Peter Fogg
607bd538e6
Update discussion events to include team_id when appropriate.
...
TNL-3196
2015-09-04 13:10:39 -04:00
Peter Fogg
38fb6eaede
Add signals for user's discussion activity.
...
These signals are caught by the Teams app and used to update
`last_activity_at` on both teams and individual users.
TNL-2497
2015-08-26 12:07:54 -04:00
Peter Fogg
5c855bdc7b
Fix quality violation.
2015-08-20 15:15:14 -04:00
Mushtaq Ali
c80906596b
Fix Forum Update Issue #TNL-3101
2015-08-20 13:08:41 -04:00
Peter Fogg
90d8774745
Test that discussion admins can delete team posts.
2015-08-07 09:46:12 -04:00
Daniel Friedman
f5840489a0
Allow editing of own post in team discussion
2015-08-06 11:15:55 -04:00
Diana Huang
bc2892f2d3
Merge pull request #9142 from edx/diana/context-aware-comment-client
...
Make context for threads more implicit.
2015-07-31 10:29:29 -04:00
Diana Huang
c12c2933a7
Make context for threads more implicit.
2015-07-31 08:58:01 -04:00
cahrens
9d3e2c1a08
Ignore team membership for privileged users.
2015-07-30 17:06:40 -04:00
cahrens
01c22531d7
Add team permission check on commentable_id.
...
TNL-2864
2015-07-30 13:56:08 -04:00
Ben McMorran
6b08bb20f8
TNL-1943 Support thread context for team discussions
2015-07-28 17:18:45 +00:00
tlindaliu
e0840d2d43
MA-849: Change has_access return type
...
New classes for the return type, and changes to the has_access function and tests to make them compatible.
2015-07-19 20:42:29 -04:00
Ben McMorran
d36eb83a03
Add query count tests
2015-07-15 14:56:04 +00:00
Ben McMorran
a119b723fd
TNL-2389 Use discussion id map cache for thread creation and update
2015-07-13 20:56:50 +00:00
Ben McMorran
ccf20e52b1
TNL-2458 Cache discussion id mapping on course publish
2015-07-13 20:12:52 +00:00
Greg Price
f47ab2bb18
Enforce MAX_COMMENT_DEPTH in discussion_api
2015-06-18 17:18:02 -04:00
David Ormsbee
b92ad0ad13
TNL-2291 Add caching to discussion forum permissions
...
Caches all permissions per user per course. Adds caching functionality to has_permission and replaces all instances of cached_has_permission with has_permission.
2015-06-17 21:08:28 +00:00
Nimisha Asthagiri
d240785b17
MA-722 Render xBlock API Support
2015-06-05 11:18:48 -04:00
Greg Price
8fbfa2398e
Add comment creation to discussion API
2015-05-29 11:05:02 -04:00
Greg Price
f891450f50
Add thread creation to discussion API
...
Also, fix the field-specific error format for all API endpoints.
This requires cs_comments_service commit fdf017c918.
2015-05-26 12:42:40 -04:00
Ned Batchelder
425b766965
Remove TEST_DATA_MOCK_MODULESTORE
2015-03-17 17:21:52 -04:00
Daniel Friedman
934abf3c19
Check access for discussion modules in forums
...
TNL-650
Conflicts:
lms/djangoapps/django_comment_client/base/views.py
lms/djangoapps/django_comment_client/tests/test_utils.py
lms/djangoapps/django_comment_client/tests/utils.py
lms/djangoapps/django_comment_client/utils.py
2015-03-09 15:02:48 -04:00
jsa
13ba2c4a57
Revert "Merge pull request #6771 from edx/dan-f/forums-filter-discussion-modules"
...
This reverts commit 086a2ba783 , reversing
changes made to a44132ec18 . Some minor
code quality issues were addressed as part of this change.
Conflicts:
lms/djangoapps/django_comment_client/base/views.py
lms/djangoapps/django_comment_client/utils.py
2015-03-05 16:57:46 -05:00
stv
4131898180
Remove "nopep" pragma
2015-02-27 11:49:51 -08:00
Jonathan Piacenti
be02613aac
Do event tracking for major forum events.
2015-02-25 23:30:30 +00:00
Daniel Friedman
c8434ef9c8
Check access for discussion modules in forums
...
TNL-650
2015-02-25 11:31:18 -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
David Baumgold
36e77c7463
Fixing pep8 issues
2014-12-11 13:04:49 -05:00
Daniel Friedman
3d91f43030
Support cohorting students via a CSV File.
...
TNL-735
2014-12-10 09:23:04 -05:00
Jesse Zoldak
bf3b87bc64
Clean up all modulestore testcases
...
Move modulestore config for tests to an importable location
Disable pylnt warning for lms imports in common tests
Refactor all testcases that loaded all xml courses
TE-610
TE-489
2014-12-02 07:09:36 -05:00