-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Integrate visual styling into the course outline #4549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
22d996f
Studio: course outline revised styling with reference templates
talbs 8db70ce
Integrate visual styling into the course outline
andy-armstrong 31d8f51
Studio: outline UI revisions:
talbs 5ab90d7
Fix most bokchoy tests
benmcmorran f809149
Apply code review comments and fix tests
andy-armstrong d828647
Correct publish titles, code review feedback.
beb448a
Studio: addressing outline UI PR feedback:
talbs c52b4f1
Add test fixes and fix expand collapse behavior
benmcmorran 767487a
Studio: further outline UI revisions + PR feedback
talbs 74f4c18
Include edited/published_by for container page only
dan-f bb9fae5
Add tests for course outline warning messages
benmcmorran File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ | |
| from contentstore.tests.utils import CourseTestCase | ||
| from contentstore.utils import reverse_course_url | ||
| from contentstore.views.course import course_outline_initial_state | ||
| from contentstore.views.item import create_xblock_info | ||
| from contentstore.views.item import create_xblock_info, VisibilityState | ||
| from xmodule.modulestore.django import modulestore | ||
| from xmodule.modulestore.tests.factories import CourseFactory, ItemFactory | ||
|
|
||
|
|
@@ -123,6 +123,7 @@ def test_json_responses(self): | |
| self.assertEqual(json_response['id'], 'i4x://MITx/999/course/Robot_Super_Course') | ||
| self.assertEqual(json_response['display_name'], 'Robot Super Course') | ||
| self.assertTrue(json_response['published']) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Restore checks of "published" (here and below). |
||
| self.assertIsNone(json_response['visibility_state']) | ||
|
|
||
| # Now verify the first child | ||
| children = json_response['child_info']['children'] | ||
|
|
@@ -131,7 +132,8 @@ def test_json_responses(self): | |
| self.assertEqual(first_child_response['category'], 'chapter') | ||
| self.assertEqual(first_child_response['id'], 'i4x://MITx/999/chapter/Week_1') | ||
| self.assertEqual(first_child_response['display_name'], 'Week 1') | ||
| self.assertTrue(first_child_response['published']) | ||
| self.assertTrue(json_response['published']) | ||
| self.assertEqual(first_child_response['visibility_state'], VisibilityState.unscheduled) | ||
| self.assertTrue(len(first_child_response['child_info']['children']) > 0) | ||
|
|
||
| # Finally, validate the entire response for consistency | ||
|
|
@@ -144,7 +146,7 @@ def assert_correct_json_response(self, json_response): | |
| self.assertIsNotNone(json_response['display_name']) | ||
| self.assertIsNotNone(json_response['id']) | ||
| self.assertIsNotNone(json_response['category']) | ||
| self.assertIsNotNone(json_response['published']) | ||
| self.assertTrue(json_response['published']) | ||
| if json_response.get('child_info', None): | ||
| for child_response in json_response['child_info']['children']: | ||
| self.assert_correct_json_response(child_response) | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note (somewhat for myself) that a never-published unit will "have changes".