Don Mitchell
6d63d13fa8
Merge pull request #1753 from MITx/bug/christina/studio
...
Converter cleanup.
2013-03-27 12:46:01 -07:00
Will Daly
df1be87739
* Changed 404 errors to 400 errors
...
* Removed duplicate traceback log message
* Now provide string, not Exception, as second tuple item to raise
2013-03-27 15:20:40 -04:00
David Ormsbee
6e3d9608b4
Merge pull request #1754 from MITx/fix/cale/enrollment-integrity-error
...
An integrity error while creating an enrollment just means that our work...
2013-03-27 12:03:26 -07:00
Calen Pennington
122c8567c5
An integrity error while creating an enrollment just means that our work has already been done. Fixes https://www.pivotaltracker.com/story/show/46915947
2013-03-27 15:00:08 -04:00
cahrens
5c78218b13
Don't need to convert to milliseconds.
2013-03-27 14:52:27 -04:00
cahrens
22537ffd3b
Don't need to convert to milliseconds.
2013-03-27 14:51:39 -04:00
Will Daly
99cd3fafdb
Added error handling of XModule processing errors to CMS
...
Added tests for SchematicResponse error handling
2013-03-27 14:48:44 -04:00
Will Daly
ac86687fa1
Added exception handling that solves SchematicResponse exceptions
...
causing a 500 error.
When XModule raises a ProcessingError during an AJAX request,
this module_render now returns a 404 to further reduce number of 500
responses.
2013-03-27 14:33:59 -04:00
Victor Shnayder
b0356e32b2
Merge pull request #1589 from MITx/peter/symbolic
...
Added support for superscripts in variables
2013-03-27 10:40:50 -07:00
Victor Shnayder
eca18a1237
Merge pull request #1752 from MITx/fix/will/bug_294
...
Fix bug 294
2013-03-27 10:39:42 -07:00
Will Daly
cddc868656
Login URL resolves differently in LMS and CMS, which breaks login_test
...
when loaded by rake test_cms
I moved the test into lms/courseware/tests so they run correctly.
2013-03-27 13:01:10 -04:00
cahrens
227a5e8266
Delete converters, move unit tests to test_fields, add new additional test cases.
2013-03-27 12:56:06 -04:00
Will Daly
15ea32b095
Fixed bug 294, caused by unicode encoding error when creating logging
...
strings.
Added unit tests that verify the fix.
2013-03-27 12:53:58 -04:00
Brian Talbot
3a4bdf19fb
studio - tweaking footer navigation for tender widget label
2013-03-27 12:26:49 -04:00
brianhw
a04881ceda
Merge pull request #1740 from MITx/fix/vik/peer-image-grading
...
Fix/vik/peer image grading
2013-03-27 09:06:54 -07:00
Vik Paruchuri
7101c76016
comment on rewrite links change
2013-03-27 12:02:32 -04:00
Will Daly
6edee96caf
Added "Staff Debug Info" prefix to traceback message.
2013-03-27 11:24:16 -04:00
Will Daly
0f5e8c5f3b
pep8 fixes
2013-03-27 11:17:21 -04:00
Will Daly
5bc44e50da
Changed error messages to account for NumericalResponse formatting,
...
which is the only other response type to use StudentInputError.
2013-03-27 11:13:31 -04:00
Will Daly
8252ba15df
Changed error message for StudentInputError for non-staff to
...
a generic message. Otherwise, the default exception messages
are cryptic for students (e.g. "cannot convert string to float")
2013-03-27 11:02:30 -04:00
Brian Talbot
754e30240d
studio - adjusting tender widget window height based on field removal
2013-03-27 11:01:25 -04:00
Will Daly
285e3ee1ed
Capa response now displays full stack trace on student input error
...
if the user is a staff member.
Otherwise, it displays just the exception message.
2013-03-27 10:49:47 -04:00
Victor Shnayder
8905343f80
Merge pull request #1744 from MITx/fix/diana/image-response-show-answer
...
Fix 500 errors for bug #289
2013-03-27 07:14:38 -07:00
Victor Shnayder
2cf815ae01
Merge pull request #1750 from MITx/fix/cale/anonymous-modx-dispatch
...
Return a 403 when an anonymous user attempts to hit modx_dispatch. Fixes...
2013-03-27 07:13:05 -07:00
Victor Shnayder
0e7cf8e782
Merge pull request #1751 from MITx/fix/cale/comment-client-non-json-errors
...
Make the django_comment_client return errors that can't be parsed as JSO...
2013-03-27 07:12:20 -07:00
Victor Shnayder
68902b8039
Merge pull request #1747 from MITx/fix/cdodge/should-return-404-on-bad-asset-request
...
if we parse an invalid location in the content store middleware, then re...
2013-03-27 07:09:38 -07:00
Christina Roberts
d4eca16f04
Merge pull request #1745 from MITx/feature/rocha/fix-advertised-start
...
Display advertised date correctly if it is an ISO date
2013-03-27 06:23:57 -07:00
Christina Roberts
093ac4a2a2
Merge pull request #1749 from MITx/fix/btalbot/studio-smoothscroll
...
studio - corrected JQ selector for smoothscrolling in-page links
2013-03-27 06:23:31 -07:00
Calen Pennington
521843876e
Make the django_comment_client return errors that can't be parsed as JSON just as simple strings when in an ajax context
2013-03-27 08:10:25 -04:00
Calen Pennington
2c0e5b82ff
Return a 403 when an anonymous user attempts to hit modx_dispatch. Fixes https://www.pivotaltracker.com/story/show/46916015 and https://www.pivotaltracker.com/story/show/46916029
2013-03-27 07:29:22 -04:00
Calen Pennington
772e805eb6
Merge pull request #1748 from MITx/fix/cdodge/limit-fields-in-metadata-cache-computation
...
optimize the result-set that gets returned from Mongo on metadata inheri...
2013-03-27 03:22:00 -07:00
Brian Talbot
e3c646492c
studio - made provide feedback conditional for logged in users
2013-03-27 01:39:24 -04:00
Brian Talbot
74439746cc
studio - made provide feedback conditional for logged in users
2013-03-27 01:38:36 -04:00
Brian Talbot
2120481738
studio - corrected JQ selector for smoothscrolling in-page links
2013-03-27 01:34:25 -04:00
Brian Talbot
25acab497e
studio - corrected JQ selector for smoothscrolling in-page links
2013-03-27 01:33:04 -04:00
Brian Talbot
6889b2015b
studio - added in revised footer styles and fix for smoothscroll
2013-03-27 01:24:31 -04:00
Chris Dodge
195fd2d1fe
optimize the result-set that gets returned from Mongo on metadata inheritence. We just need the fields which are actually inheritable, so no need to return anything else as it gets filtered out during the computation
2013-03-26 23:48:06 -04:00
Chris Dodge
b0e2c82ad3
actually.. return a 400 rather than a 404 because the request is malformed. Also add unit test.
2013-03-26 20:02:29 -04:00
chrisndodge
8abba39590
Merge pull request #1746 from MITx/feature/cale/metadata-inheritance-caching
...
Use get_many and set_many to cut down on the number of metadata trees to...
2013-03-26 16:28:58 -07:00
Chris Dodge
a44ecdfcd6
if we parse an invalid location in the content store middleware, then return a 404, not a 500
2013-03-26 16:45:47 -04:00
Calen Pennington
b975d4d90c
Fix tests
2013-03-26 16:43:58 -04:00
Chris Dodge
7a23893557
wip
2013-03-26 16:40:28 -04:00
Calen Pennington
e0343342b0
Fix typo during pylint fixes
2013-03-26 16:36:58 -04:00
Calen Pennington
1f11508ac6
Pylint cleanup
2013-03-26 16:30:55 -04:00
Calen Pennington
90553a1b1d
Use get_many and set_many to cut down on the number of metadata trees to retrieve, and only retrieve them once per call to _load_items
2013-03-26 16:19:34 -04:00
Carlos Andrés Rocha
84f2cc8af6
Display advertised date correctly if it is an ISO date
2013-03-26 15:08:44 -04:00
Brian Talbot
4f7e09e936
Merge branch 'master' into feature/btalbot/studio-tenderwidget
2013-03-26 14:49:14 -04:00
Arthur Barrett
7784a29e61
add simple notes view
2013-03-26 14:47:12 -04:00
Brian Talbot
7e56e98c58
firming up behavior/styling for tender widget - including errors
2013-03-26 14:46:38 -04:00
Diana Huang
967cf7e6f3
Fix a problem where trying to show image response answers
...
was causing 500 errors. Add test to verify that this won't
happen again.
2013-03-26 14:43:41 -04:00