Skip to content

Commit 0401bf2

Browse files
committed
fix: update frontend-app-learning port from 2000 to 2010 across configurations due to codespace port conflict
1 parent 42f52a5 commit 0401bf2

8 files changed

Lines changed: 12 additions & 12 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"postCreateCommand": ".devcontainer/postCreateCommand.sh",
3737
"postStartCommand": ".devcontainer/postStartCommand.sh",
3838
"forwardPorts": [
39-
1976, 1984, 1990, 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
40-
2001, 3001, 3406, 5335, 7474, 8000, 8081, 8734, 8735, 9021, 9201, 9202,
39+
1976, 1984, 1990, 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2001,
40+
2010, 3001, 3406, 5335, 7474, 8000, 8081, 8734, 8735, 9021, 9201, 9202,
4141
9301, 9600, 18000, 18010, 18040, 18110, 18120, 18130, 18150, 18160,
4242
18170, 18270, 18280, 18381, 18400, 18450, 18734, 18760, 18787, 19001,
4343
27017, 44567
@@ -60,7 +60,7 @@
6060
"18130": { "label": "ecommerce" },
6161
"18150": { "label": "credentials" },
6262
"18120": { "label": "edx_notes_api" },
63-
"2000": { "label": "frontend-app-learning" },
63+
"2010": { "label": "frontend-app-learning" },
6464
"1998": { "label": "frontend-app-payment" },
6565
"18400": { "label": "frontend-app-publisher" },
6666
"1994": { "label": "frontend-app-gradebook" },

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ services:
11031103
aliases:
11041104
- edx.devstack.frontend-app-learning
11051105
ports:
1106-
- "2000:2000"
1106+
- "2010:2000"
11071107
depends_on:
11081108
- lms
11091109

docs/service_list.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Instead of a service name or list, you can also run commands like ``make dev.pro
3131
+------------------------------------+-------------------------------------+----------------+--------------+
3232
| `frontend-app-learner-record`_ | http://localhost:1990/ | MFE (React.js) | Default |
3333
+------------------------------------+-------------------------------------+----------------+--------------+
34-
| `frontend-app-learning`_ | http://localhost:2000/ | MFE (React.js) | Default |
34+
| `frontend-app-learning`_ | http://localhost:2010/ | MFE (React.js) | Default |
3535
+------------------------------------+-------------------------------------+----------------+--------------+
3636
| `frontend-app-payment`_ | http://localhost:1998/ | MFE (React.js) | Default |
3737
+------------------------------------+-------------------------------------+----------------+--------------+

docs/troubleshoot_general_tips.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ Update as of 2023-08-03: The issue was moved to https://2u-internal.atlassian.ne
253253

254254
CORS error from login_refresh in MFE
255255
------------------------------------
256-
If you see "Access to XMLHttpRequest at 'http://localhost:18000/login_refresh' from origin 'http://localhost:2000' has been blocked by CORS policy: Request header field x-xsrf-token is not allowed by Access-Control-Allow-Headers in preflight response" it usually means you don't have a valid session.
256+
If you see "Access to XMLHttpRequest at 'http://localhost:18000/login_refresh' from origin 'http://localhost:2010' has been blocked by CORS policy: Request header field x-xsrf-token is not allowed by Access-Control-Allow-Headers in preflight response" it usually means you don't have a valid session.
257257

258258
The fix is to get a new auth session. You can do any of the following:
259259

py_configuration_files/course_discovery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
'http://localhost:1991', # frontend-app-admin-portal
1919
'http://localhost:18400', # frontend-app-publisher
2020
'http://localhost:18450', # frontend-app-support-tools
21-
'http://localhost:2000', # frontend-app-learning
21+
'http://localhost:2010', # frontend-app-learning
2222
)
2323

2424
ELASTICSEARCH_DSL['default']['hosts'] = 'edx.devstack.elasticsearch710:9200'

py_configuration_files/ecommerce.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
'http://localhost:1996',
5656
'http://localhost:1997', # Account MFE
5757
'http://localhost:1998',
58-
'http://localhost:2000', # Learning MFE
58+
'http://localhost:2010', # Learning MFE
5959
'http://localhost:8734', # Enterprise Learner Portal MFE
6060
)
6161
CORS_ALLOW_HEADERS = corsheaders_default_headers + (

py_configuration_files/enterprise_subsidy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
LMS_URL = 'http://edx.devstack.lms:18000'
7676
ENTERPRISE_CATALOG_URL = 'http://edx.devstack.enterprise-catalog:18160'
7777
ENTERPRISE_SUBSIDY_URL = 'http://localhost:18280'
78-
FRONTEND_APP_LEARNING_URL = 'http://localhost:2000'
78+
FRONTEND_APP_LEARNING_URL = 'http://localhost:2010' # Learning MFE
7979

8080
# Kafka Settings
8181
# "Standard" Kafka settings as defined in https://github.com/openedx/event-bus-kafka/tree/main

py_configuration_files/lms.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
304304
'localhost:1997', # frontend-app-account
305305
'localhost:1976', # frontend-app-program-console
306306
'localhost:1994', # frontend-app-gradebook
307-
'localhost:2000', # frontend-app-learning
307+
'localhost:2010', # frontend-app-learning
308308
'localhost:2001', # frontend-app-course-authoring
309309
'localhost:3001', # frontend-app-library-authoring
310310
'localhost:18400', # frontend-app-publisher
@@ -382,7 +382,7 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
382382
EDXNOTES_CLIENT_NAME = 'edx_notes_api-backend-service'
383383

384384
############## Settings for Microfrontends #########################
385-
LEARNING_MICROFRONTEND_URL = 'http://localhost:2000'
385+
LEARNING_MICROFRONTEND_URL = 'http://localhost:2010'
386386
ACCOUNT_MICROFRONTEND_URL = 'http://localhost:1997'
387387
PROFILE_MICROFRONTEND_URL = 'http://localhost:1995'
388388
COMMUNICATIONS_MICROFRONTEND_URL = 'http://localhost:1984'
@@ -542,7 +542,7 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
542542

543543
# MFEs that will call this service in devstack
544544
CSRF_TRUSTED_ORIGINS = [
545-
'http://localhost:2000', # frontend-app-learning
545+
'http://localhost:3000', # frontend-app-learning
546546
'http://localhost:2001', # frontend-app-course-authoring
547547
'http://localhost:1997', # frontend-app-account
548548
'http://localhost:1995', # frontend-app-profile

0 commit comments

Comments
 (0)