Skip to content
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

feat(mobile_api): Add course access object to mobile course info API #2507

Closed

Conversation

GlugovGrGlib
Copy link
Collaborator

@GlugovGrGlib GlugovGrGlib commented Feb 19, 2024

Description:

This PR is a follow-up to FC-0031 project for Mobile API updates, and extends BlocksInfoInCourseView view with CoursewareAccess data for a user in the form:

"coursewareAccess": {
    "hasUnmetPrerequisites": <bool>,
    "isTooEarly": <bool>,
    "isStaff": <bool>
}

Supporting information:

This PR further extends the mobile BlocksInfoInCourseView that was introduced in the openedx#33296

Testing instructions:

Run a GET /api/mobile/{api_version}/course_info/blocks/?course_id=<course_id>&username=<username>&return_type=dict.

Asses the response, check that fields "coursewareAccess" and "certificate" are in the response body.

@GlugovGrGlib GlugovGrGlib force-pushed the glugovgrglib/add_course_access_to_mobile_info_api branch from 9112aff to fcc995e Compare February 21, 2024 22:03
@GlugovGrGlib GlugovGrGlib changed the title feat: Add course access to mobile course info API feat(mobile API): Add course access to mobile course info API Feb 21, 2024
@GlugovGrGlib GlugovGrGlib changed the title feat(mobile API): Add course access to mobile course info API feat(mobile_api): Add course access to mobile course info API Feb 21, 2024
@GlugovGrGlib GlugovGrGlib changed the title feat(mobile_api): Add course access to mobile course info API feat(mobile_api): Add course access object to mobile course info API Feb 21, 2024
@GlugovGrGlib GlugovGrGlib force-pushed the glugovgrglib/add_course_access_to_mobile_info_api branch from 5050aa0 to 043f344 Compare February 21, 2024 23:18
@GlugovGrGlib GlugovGrGlib force-pushed the glugovgrglib/add_course_access_to_mobile_info_api branch from 043f344 to 684161d Compare February 22, 2024 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant