Commit Graph

30898 Commits

Author SHA1 Message Date
Greg Price
439f72f918 Merge pull request #8524 from edx/gprice/discussion-api-parent-id-fix
Fix bug in discussion API comment update
2015-06-15 14:49:53 -04:00
Will Daly
2175b5baa4 Merge pull request #8509 from edx/will/deprecate-course-about-v0
Deprecate course details API v0
2015-06-15 13:14:32 -04:00
Greg Price
3c48585c8e Fix bug in discussion API comment update
This bug caused any attempt to update a comment with a non-null
parent_id to result in a 500 error without applying the update. The bug
was introduced in commit 2c7590d197.
2015-06-15 12:20:47 -04:00
Calen Pennington
9821323946 Merge pull request #8504 from cpennington/bdero/ccx-query-tests
A version of #8260 that is consistent on jenkins and locally
2015-06-15 11:51:33 -04:00
Sarina Canelake
09425c3d8f Merge pull request #8402 from edx/sarina/annotate-middleware
Fix dark lang and django.middleware.locale behaviors LOC-72 LOC-85
2015-06-15 11:29:15 -04:00
Calen Pennington
b06d256f99 Clear all caches before measure FieldOverride performance 2015-06-15 11:10:27 -04:00
Calen Pennington
e4bc328c3a Reduce the number of queries when walking parents in MongoModuleStore by avoiding cache misses on the data due to missing runs 2015-06-15 11:09:43 -04:00
Calen Pennington
67bde5e2e9 Measure XBlock instantiations in FieldOverride performance tests 2015-06-15 11:08:57 -04:00
Calen Pennington
1422db5cb4 Allow check_sum_of_calls to measure methods as well as pure functions 2015-06-15 11:07:53 -04:00
Calen Pennington
5962c4eb8f Better simulate a request happening in the LMS in FieldOverride performance tests 2015-06-15 11:06:45 -04:00
Calen Pennington
7da8eb1fdb Delay constructing the set of mongo calls until they're needed 2015-06-15 09:50:45 -04:00
Calen Pennington
984eb0a436 Use the more abstract api for parsing UsageKeys in mongo/base.py 2015-06-15 09:50:44 -04:00
Calen Pennington
1e0163a27a Make RequestCache.clear_request_cache a classmethod 2015-06-15 09:50:44 -04:00
Brandon DeRosier
5c6ccc8f0b Add CCX SQL query/mongo read tests 2015-06-15 09:50:44 -04:00
Marko Jevtić
410b9282af Merge pull request #8330 from edx/mjevtic/SOL-835
(SOL-835) Addressing flakiness of the reindexing bokchoy acceptance test
2015-06-15 15:34:25 +02:00
Sven Marnach
710c211033 Merge pull request #8474 from open-craft/smarnach/hide-discussion-tab
Add feature flag to allow hiding the discussion tab for individual courses.
2015-06-14 22:56:19 +02:00
Sven Marnach
0e80f62c63 Add Sven Marnach to the AUTHORS file. 2015-06-14 20:39:32 +02:00
Sven Marnach
52f56ddd37 Add feature flag to allow hiding the discussion tab for individual courses. 2015-06-14 20:36:45 +02:00
Sarina Canelake
ed2f73e6d2 Add i18n regression tests (LOC-72, LOC-85) 2015-06-12 18:14:26 -04:00
Sarina Canelake
7b09ab5e00 dark_lang: only allow released langs in accept header LOC-72, LOC-85
Only return languages we've actually released LOC-85
Perform fuzzy matching to greedily serve the best released language LOC-72
2015-06-12 18:14:26 -04:00
Sarina Canelake
e4cd2982d4 Store released dark_lang codes as all lower-case 2015-06-12 18:14:25 -04:00
Sarina Canelake
182beed2b6 Port django.utils.translation.trans_real.parse_accept_lang_header from Django 1.8
Add to dark_lang middleware
2015-06-12 18:14:25 -04:00
Sarina Canelake
d312d0e152 Port django.middleware.locale.LocaleMiddleware from Django 1.8 2015-06-12 18:14:24 -04:00
Adam
5ceea7a0a9 Merge pull request #8512 from edx/merge-release-into-master
Merge release into master
2015-06-12 17:13:02 -04:00
Adam Palay
b199a72c62 Merge remote-tracking branch 'origin/release' into merge-release-into-master
Conflicts:
	cms/djangoapps/contentstore/views/course.py
2015-06-12 16:22:06 -04:00
Calen Pennington
83fce4d61f Merge pull request #8395 from jazkarta/ccx-custom-ids
MIT CCX: Use CCX Keys
2015-06-12 16:19:12 -04:00
Adam
21e338f743 Merge pull request #8506 from edx/diana/fix-tab-duplication
Prevent duplication of tabs with different names.
2015-06-12 16:16:35 -04:00
Will Daly
c31a510607 Deprecate course details API v0 2015-06-12 15:59:20 -04:00
Ben Patterson
b4c4e818d7 Merge pull request #8493 from edx/benp/allow-for-flaky-jun2015
Make addCleanup idempotent.
2015-06-12 15:03:59 -04:00
Sarina Canelake
8af8d257c9 Merge pull request #8508 from edx/sarina/20150612-update-translations
Update translations (autogenerated message)
2015-06-12 15:03:30 -04:00
Sarina Canelake
e0dbb0758c Update translations (autogenerated message) 2015-06-12 14:56:59 -04:00
cewing
cb431ccb24 MIT CCX: Use CCX Keys: further revisions in response to code review
only require ccx-keys once

get_current_ccx will now expect a CourseKey instance as its argument, and will raise a value error if this expectation is not met.

document reason for local import

add special methods to pass attribute setting and deletion through to the wrapped modulestore

add __setattr__ and __delattr__ per code review, update __init__ to work with new methods

style change per code review

clean up context manager usage as recommended by code review

remove unused code and imports

convert modulestore type tests to use the `get_modulestore_type` api, remove unused imports

code quality: add docstrings

increase coverage for utils tests

fix bug found in testing.

increase test coverage on modulestore wrapper

code quality fixes

code-quality: ignore import error, but mark site for future consideration
2015-06-12 11:20:30 -07:00
Diana Huang
a41d9a5491 Prevent duplication of tabs with different names. 2015-06-12 13:39:51 -04:00
Will Daly
7a3c1f04dd Merge pull request #8502 from edx/alasdair/ECOM-1724-footer-a11y-update
ECOM-1724 a11y footer updates
2015-06-12 13:22:11 -04:00
Calen Pennington
c1ace04483 Merge pull request #8391 from edx/alawibaba/plat5892
First draft.
2015-06-12 12:39:38 -04:00
Calen Pennington
b9f5eef4ae Log an exception before swallowing it in a KeyValueMultiSaveError 2015-06-12 12:37:49 -04:00
Calen Pennington
0f6ef44476 Don't pass in a user object to DjangoUserStateClient 2015-06-12 12:37:49 -04:00
Ali Mohammad
69772ef20e Convert access to StudentModuleHistory to use the UserStateClient API. 2015-06-12 12:37:34 -04:00
Ben Patterson
4b6e2f4880 Merge pull request #8471 from edx/benp/flaky-cms-component-jun2015
Fix flaky lettuce test. TNL-1452
2015-06-12 12:28:38 -04:00
Usman Khalid
eb81e52dc4 Merge pull request #8477 from edx/usman/plat676-bulk_operations-2
In bulk_operations() exit, emit signals at the end.
2015-06-12 21:08:24 +05:00
Will Daly
2fd68dc983 ECOM-1724 a11y footer updates
* Add action text to social media links.
* Make the alt text for mobile links more descriptive.
2015-06-12 11:34:39 -04:00
Nimisha Asthagiri
1a15bd7bed Merge pull request #8209 from edx/mobile/xblock-support
Course Blocks + Navigation API (feature flagged) for Mobile
2015-06-12 11:25:23 -04:00
David Ormsbee
3ec2206410 Merge pull request #8501 from mcgachey/lti-auth-fix
[LTI Provider] Basic LTI authentication
2015-06-12 11:11:32 -04:00
Renzo Lucioni
d61cee95a8 Merge pull request #8500 from edx/renzo/commerce-cleanup
Avoid POSTing unnecessary payment processor parameter
2015-06-12 11:09:59 -04:00
Renzo Lucioni
3de0af1616 Merge pull request #8498 from edx/release
Release
2015-06-12 11:09:16 -04:00
Ben Patterson
d96b581485 Fix flaky lettuce test. TNL-1452 2015-06-12 10:32:28 -04:00
Ben Patterson
04e764d13d Make addCleanup idempotent.
Sometimes this file does not exist depending on when a test failed. Remove it gracefully.
2015-06-12 10:28:06 -04:00
Phil McGachey
c3106bc4bd This change cleans up the work in progress request at #8176
This is an initial authentication implementation that allows LTI users to
log in transparently to edX. The behavior is driven by pilot users at
Harvard; this was the most requested feature.

The patch creates a new database model that maps users' LTI identifiers
to newly-created edX accounts. If an LTI launch comes in with a user_id
field that is not in the database, a new edX account is created with a
random user name and password. This account is then stored in the
database, so that it is permanently associated with the LTI user ID.

This patch takes a simplistic approach to session management. If a user
is logged in with a different account when they perform an LTI launch,
they will be logged out and then re-logged in using their LTI account.

In order to keep the patch simple, I have split out some refactoring
that needs to be done into a separate branch that I'll post once this
has been merged. Since we no longer redirect to the login page, we don't
need to maintain two separate LTI endpoints (one for the LTI launch and
one for authenticated users), or deal with the session management that
requires. There are also multiple fetches of the LtiConsumer object
(one in the view, one in the signature validation) that the later
patch will consolidate into one.

This branch fixes the previous conflicts with the test refactoring
carried out in PR 8240.
2015-06-12 10:21:48 -04:00
Waheed Ahmed
36d321c4e3 Merge pull request #8496 from edx/waheed/plat674-improve-test-with-ddt
Specified number of mongo and split calls in xblock outline handler test with ddt.
2015-06-12 19:14:41 +05:00
Shrhawk
04eff80065 Merge pull request #8495 from edx/shr/bug/tnl-2122-fix-show-enable-import-from-youtube-transcript-button
add name param check_transcripts
2015-06-12 19:07:41 +05:00