Commit Graph

7928 Commits

Author SHA1 Message Date
Calen Pennington
67783f8d3e Sample more frequently, and always record unexpected cache misses 2015-06-26 11:17:53 -04:00
Calen Pennington
ec2e90f539 Improve the structure cache metrics with a course context, more standardized from_cache tag, and compression sizes 2015-06-26 11:17:53 -04:00
Calen Pennington
a25f91da69 Fix XBlock inheritance ordering. XBlockMixin and derivatives should always come after XBlock and derivatives 2015-06-26 11:05:38 -04:00
Brian Talbot
5c8ef9a92e removing extra bold font-weight (800) from style rules/typeface files 2015-06-25 22:49:54 -04:00
Syed Hassan Raza
2ca1d0ef78 fix the source_version xblock after discard changes
formatting changes
2015-06-25 16:19:29 -04:00
Kyle McCormick
4d6cefcc3f Merge pull request #8665 from edx/mekkz/course-overviews-fix
MA-879 Fix bug in course_start_datetime_text
2015-06-25 15:04:31 -04:00
Kyle McCormick
8c505e6b36 MA-879 Fix bug in course_start_datetime_text 2015-06-25 14:16:56 -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
Calen Pennington
324d4785c1 Include stack traces when counting calls in unit tests 2015-06-25 13:58:00 -04:00
Nimisha Asthagiri
8b5e5c5910 Merge branch 'release' 2015-06-25 13:11:41 -04:00
Nimisha Asthagiri
4b64316425 Merge branch 'rc/2015-06-24' into release 2015-06-24 15:12:05 -04:00
Marco Morales
2dfca626a7 Merge pull request #8151 from edx/marco/capa-styling
Updated styling for basic capa problems (multiple choice, dropdown, checkboxes, numerical input and text input) including support for mobile app experience.
2015-06-24 09:05:34 -04:00
Adam Palay
b1346fc747 add tests for structure cache
use default cache for tests
add test for when cache isn't configured
add test for dummy cache
noop if no cache found
2015-06-23 23:27:26 -04:00
David Ormsbee
39ab0f31dc Cache SplitMongo course structures in memcached.
This is primarily to reduce load on MongoDB, where we've lately
had performance problems that we suspect are caused by very
large course structures being evicted from MongoDB's cache. This
may potentially give us a path to better performance as well,
but that's not the goal of this commit.

Surprisingly, LZ4 seemed to actually run more slowly than zlib
for this. Possibly because of some overhead in the Python
bindings? GZip was also surprisingly slow given that it uses
zlib underneath (something like 5x slower).

Use separate cache backend for caching structures.

Abstract out course structure cache.

add datadog metrics for compressed course structure sizes

Since we're using a different cache background, we don't need to have a cache prefix

Use dummy cache backend for tests.

Fallback to default cache if course_structure_cache doesn't exist.
2015-06-23 23:24:05 -04:00
Diana Huang
ecd237396e Merge pull request #8617 from edx/diana/course-tab-cleanup
Switch tabs to use ugettext_noop for titles.
2015-06-23 12:33:06 -04:00
Diana Huang
e6cbff47b7 Switch tabs to use ugettext_noop for titles. 2015-06-23 11:08:41 -04:00
Kyle McCormick
aa5e2f49bd Fixes tests, adds internationalized strings for new state tooltips, corrected tooltip javascript, etc. 2015-06-23 10:27:22 -04:00
David Ormsbee
8718dc13ca Cache SplitMongo course structures in memcached.
This is primarily to reduce load on MongoDB, where we've lately
had performance problems that we suspect are caused by very
large course structures being evicted from MongoDB's cache. This
may potentially give us a path to better performance as well,
but that's not the goal of this commit.

Surprisingly, LZ4 seemed to actually run more slowly than zlib
for this. Possibly because of some overhead in the Python
bindings? GZip was also surprisingly slow given that it uses
zlib underneath (something like 5x slower).

Use separate cache backend for caching structures.

Abstract out course structure cache.

add datadog metrics for compressed course structure sizes

Since we're using a different cache background, we don't need to have a cache prefix

Use dummy cache backend for tests.

Fallback to default cache if course_structure_cache doesn't exist.
2015-06-22 23:21:19 -04:00
Kyle McCormick
1726c136fa MA-772 create app course_overviews for caching course metadata 2015-06-22 18:33:12 -04:00
Kyle McCormick
328ed9270f Add new testing decorator check_mongo_calls_range 2015-06-22 17:38:53 -04:00
Sarina Canelake
548d0b662a Remove hinting templates as 'tab:' definition fails on Split 2015-06-22 11:20:08 -04:00
Waheed Ahmed
fb2f4fdade Fixed two paly_video events emitted on video replay.
TNL-2166
2015-06-22 19:59:36 +05:00
Marco Morales
8acc72975e Iniital refactor of capa styling for basic checkbox and multiple choice problem types, including additional comments to sass styles 2015-06-22 10:50:58 -04:00
John Eskew
c59a3db730 Merge pull request #8537 from edx/jeskew/import_slowdown
Re-nest for the signal-sending, then un-nest.
2015-06-19 14:54:23 -04:00
Sarina Canelake
6d121dc5ad Merge pull request #6786 from Stanford-Online/nick/extended-hint
Extended hint features
2015-06-18 18:34:24 -04:00
John Eskew
843c073f4f Re-nest for the signal-sending, then un-nest.
Change publish signal test to reflect new behavior.
2015-06-18 17:29:34 -04:00
Nick Parlante
77f3069655 Extended Feedback and Hints for Problems
Extends the common capa response types (string, numeric, multiple
choice, checkbox, dropdown) with feedback and hint
capabilities. "Feedback" refers to feedback shown to the student when
they check the problem, looking at their specific answer. "Hints"
refers to a Hint button in LMS which the student can click at any time
to see hints for that problem. The implementation extends the markdown
syntax to include feedback and hints. There are new Feedback-and-Hint
specific templates in Studio when the author clicks to add a new
problem.
2015-06-17 16:25:04 -07: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
Sarina Canelake
c16cbb1826 Merge pull request #8516 from edx/markhoeber-doc2017
Update studio templates to remove fieldset and legend tags
2015-06-17 10:10:09 -04:00
Muzaffar yousaf
7dd7e6525b Merge pull request #8532 from edx/muzaffar/tnl2304-ora1-message-studio
Display error message on ORA 1 components in units Studio.
2015-06-17 17:47:50 +05:00
muzaffaryousaf
4fecf03874 Display error message on ORA 1 components in units in Studio.
TNL-2304
2015-06-17 17:05:09 +05:00
Mark Hoeber
238c8152b3 Update studio templates to remove fieldset and legend tags 2015-06-16 20:42:12 -04:00
Andy Armstrong
585eaf1c9e Merge pull request #8538 from edx/release
Merge hotfix-2015-06-16 back to master
2015-06-16 18:05:34 -04:00
Diana Huang
72a0d19531 Ensure that is_hidden does not affect equality checks. 2015-06-16 15:46:23 -04:00
Greg Price
905512b6c8 Merge pull request #8505 from edx/gprice/discussion-api-course-endpoint
Add discussion API course endpoint
2015-06-16 13:04:16 -04:00
Greg Price
d18b24b051 Add discussion API course endpoint
This endpoint returns course metadata relating to discussions as a
starting point for clients.
2015-06-16 11:27:54 -04:00
Ali Mohammad
54f62a85f6 Merge pull request #8224 from Stanford-Online/kluo/course-creation-after-deletion
Allow course creation after deletion at same URL
2015-06-16 11:24:50 -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
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
1422db5cb4 Allow check_sum_of_calls to measure methods as well as pure functions 2015-06-15 11:07:53 -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
Brandon DeRosier
5c6ccc8f0b Add CCX SQL query/mongo read tests 2015-06-15 09:50:44 -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
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
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
Nimisha Asthagiri
89ea8b31c6 MA-725 responsive_ui indication on responsive xBlocks. 2015-06-12 09:27:21 -04:00
Nimisha Asthagiri
4921ec48c8 MA-792 Course Blocks and Navigation API (user-specific) 2015-06-12 09:27:20 -04:00
Nimisha Asthagiri
037ef3be77 Video module support for student_view_json. 2015-06-12 09:27:17 -04:00
Nimisha Asthagiri
65e330e8b5 Make RequestCache reusable 2015-06-12 09:27:16 -04:00