Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
b2b03296
Unverified
Commit
b2b03296
authored
3 years ago
by
Michael Terry
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #28288 from edx/mikix/cleanup
chore: remove unused serialized field
parents
8fe24a44
beb84bb4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openedx/core/djangoapps/courseware_api/serializers.py
+0
-1
0 additions, 1 deletion
openedx/core/djangoapps/courseware_api/serializers.py
openedx/core/djangoapps/courseware_api/tests/test_views.py
+0
-3
0 additions, 3 deletions
openedx/core/djangoapps/courseware_api/tests/test_views.py
with
0 additions
and
4 deletions
openedx/core/djangoapps/courseware_api/serializers.py
+
0
−
1
View file @
b2b03296
...
...
@@ -107,7 +107,6 @@ class CourseInfoSerializer(serializers.Serializer): # pylint: disable=abstract-
can_view_legacy_courseware
=
serializers
.
BooleanField
()
is_staff
=
serializers
.
BooleanField
()
course_access
=
serializers
.
DictField
()
can_load_courseware
=
serializers
.
DictField
(
source
=
'
course_access
'
)
# can be removed once MFE updates
notes
=
serializers
.
DictField
()
marketing_url
=
serializers
.
CharField
()
celebrations
=
serializers
.
DictField
()
...
...
This diff is collapsed.
Click to expand it.
openedx/core/djangoapps/courseware_api/tests/test_views.py
+
0
−
3
View file @
b2b03296
...
...
@@ -294,9 +294,6 @@ class CourseApiTestViews(BaseCoursewareTests, MasqueradeMixin):
else
:
assert
not
response
.
data
[
'
course_access
'
][
'
has_access
'
]
# Remove this once can_load_courseware is also removed
assert
response
.
data
[
'
course_access
'
]
==
response
.
data
[
'
can_load_courseware
'
]
def
test_streak_data_in_response
(
self
):
"""
Test that metadata endpoint returns data for the streak celebration
"""
CourseEnrollment
.
enroll
(
self
.
user
,
self
.
course
.
id
,
'
audit
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment