Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
215 commits
Select commit Hold shift + click to select a range
dce5bbc
fix TNL-767 When students click "check" without submitting an answer,…
Ayub-Khan Dec 29, 2015
6179c6e
Improve screenreader text and focus management for dashboard course s…
Feb 1, 2016
4c7e3fd
Update UBCPI Xblock to 0.5.1
xcompass Feb 22, 2016
e233321
paginate edxnotes views
muhammad-ammar Dec 9, 2015
840f501
[TNL-3940] Adding pagination in stub server and updating unit tests
ehteshamkafeel Dec 30, 2015
13b14e0
Paginate edxnotes frontend
muhammad-ammar Dec 17, 2015
bfa2ea5
Remove sanitization from python & adding it to the templates.
Jan 13, 2016
71ec1b9
Fixing & adding Bokchoys for edx notes pagination.
Dec 30, 2015
ce57700
hide paging footer when only one page
muhammad-ammar Jan 21, 2016
cd01dc8
clear search input when search results tab is closed
muhammad-ammar Jan 29, 2016
ea89d2e
hide notes tab if feature flag is disabled or harvard notes enabled
muhammad-ammar Feb 3, 2016
ee637c5
Set notes page size to 25
Feb 8, 2016
d226b55
don't catch exception to raise http500
muhammad-ammar Feb 9, 2016
78a61c1
[TNL-4029] Show error if server returns customised error message
ehteshamkafeel Feb 9, 2016
e461374
Registration: don't require terms of service if checkbox is hidden
Feb 24, 2016
1e8163e
Test should wait for ajax calls to finish before checking the changes
Muddasser Feb 25, 2016
d18f3f6
Improve logging in cert gen.
awaisdar001 Feb 25, 2016
e1035c7
Allowed staff/admin of course to view ccx coach dashboard
amir-qayyum-khan Jan 14, 2016
8be8ac8
Refactored ccx coach tab plugin
amir-qayyum-khan Feb 25, 2016
e87bb74
Add app_label to models to prevent Django1.9 warnings.
Feb 25, 2016
5ef5263
add aria-controls to buttons and remove label from dropdown container
Feb 26, 2016
9513107
Dev user should be able to specify LETTUCE_BROWSER.
Feb 19, 2016
34e4144
Clean up based on feedback.
Feb 26, 2016
33e47d3
Course Overview migrations fix: Readd the Facebook URL field.
nasthagiri Feb 26, 2016
b4cbc66
Fixed test_cancelling_redirects failing on Chrome
Feb 26, 2016
78c8793
Weekly ORA release
Feb 25, 2016
e5108dc
Merge pull request #11673 from edx/mobile/undo_facebook_url_removal
nasthagiri Feb 26, 2016
cfa7cd3
Revert "Pass DOM element, not jQuery object to XBlock initialisation."
bradenmacdonald Feb 26, 2016
2c7ddb1
Delegating the conditional to the has_configuration_Set method, which…
felipemontoya Feb 10, 2016
9d0ce13
Merge pull request #11667 from edx/efischer/ora_release
Feb 26, 2016
daadc1e
Merge pull request #11674 from edx/revert-11433-smarnach/studio-add-x…
bradenmacdonald Feb 26, 2016
890d1bf
Merge pull request #11505 from eduNEXT/fmo/condition_microsite_enable…
mattdrayer Feb 26, 2016
cc0c577
Replace instances of courseware in Advanced Settings help with "course"
catong Feb 25, 2016
9984bbc
Make Capa problems do initial load without AJAX.
Feb 9, 2016
13682e4
Cache edxmako request context computation.
Feb 15, 2016
7a129b0
Noop the 0008 and conditional the 0009 migration
jibsheet Feb 26, 2016
2e422b2
Merge pull request #11492 from edx/ormsbee/inline_capa
Feb 26, 2016
049fbb1
Merge pull request #11668 from edx/carol/DOC-2703
catong Feb 26, 2016
a7a1aff
Merge pull request #11676 from edx/jibsheet/facebook_url_noop_migration
nedbat Feb 27, 2016
953014c
Merge pull request #11604 from edx/benp/lettuce-browser
Feb 27, 2016
18e1aaa
Ensuring page is loaded belongs in the page object.
Feb 27, 2016
58e1047
Incremented edx-proctoring version for 0.12.12 release
Feb 27, 2016
f09e9f0
Merge pull request #11672 from edx/raees/chrome-bokchoy-test-cancelli…
Feb 29, 2016
03585a4
Merge pull request #11657 from edx/aj/ECOM3688-add-log-in-cert-gen
awaisdar001 Feb 29, 2016
55ab52e
Configure code jail for cms
Qubad786 Feb 29, 2016
4b81f0b
Fix progress exception for credit courses and add unit test.
Ayub-Khan Feb 9, 2016
3dc73c6
Display studio name properly on empty course page.
Feb 29, 2016
76e66ff
Revert "Pass DOM element, not jQuery object to XBlock initialisation."
bradenmacdonald Feb 26, 2016
bc2914e
Merge pull request #11655 from edx/muddasser-chrome-bokchoy-test_can_…
Muddasser Feb 29, 2016
23a0a6d
Merge pull request #11644 from open-craft/omar/hide-tos
omarkhan Feb 29, 2016
62ccef6
Merge pull request #11685 from edx/hotfix/2016-02-29
adampalay Feb 29, 2016
2586f09
Add option to disable migrations when running tests
symbolist Feb 10, 2016
9e4f14f
Revert "Registration: don't require terms of service if checkbox is h…
Feb 29, 2016
e593edf
Merge pull request #11690 from edx/revert-11644-omar/hide-tos
Feb 29, 2016
0b430fc
Merge pull request #11681 from edx/mushtaq/TNL-4167-fix-studio-name
Feb 29, 2016
e040789
Merge pull request #11603 from edx/usman/migrations-setup
Feb 29, 2016
dd90c55
Create a new CSMHExtended table to hold our new data
cpennington Sep 16, 2015
6f9a391
Implement a BaseStudentModuleHistory
jibsheet Jan 28, 2016
b4ac588
Update reset-test-db.sh for bok-choy
jibsheet Feb 11, 2016
8637198
Document use of --disable-migrations flag
Feb 29, 2016
bd4cc57
Convert to SharedModuleStoreTestCase
Feb 29, 2016
14ad8cd
SharedModuleStoreTestCase conversion for speedup.
Feb 29, 2016
c619e1e
Adding UXPL classnames to headings
Feb 10, 2016
447c189
Merge pull request #11569 from edx/jibsheet/csmh-extended
jibsheet Feb 29, 2016
447eb4c
Speed up course listing tests
Feb 29, 2016
d54e1cf
Merge pull request #11693 from edx/renzo/update-testing-docs
Feb 29, 2016
65e26e3
Move user/admin model creation to class level.
Feb 29, 2016
bec6971
Monkey patch django.db.models.options for faster cache expiry
Feb 29, 2016
b777530
Add SharedModuleStoreTestCase.setUpClassAndTestData() context manager
Feb 29, 2016
9de6b91
Merge pull request #11698 from edx/renzo/speed-up-test-course-listing
Feb 29, 2016
724058a
Check both url and title for the presence of code
Muddasser Feb 26, 2016
650c95f
Merge pull request #11501 from edx/clrux/ac-328-uxpl
Mar 1, 2016
acae281
Merge pull request #11677 from edx/benp/tnl-4151-fix2
Mar 1, 2016
9d74b4d
Merge pull request #11700 from edx/jeskew/my_unittest_speedups
Mar 1, 2016
8b28790
Merge pull request #11699 from edx/bderusha/django-bug-fix-mp
bderusha Mar 1, 2016
aaa3d97
Merge pull request #11707 from edx/muddasser/bokchoy-test_accepting_r…
Muddasser Mar 1, 2016
d8404ba
Add SharedModuleTestCase to git_import tests
Mar 1, 2016
f6cdcdf
Remove sysadmin feature to import course from git into XML modulestore.
Dec 21, 2015
32a29f4
Convert SysadminBaseTestCase to SharedModuleStoreTestCase
Mar 1, 2016
72ce55c
Convert to SharedModuleStoreTestCase
Mar 1, 2016
72b4cf3
Don't hardcode student_module_history
jibsheet Mar 1, 2016
95007a8
Merge pull request #11713 from edx/bderusha/git-add-speedup
bderusha Mar 1, 2016
cd84a9e
Merge pull request #11714 from edx/renzo/sysadmin-xml
Mar 1, 2016
7bde238
Merge pull request #11711 from edx/jeskew/more_unittest_speedup
Mar 1, 2016
80ac3fc
Remove the concept of having more than one course export format tagged.
Mar 1, 2016
327cdaf
Merge pull request #11715 from edx/jibsheet/aws_migrate-ignore-read-r…
jibsheet Mar 1, 2016
a561367
This should not be needed, we specify ATOMIC_REQUESTS on each DB
jibsheet Mar 1, 2016
26f0cd5
Merge pull request #11716 from edx/jeskew/export_format_conversion_re…
Mar 1, 2016
1f0e61b
Speed up comment client tests
Mar 1, 2016
b02d1c1
Merge pull request #11721 from edx/renzo/comment-client-test-speedup
Mar 1, 2016
be7be40
Merge pull request #11478 from Ayub-Khan/ayubkhan/ECOM-3603
Ayub-Khan Mar 1, 2016
d481768
Merge pull request #11691 from edx/jeskew/shared_modulestore_test_cas…
Mar 1, 2016
2ab54f3
Merge pull request #11669 from edx/jeskew/fix_django19_warnings
Mar 1, 2016
209ddc7
Difficulty selectbox in Studio (based on new XBlockAside functionalit…
dmitry-viskov Feb 15, 2016
99e717f
Fix list index out of range in Textbook's chapters. TNL-3848
Feb 25, 2016
b462e63
Merge pull request #11119 from Ayub-Khan/ayubkhan/TNL-767
Ayub-Khan Mar 2, 2016
bfdd188
Merge pull request #11546 from mitocw/feature/aq/allow_staff_view_coa…
Mar 2, 2016
2c8148c
Convert tests for adding advanced problem components from lettuce to …
Feb 24, 2016
3a06534
Remove unused profile name.
Mar 2, 2016
19d9920
Revert "Merge pull request #11523 from edx/perf/speed-up-slow-user-ro…
Mar 2, 2016
637df3e
Merge pull request #11733 from edx/ormsbee/revert_pr_11523
Mar 2, 2016
de3fca3
Quiet the safe sessions logging for expected use case
nasthagiri Mar 2, 2016
9ebfc49
Wait for the Advanced problem tab to be active. Remove the __test__ s…
Mar 2, 2016
ec33db5
Remove more lettuce tests that are covered already in bok choy tests
Mar 2, 2016
315592b
Merge pull request #11732 from edx/christina/remove-profile-name
Mar 2, 2016
a087190
Merge pull request #11734 from edx/security/quiet_safe_sessions
nasthagiri Mar 2, 2016
d46ea87
Merge pull request #11656 from attiyaIshaque/ai/tnl3848-list-index-ou…
awaisdar001 Mar 3, 2016
ca82f14
When using in-frame LTI navigation in IE 10 & 11, problems are not re…
dmitry-viskov Feb 19, 2016
50b6bf2
Registration: don't require terms of service if checkbox is hidden
Feb 29, 2016
64b01e9
Merge pull request #11694 from open-craft/omar/hide-tos
omarkhan Mar 3, 2016
b47a6d5
ECOM-3415 make sure all the xseries programs associated with a course…
schenedx Mar 1, 2016
00b270c
Merge pull request #11675 from edx/rc/2016-03-01
nedbat Mar 3, 2016
010fb68
Added Falky decorator to Chrome flaky tests
Feb 19, 2016
1102412
Merge pull request #11725 from edx/schen/ECOM-3415
schenedx Mar 3, 2016
09a220c
Update translations (autogenerated message)
Mar 3, 2016
516db0d
Bump the Django version to 1.8.10
Mar 1, 2016
ad5cec1
Merge pull request #11598 from edx/raees/chrome-added-flaky-tests
Mar 3, 2016
e3522d1
Mark a flaky test, SOL-1654
Mar 3, 2016
b653e28
Mark two tests flaky. TNL-4190 TNL-4191
Mar 3, 2016
4ca2692
Rename 'clean_headers' to 'header_control'.
Mar 3, 2016
fd4164d
Merge pull request #11737 from edx/release
nedbat Mar 3, 2016
afd0465
Adding the -n option to the Sphinx build invocation so that WARNINGs …
Mar 3, 2016
304fb68
Despite db_index=True, Django didn't generate an index
jibsheet Mar 3, 2016
3195a5c
Merge pull request #11722 from edx/jibsheet/remove-hardcoded-ATOMIC_R…
jibsheet Mar 3, 2016
ccb07f1
Monkey patch django.utils.http.is_safe_url for Django 1.8.10.
Mar 3, 2016
1429a8d
Merge pull request #11744 from edx/pdesjardins/DOC-2638-02
Mar 3, 2016
6650cff
Fix typo in REST path.
Mar 3, 2016
e64a107
Merge pull request #11745 from edx/jibsheet/ensure-student_module_his…
jibsheet Mar 4, 2016
b785690
Merge pull request #11739 from edx/ned/update-translations
nedbat Mar 4, 2016
80fc91b
- Add test content library XML.
Feb 9, 2016
6071d4f
Merge pull request #11742 from edx/ned/flaky-TNL-4190-4191
nedbat Mar 4, 2016
57d2d62
Merge pull request #11741 from edx/ned/flaky-SOL-1654
nedbat Mar 4, 2016
66ae31f
Merge pull request #11747 from edx/pdesjardins/DOC-2250
Mar 4, 2016
8e1e4a4
Use markup HTML helper with Text
robrap Feb 21, 2016
561950a
Merge pull request #11717 from edx/jeskew/django_upgrade_1_8_10
Mar 4, 2016
d398f50
Merge pull request #11490 from edx/jeskew/PLAT_736_fix_content_lib_ex…
Mar 4, 2016
db47e43
Merge pull request #11678 from edx/douglashall/release_edx_proctoring…
Mar 4, 2016
86cd089
Fixed edx-proctoring requirement
Mar 4, 2016
631bfc0
Migrate correctly from scratch also
jibsheet Mar 4, 2016
674f8ea
Merge pull request #11638 from edx/robrap/markup
robrap Mar 4, 2016
d425169
Use markup HTML helper with Text
robrap Feb 21, 2016
2b880d2
Merge pull request #11753 from edx/douglashall/release_edx_proctoring…
Mar 4, 2016
467913a
Fixed edx-proctoring requirement
Mar 4, 2016
2fe0bf5
Fix TNL-3429.
Feb 18, 2016
f1c1c7c
Fix escaping issue in studio xblock wrapper for display name.
Kelketek Mar 2, 2016
01e6fa8
Merge pull request #11654 from edx/zoldak/TE-1201
Mar 4, 2016
56ecc66
Merge pull request #11607 from CredoReference/invalid-display-coursew…
Mar 4, 2016
ba06c89
Delete crowdsource_hinter prototype xmodule.
Mar 4, 2016
11c0094
Merge pull request #11679 from edx/code-jail-configs-cms-demo
Qubad786 Mar 4, 2016
04cadf7
Merge pull request #11697 from open-craft/agaylard/TNL-3429-D
Kelketek Mar 4, 2016
5432ef3
Make it clear that the logger methods are used by xblocks.
Mar 4, 2016
1ff2ec1
Remove deprecated IE6/7 polyfill
stvstnfrd Mar 18, 2015
dbc2b41
Merge pull request #11752 from edx/christina/remove-hinter
Mar 7, 2016
2f3e3a5
Remove unused profile name.
Mar 4, 2016
48a5b95
Use CourseOverview for dump_course_ids
HassanJaveed84 Feb 24, 2016
ec6eccc
Merge pull request #11748 from edx/jibsheet/course_overview_0009_on_m…
jibsheet Mar 7, 2016
e6fcfae
Merge pull request #11751 from edx/christina/remove-profile-name
Mar 7, 2016
fed1d4b
Removing importants from heading styles
Mar 7, 2016
2eabacc
The escaping is unnecessary and confusing to the user.
Mar 7, 2016
b026038
Bump the version of the Drag&Drop XBlock to 2.0.3.
smarnach Mar 7, 2016
40b5f8e
Merge pull request #11761 from edx/clrux/ac-328-removing-importants
Mar 7, 2016
08937ce
Lessening specificity for headings
Mar 7, 2016
6b549bf
Removing importants from heading styles
Mar 7, 2016
c35f5ba
ORA release
Mar 7, 2016
e1889fb
Merge pull request #11763 from edx/christina/remove-unnecessary-escaping
Mar 7, 2016
8502093
Redirect to otto checkout for prof ed courses if enabled
Mar 4, 2016
4f5290e
Merge pull request #11764 from edx/clrux/ac-328-lessening-specificity
Mar 7, 2016
efa289b
Merge pull request #11765 from edx/efischer/ora_bump
Mar 7, 2016
5dcdf9a
Merge pull request #11755 from edx/SOL-1690
mjfrey Mar 7, 2016
fb29981
Merge pull request #11660 from edx/hassan/dump-course-ids-fix
HassanJaveed84 Mar 7, 2016
5f51db0
Merge pull request #11762 from open-craft/smarnach/update-dndv2-version
bradenmacdonald Mar 7, 2016
1a34641
Switch to header_control in contentserver.
Mar 3, 2016
178f5a6
Fixed the other half of forgot password flow accourding to logistration.
waheedahmed Feb 18, 2016
0d6e0ac
Add latin1 decoding to HTTP Headers
Shrhawk Feb 25, 2016
ca936a7
Merge pull request #11580 from edx/waheed/ecom-2947-support-entire-pa…
waheedahmed Mar 8, 2016
7bdc762
Merge pull request #11662 from edx/shr/bug/AN-6713-decoding-errors
Shrhawk Mar 8, 2016
b095651
Escape html/js with other bug fixes .
Mar 1, 2016
5a20f0b
Merge branch 'master' into PERF-272
tobz Mar 8, 2016
e1a13a1
Merge pull request #11709 from edx/muzaffar/fix-notes-bugs
Mar 8, 2016
97ef739
return course end date in credit service and rename flag
ibrahimahmed443 Mar 8, 2016
23ae5f7
Merge pull request #11743 from edx/PERF-272
tobz Mar 8, 2016
812aa63
Upgrade to Django 1.8.11. Remove monkey patch required for v1.8.10.
Mar 8, 2016
cf5e4c9
Merge pull request #11754 from edx/rc/2016-03-08
Mar 8, 2016
a17eff7
Merge pull request #11757 from stvstnfrd/debt/ie67
nedbat Mar 8, 2016
d127fb4
Merge pull request #11626 from ubc/ubcpi-0.5.1
nedbat Mar 8, 2016
7f7886b
Merge pull request #11770 from edx/release
Mar 8, 2016
6490551
MA-2103
Mar 4, 2016
fd2f3b6
Prevent ordering closed courses, and give a good user message.
Mar 8, 2016
91fd6db
Merge pull request #11769 from edx/peter-fogg/disable-order-closed-co…
Mar 9, 2016
4142438
add CourseTalk widget
erm0l0v May 5, 2015
abe330c
Redirect to otto checkout for prof ed courses if enabled
Mar 4, 2016
5e24225
Removing Flaky decorator from lms instructor dashboard test
hasnain-naveed Mar 4, 2016
8df8b25
Merge pull request #11772 from edx/hotfix/2016-03-09
mjfrey Mar 9, 2016
ab8fc07
Merge pull request #10645 from CourseTalk/coursetalk_widget
Mar 9, 2016
5c0ca8c
Merge pull request #11756 from edx/sstudent/MA-2103
Mar 9, 2016
2c3b728
Merge pull request #11749 from edx/hasnain-naveed/SOL-1654
Mar 9, 2016
9251a6d
Always uninstall python packages on the uninstall list before install…
Mar 9, 2016
3ad0a00
Remove course about 'Overview' link/tab.
mtyaka Feb 15, 2016
fd318e0
Merge pull request #11767 from edx/ibrahimahmed443/SOL-1691
Mar 10, 2016
dd0b74f
Upgrading edx-proctoring requirement to 0.12.13
Mar 10, 2016
656913c
Merge pull request #11779 from edx/douglashall/SOL-1691/update_edx_pr…
Mar 10, 2016
770a45b
Merge pull request #11363 from edx/notes-pagination
Mar 10, 2016
6c1f709
Merge pull request #11547 from open-craft/remove-course-about-nav
mtyaka Mar 10, 2016
2b1a7ee
Asynchronous download button for ORA2 data
dylanrhodes Nov 19, 2014
dbb840c
Merge pull request #11773 from edx/release
mjfrey Mar 10, 2016
f092550
Merge pull request #11562 from CredoReference/tags-selectbox-in-studi…
cpennington Mar 10, 2016
a647169
Merge pull request #11167 from edx/christina/ora-data-download
Mar 10, 2016
25e6737
Unbound xblock method requires user id
Feb 23, 2016
2c78813
Merge pull request #11768 from edx/jeskew/upgrade_to_django_1_8_11
Mar 10, 2016
5b5b4eb
Merge pull request #11393 from edx/clytwynec/ac-238
Mar 10, 2016
62bbea6
Merge pull request #11666 from edx/efischer/xblock_binding
Mar 10, 2016
8ab5017
Merge pull request #11777 from edx/zoldak/fix-python-uninstall
Mar 10, 2016
5e7bc8a
Update translations (autogenerated message)
Mar 10, 2016
0812157
Merge pull request #11783 from edx/ned/update-translations
nedbat Mar 11, 2016
eecb6d4
Added master course staff and admins to ccx and fixed same issues rel…
amir-qayyum-khan Feb 23, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,4 @@ Kaloian Doganov <doganov@gmail.com>
Sanford Student <sstudent@edx.org>
Florian Haas <florian@hastexo.com>
Leonardo Quiñonez <leonardo.quinonez@edunext.co>
Dmitry Viskov <dmitry.viskov@webenterprise.ru>
55 changes: 0 additions & 55 deletions cms/djangoapps/contentstore/features/component.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@
Feature: CMS.Component Adding
As a course author, I want to be able to add a wide variety of components

Scenario: I can add single step components
Given I am in Studio editing a new unit
When I add this type of single step component:
| Component |
| Discussion |
| Video |
Then I see this type of single step component:
| Component |
| Discussion |
| Video |

Scenario: I can add HTML components
Given I am in Studio editing a new unit
When I add this type of HTML component:
Expand Down Expand Up @@ -57,24 +46,6 @@ Feature: CMS.Component Adding
| Numerical Input |
| Text Input |

Scenario Outline: I can add Advanced Problem components
Given I am in Studio editing a new unit
When I add a "<Component>" "Advanced Problem" component
Then I see a "<Component>" Problem component
# Flush out the database before the next example executes
And I reset the database

Examples:
| Component |
| Blank Advanced Problem |
| Circuit Schematic Builder |
| Custom Python-Evaluated Input |
| Drag and Drop |
| Image Mapped Input |
| Math Expression Input |
| Problem with Adaptive Hint |


# Disabled 1/21/14 due to flakiness seen in master
# Scenario: I can add Advanced Latex Problem components
# Given I am in Studio editing a new unit
Expand All @@ -89,32 +60,6 @@ Feature: CMS.Component Adding
# | Problem Written in LaTeX |
# | Problem with Adaptive Hint in Latex |

Scenario: I see a prompt on delete
Given I am in Studio editing a new unit
And I add a "Discussion" "single step" component
And I delete a component
Then I am shown a prompt

Scenario: I can delete Components
Given I am in Studio editing a new unit
And I add a "Discussion" "single step" component
And I add a "Text" "HTML" component
And I add a "Blank Common Problem" "Problem" component
And I add a "Blank Advanced Problem" "Advanced Problem" component
And I delete all components
Then I see no components

Scenario: I can duplicate a component
Given I am in Studio editing a new unit
And I add a "Blank Common Problem" "Problem" component
And I add a "Multiple Choice" "Problem" component
And I duplicate the first component
Then I see a Problem component with display name "Duplicate of 'Blank Common Problem'" in position "1"
And I reload the page
Then I see a Problem component with display name "Blank Common Problem" in position "0"
And I see a Problem component with display name "Duplicate of 'Blank Common Problem'" in position "1"
And I see a Problem component with display name "Multiple Choice" in position "2"

Scenario: I can set the display name of a component
Given I am in Studio editing a new unit
When I add a "Text" "HTML" component
Expand Down
6 changes: 3 additions & 3 deletions cms/djangoapps/contentstore/features/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def see_a_multi_step_component(step, category):
if category == 'HTML':
html_matcher = {
'Text': '\n \n',
'Announcement': '<h3>Announcement Date</h3>',
'Zooming Image Tool': '<h3>Zooming Image Tool</h3>',
'E-text Written in LaTeX': '<h3>Example: E-text page</h3>',
'Announcement': '<h3 class="hd hd-2">Announcement Date</h3>',
'Zooming Image Tool': '<h3 class="hd hd-2">Zooming Image Tool</h3>',
'E-text Written in LaTeX': '<h3 class="hd hd-2">Example: E-text page</h3>',
'Raw HTML': '<p>This template is similar to the Text template. The only difference is',
}
actual_html = world.css_html(selector, index=idx)
Expand Down
3 changes: 3 additions & 0 deletions cms/djangoapps/contentstore/features/problem-editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ def my_display_name_change_is_persisted_on_save(step):

@step('the problem display name is "(.*)"$')
def verify_problem_display_name(step, name):
"""
name is uppercased because the heading styles are uppercase in css
"""
assert_equal(name, world.browser.find_by_css('.problem-header').text)


Expand Down

This file was deleted.

This file was deleted.

58 changes: 52 additions & 6 deletions cms/djangoapps/contentstore/tests/test_course_listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from mock import patch, Mock
import ddt

from django.conf import settings
from ccx_keys.locator import CCXLocator
from django.test import RequestFactory
from django.test.client import Client

Expand All @@ -25,11 +27,13 @@
from xmodule.modulestore.tests.factories import CourseFactory, check_mongo_calls
from xmodule.modulestore import ModuleStoreEnum
from opaque_keys.edx.locations import CourseLocator
from opaque_keys.edx.keys import CourseKey
from xmodule.error_module import ErrorDescriptor
from course_action_state.models import CourseRerunState

TOTAL_COURSES_COUNT = 500
USER_COURSES_COUNT = 50

TOTAL_COURSES_COUNT = 10
USER_COURSES_COUNT = 1


@ddt.ddt
Expand Down Expand Up @@ -99,6 +103,15 @@ def test_course_listing_is_escaped(self):
self.assertEqual(response.status_code, 200)
self.assert_no_xss(response, escaping_content)

def test_empty_course_listing(self):
"""
Test on empty course listing, studio name is properly displayed
"""
message = "Are you staff on an existing {studio_name} course?".format(studio_name=settings.STUDIO_SHORT_NAME)
response = self.client.get('/home')
self.assertEqual(response.status_code, 200)
self.assertIn(message, response.content)

def test_get_course_list(self):
"""
Test getting courses with new access group format e.g. 'instructor_edx.course.run'
Expand All @@ -120,6 +133,39 @@ def test_get_course_list(self):
# check both course lists have same courses
self.assertEqual(courses_list, courses_list_by_groups)

def test_get_course_list_when_ccx(self):
"""
Assert that courses with CCXLocator are filter in course listing.
"""
course_location = self.store.make_course_key('Org1', 'Course1', 'Run1')
self._create_course_with_access_groups(course_location, self.user)

# get courses through iterating all courses
courses_list, __ = _accessible_courses_list(self.request)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe the convention is to use a single _

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • @giocalitri i think we use single _ for gettext and for unused variables we sue __,

  • pylintrc take __ and _ as good name,

    please see

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, i just remembered

self.assertEqual(len(courses_list), 1)

# get courses by reversing group name formats
courses_list_by_groups, __ = _accessible_courses_list_from_groups(self.request)
self.assertEqual(len(courses_list_by_groups), 1)

# assert no course in listing with ccx id
ccx_course = Mock()
course_key = CourseKey.from_string('course-v1:FakeOrg+CN1+CR-FALLNEVER1')
ccx_course.id = CCXLocator.from_course_locator(course_key, u"1")

with patch(
'xmodule.modulestore.mixed.MixedModuleStore.get_course',
return_value=ccx_course
), patch(
'xmodule.modulestore.mixed.MixedModuleStore.get_courses',
Mock(return_value=[ccx_course])
):
courses_list, __ = _accessible_courses_list_from_groups(self.request)
self.assertEqual(len(courses_list), 0)

courses_list, __ = _accessible_courses_list(self.request)
self.assertEqual(len(courses_list), 0)

@ddt.data(
(ModuleStoreEnum.Type.split, 'xmodule.modulestore.split_mongo.split_mongo_kvs.SplitMongoKVS'),
(ModuleStoreEnum.Type.mongo, 'xmodule.modulestore.mongo.base.MongoKeyValueStore')
Expand Down Expand Up @@ -147,8 +193,8 @@ def test_errored_course_global_staff(self, store, path_to_patch):
self.assertEqual(courses_list_by_groups, [])

@ddt.data(
(ModuleStoreEnum.Type.split, 5),
(ModuleStoreEnum.Type.mongo, 3)
(ModuleStoreEnum.Type.split, 3),
(ModuleStoreEnum.Type.mongo, 2)
)
@ddt.unpack
def test_staff_course_listing(self, default_store, mongo_calls):
Expand Down Expand Up @@ -255,8 +301,8 @@ def test_get_course_list_with_invalid_course_location(self, store):
)

@ddt.data(
(ModuleStoreEnum.Type.split, 150, 505),
(ModuleStoreEnum.Type.mongo, USER_COURSES_COUNT, 3)
(ModuleStoreEnum.Type.split, 3, 13),
(ModuleStoreEnum.Type.mongo, USER_COURSES_COUNT, 2)
)
@ddt.unpack
def test_course_listing_performance(self, store, courses_list_from_group_calls, courses_list_calls):
Expand Down
13 changes: 11 additions & 2 deletions cms/djangoapps/contentstore/views/course.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
)
from .item import create_xblock_info
from .library import LIBRARIES_ENABLED
from ccx_keys.locator import CCXLocator
from contentstore import utils
from contentstore.course_group_config import (
COHORT_SCHEME,
Expand Down Expand Up @@ -389,6 +390,11 @@ def course_filter(course):
if isinstance(course, ErrorDescriptor):
return False

# Custom Courses for edX (CCX) is an edX feature for re-using course content.
# CCXs cannot be edited in Studio (aka cms) and should not be shown in this dashboard.
if isinstance(course.id, CCXLocator):
return False

# pylint: disable=fixme
# TODO remove this condition when templates purged from db
if course.location.course == 'templates':
Expand Down Expand Up @@ -433,8 +439,11 @@ def _accessible_courses_list_from_groups(request):
except ItemNotFoundError:
# If a user has access to a course that doesn't exist, don't do anything with that course
pass
if course is not None and not isinstance(course, ErrorDescriptor):
# ignore deleted or errored courses

# Custom Courses for edX (CCX) is an edX feature for re-using course content.
# CCXs cannot be edited in Studio (aka cms) and should not be shown in this dashboard.
if course is not None and not isinstance(course, ErrorDescriptor) and not isinstance(course.id, CCXLocator):
# ignore deleted, errored or ccx courses
courses_list[course_key] = course

return courses_list.values(), in_process_course_actions
Expand Down
4 changes: 2 additions & 2 deletions cms/djangoapps/contentstore/views/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,7 @@ def create_xblock_info(xblock, data=None, metadata=None, include_ancestor_info=F

xblock_info = {
"id": unicode(xblock.location),
"display_name": xblock.display_name_with_default_escaped,
"display_name": xblock.display_name_with_default,
"category": xblock.category,
"edited_on": get_default_time_display(xblock.subtree_edited_on) if xblock.subtree_edited_on else None,
"published": published,
Expand Down Expand Up @@ -1158,4 +1158,4 @@ def _xblock_type_and_display_name(xblock):
"""
return _('{section_or_subsection} "{display_name}"').format(
section_or_subsection=xblock_type_display_name(xblock),
display_name=xblock.display_name_with_default_escaped)
display_name=xblock.display_name_with_default)
Loading