feanil
(Feanil Patel)
March 21, 2025, 3:28pm
1
The course sock is a feature on the legacy frontend and a related feature flag is exposed to the frontend-app-learning MFE. Both will be removed if the DEPR is accepted.
opened 03:24PM - 21 Mar 25 UTC
depr
### Proposal Date
2025-03-21
### Target Ticket Acceptance Date
2025-04-04
##… # Earliest Open edX Named Release Without This Functionality
Teak - 2025-04
### Rationale
The `DISPLAY_COURSE_SOCK_FLAG` is a waffle flag that was used to determine whether verification related upsell messaging should be displayed in the courseware. This data is used to determine whether the sock should be displayed in the legacy courseware which is itself [deprecated](https://github.com/openedx/edx-platform/issues/35803).
The flag is also provided as a part of the the `CourseHomeMetadata`, `ProgressTab`, `OutlineTab` and `VerifiedMode` APIs as the `can_show_upgrade_sock` attribute in JSON. The Only place in our Frontend code that is consuming it is in the `frontend-app-learning` MFE and while that app consumes it, it doesn't actually make use of it to change any of your experience.
### Removal
This DEPR proposes that all Courses Sock related logic and API data be removed from the platform and the frontend-app-learning MFE
### Replacement
There is no direct replacement but an equivalent capability can be achieved by using the [FooterSlot](https://github.com/openedx/frontend-app-learning/tree/master/src/plugin-slots/FooterSlot) in the frontend-app-learning MFE.
### Deprecation
_No response_
### Migration
_No response_
### Additional Info
_No response_
### Task List
_No response_
Target Acceptance Date: 2025-04-04T04:00:00Z
feanil
(Feanil Patel)
April 4, 2025, 2:09pm
2
With no opposition, this DEPR is now accepted.
feanil
(Feanil Patel)
April 7, 2025, 3:21pm
3
PRs are here for the feature’s removal: