Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
244 changes: 122 additions & 122 deletions frontends/api/src/generated/v1/api.ts

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions frontends/ol-components/src/components/Logo/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type PlatformObject = {

export const PLATFORMS: Record<PlatformEnum, PlatformObject> = {
[PlatformEnum.Ocw]: {
name: "OCW",
name: "MIT OpenCourseWare",
image: "mit-ocw-logo-square.png",
},
[PlatformEnum.Edx]: {
Expand All @@ -24,7 +24,7 @@ export const PLATFORMS: Record<PlatformEnum, PlatformObject> = {
image: null,
},
[PlatformEnum.Xpro]: {
name: "xPRO",
name: "MIT xPRO",
image: "mit-xpro-logo.png",
},
[PlatformEnum.Podcast]: {
Expand All @@ -40,7 +40,7 @@ export const PLATFORMS: Record<PlatformEnum, PlatformObject> = {
image: null,
},
[PlatformEnum.See]: {
name: "Sloan Executive Education",
name: "MIT Sloan Executive Education",
image: "sloan-logo.png",
},
[PlatformEnum.Scc]: {
Expand Down
16 changes: 8 additions & 8 deletions learning_resources/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ class OfferedBy(ExtendedEnum):
"""

mitx = "MITx"
ocw = "OCW"
ocw = "MIT OpenCourseWare"
bootcamps = "Bootcamps"
xpro = "xPRO"
mitpe = "Professional Education"
see = "Sloan Executive Education"
xpro = "MIT xPRO"
mitpe = "MIT Professional Education"
see = "MIT Sloan Executive Education"


class PlatformType(ExtendedEnum):
Expand All @@ -66,14 +66,14 @@ class PlatformType(ExtendedEnum):
"""

edx = "edX"
ocw = "OCW"
ocw = "MIT OpenCourseWare"
oll = "Open Learning Library"
mitxonline = "MITx Online"
bootcamps = "Bootcamps"
xpro = "xPRO"
xpro = "MIT xPRO"
csail = "CSAIL"
mitpe = "Professional Education"
see = "Sloan Executive Education"
mitpe = "MIT Professional Education"
see = "MIT Sloan Executive Education"
scc = "Schwarzman College of Computing"
ctl = "Center for Transportation & Logistics"
whu = "WHU"
Expand Down
2 changes: 1 addition & 1 deletion learning_resources/data/channel_templates/offerors.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"sub_heading": "For a global community of innovators and entrepreneurs, MIT Bootcamps provide intensive learning-by-doing experiences, virtually or in person to help participants advance a new venture while receiving real-time feedback. Bootcamps are immersive and participants work alongside MIT-trained coaches and other entrepreneurs selected from around the world."
},
"xpro": {
"name": "xPRO",
"name": "MIT xPRO",
"logo": "/static/images/unit_logos/xpro.svg",
"banner_background": "/static/images/unit_banners/xpro.jpg",
"heading": "Developing the workforce of tomorrow with a balance of technical and leadership excellence.",
Expand Down
2 changes: 1 addition & 1 deletion learning_resources/etl/loaders_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ def test_load_offered_bys(
if offeror_exists and not null_data:
expected = ocw_offeror

load_offered_by(resource, None if null_data else {"name": "OCW"})
load_offered_by(resource, None if null_data else {"name": "MIT OpenCourseWare"})

assert resource.offered_by == expected

Expand Down
2 changes: 1 addition & 1 deletion learning_resources/etl/prolearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def parse_offered_by(document: dict) -> LearningResourceOfferor:
LearningResourceOfferor: offeror or None
"""
return LearningResourceOfferor.objects.filter(
name=document["department"].lstrip("MIT").strip()
name=document["department"].strip()
).first()


Expand Down
6 changes: 3 additions & 3 deletions learning_resources/etl/prolearn_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _mock_offerors_platforms():
"""Make sure necessary platforms and offerors exist"""
LearningResourcePlatformFactory.create(code="csail")
LearningResourceOfferorFactory.create(
name="Professional Education", code="mitpe", professional=True
name="MIT Professional Education", code="mitpe", professional=True
)
LearningResourcePlatformFactory.create(
code="mitpe", name="MIT Professional Education"
Expand All @@ -67,7 +67,7 @@ def mock_csail_programs_data():

@pytest.fixture()
def mock_mitpe_courses_data():
"""Mock prolearn Professional Education courses data"""
"""Mock prolearn MIT Professional Education courses data"""
with open("./test_json/prolearn_mitpe_courses.json") as f: # noqa: PTH123
return json.loads(f.read())

Expand Down Expand Up @@ -300,7 +300,7 @@ def test_parse_topic(topic, expected):
@pytest.mark.parametrize(
("department", "offered_by"),
[
("MIT Professional Education", "Professional Education"),
("MIT Professional Education", "MIT Professional Education"),
("MIT Other", None),
],
)
Expand Down
2 changes: 1 addition & 1 deletion learning_resources/etl/xpro.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"Simplilearn": PlatformType.simplilearn.name,
"Susskind": PlatformType.susskind.name,
"WHU": PlatformType.whu.name,
"xPRO": PlatformType.xpro.name,
"MIT xPRO": PlatformType.xpro.name,
}


Expand Down
8 changes: 4 additions & 4 deletions learning_resources/fixtures/offered_by.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{
"model": "learning_resources.LearningResourceOfferor",
"fields": {
"name": "OCW",
"name": "MIT OpenCourseWare",
"code": "ocw",
"professional": false,
"offerings": ["Learning Materials"],
Expand Down Expand Up @@ -57,7 +57,7 @@
{
"model": "learning_resources.LearningResourceOfferor",
"fields": {
"name": "xPRO",
"name": "MIT xPRO",
"code": "xpro",
"professional": true,
"offerings": ["Courses", "Programs"],
Expand All @@ -75,7 +75,7 @@
{
"model": "learning_resources.LearningResourceOfferor",
"fields": {
"name": "Professional Education",
"name": "MIT Professional Education",
"code": "mitpe",
"professional": true,
"offerings": ["Courses", "Certificates"],
Expand All @@ -100,7 +100,7 @@
{
"model": "learning_resources.LearningResourceOfferor",
"fields": {
"name": "Sloan Executive Education",
"name": "MIT Sloan Executive Education",
"code": "see",
"professional": true,
"offerings": ["Courses", "Programs"],
Expand Down
6 changes: 3 additions & 3 deletions learning_resources/fixtures/platforms.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"model": "learning_resources.LearningResourcePlatform",
"fields": {
"code": "ocw",
"name": "OCW",
"name": "MIT OpenCourseWare",
"is_edx": false,
"has_content_files": true,
"url": "https://ocw.mit.edu/",
Expand Down Expand Up @@ -51,7 +51,7 @@
"model": "learning_resources.LearningResourcePlatform",
"fields": {
"code": "xpro",
"name": "xPRO",
"name": "MIT xPRO",
"is_edx": true,
"has_content_files": true,
"url": "https://xpro.mit.edu/",
Expand Down Expand Up @@ -99,7 +99,7 @@
"model": "learning_resources.LearningResourcePlatform",
"fields": {
"code": "see",
"name": "Sloan Executive Education",
"name": "MIT Sloan Executive Education",
"is_edx": false,
"has_content_files": false,
"url": "https://executive.mit.edu/",
Expand Down
8 changes: 4 additions & 4 deletions learning_resources_search/serializers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
{"id": 5, "name": "Management"},
{"id": 6, "name": "Innovation"},
],
"offered_by": "xPRO",
"offered_by": "MIT xPRO",
"course_feature": [],
"department": None,
"learning_format": [
Expand Down Expand Up @@ -163,7 +163,7 @@
"offered_by": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [{"key": "xPRO", "doc_count": 9}],
"buckets": [{"key": "MIT xPRO", "doc_count": 9}],
},
},
},
Expand Down Expand Up @@ -206,7 +206,7 @@
{"id": 5, "name": "Management"},
{"id": 6, "name": "Innovation"},
],
"offered_by": "xPRO",
"offered_by": "MIT xPRO",
"course_feature": [],
"department": None,
"learning_format": [
Expand Down Expand Up @@ -284,7 +284,7 @@
"metadata": {
"aggregations": {
"level": [],
"offered_by": [{"key": "xPRO", "doc_count": 9}],
"offered_by": [{"key": "MIT xPRO", "doc_count": 9}],
},
"suggest": ["manage"],
},
Expand Down
2 changes: 1 addition & 1 deletion news_events/etl/sloan_exec_news_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Tests for Sloan Executive Education news ETL pipeline"""
"""Tests for MIT Sloan Executive Education news ETL pipeline"""

import json
from pathlib import Path
Expand Down
Loading