Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit cbccba8

Browse files
authored
Merge pull request #94 from topcoder-platform/dev
10/30/2023 PROD Release - Turns off TaaS app, Tass Admin, Onboarding, old profiles, Self Service
2 parents 94d8ba8 + 2d18134 commit cbccba8

10 files changed

+19
-99
lines changed

.circleci/config.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,20 @@ save_cache_settings: &save_cache_settings
2525
paths:
2626
- node_modules
2727

28+
build_configuration_fetch: &build_configuration_fetch
29+
name: "configuring environment"
30+
command: |
31+
./awsconfiguration.sh $DEPLOY_ENV
32+
./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-buildvar
33+
aws s3 cp s3://tc-platform-${LOGICAL_ENV}/securitymanager/micro-frontends-config-${LOGICAL_ENV}.json ./config/micro-frontends-config-${LOGICAL_ENV}.json
34+
aws s3 cp s3://tc-platform-${LOGICAL_ENV}/securitymanager/micro-frontends-routes-${LOGICAL_ENV}.txt ./config/micro-frontends-routes-${LOGICAL_ENV}.txt
35+
2836
builddeploy_steps: &builddeploy_steps
2937
- checkout
3038
- setup_remote_docker
3139
- run: *install_dependency
3240
- run: *install_deploysuite
41+
- run: *build_configuration_fetch
3342
- restore_cache: *restore_cache_settings_for_build
3443
- run:
3544
command: |

config/docs/adr-02.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# ADR-02 2023-10-25
2+
3+
We're going to do a mix of s3 and locally hosted configuration files.
4+
We're going to host the configuration files locally on the repository for versioning purposes,
5+
But at the build time we're going to fetch the specific configuration files based on the build env and overwrite the local version with what we have in s3.
6+
This will allow us to enable/disable MFE apps by updating the s3 files and triggering a new build via the CircleCI.

config/micro-frontends-config-dev.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,11 @@
33
"@topcoder/mfe-header": "https://platform.topcoder-dev.com/navbar/topcoder-mfe-header.js",
44
"@topcoder/micro-frontends-react-app": "https://platform.topcoder-dev.com/react/topcoder-micro-frontends-react-app.js",
55
"@topcoder/micro-frontends-angular-app": "https://platform.topcoder-dev.com/angular/main.js",
6-
"@topcoder/micro-frontends-teams": "https://platform.topcoder-dev.com/taas-app/topcoder-micro-frontends-teams.js",
76
"@topcoder/micro-frontends-task-marketplace-app": "https://platform.topcoder-dev.com/tasks/topcoder-micro-frontends-task-marketplace-app.js",
87
"@topcoder/micro-frontends-earn-app": "https://platform.topcoder-dev.com/earn-app/topcoder-micro-frontends-earn-app.js",
98
"@topcoder/micro-frontends-submission-review-app": "https://platform.topcoder-dev.com/submissionreview/topcoder-micro-frontends-submission-review-app.js",
109
"@topcoder/micro-frontends-model-app": "https://platform.topcoder-dev.com/model-app/topcoder-micro-frontends-model-app.js",
1110
"@topcoder/micro-frontends-community-admin-app": "https://tc-micro-community-admin.herokuapp.com/community-admin-app/topcoder-micro-frontends-community-admin-app.js",
12-
"@topcoder/micro-frontends-taas-admin-app": "https://platform.topcoder-dev.com/taas-admin-app/topcoder-micro-frontends-taas-admin-app.js",
13-
"@topcoder/micro-frontends-profile-app": "https://platform.topcoder-dev.com/profile-app/topcoder-micro-frontends-profile-app.js",
14-
"@topcoder/micro-frontends-onboarding-app": "https://platform.topcoder-dev.com/onboarding-app/topcoder-micro-frontends-onboarding-app.js",
15-
"@topcoder/micro-frontends-forums-app": "https://platform.topcoder-dev.com/forums-app/topcoder-micro-frontends-forums-app.js",
16-
"@topcoder/mfe-customer-work": "https://platform.topcoder-dev.com/self-service-app/topcoder-mfe-customer-work.js"
11+
"@topcoder/micro-frontends-forums-app": "https://platform.topcoder-dev.com/forums-app/topcoder-micro-frontends-forums-app.js"
1712
}
1813
}

config/micro-frontends-config-local.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
"@topcoder/micro-frontends-taas-admin-app": "https://platform.topcoder-dev.com/taas-admin-app/topcoder-micro-frontends-taas-admin-app.js",
55
"@topcoder/micro-frontends-react-app": "https://platform.topcoder-dev.com/react/topcoder-micro-frontends-react-app.js",
66
"@topcoder/micro-frontends-angular-app": "https://platform.topcoder-dev.com/angular/main.js",
7-
"@topcoder/micro-frontends-teams": "https://platform.topcoder-dev.com/taas-app/topcoder-micro-frontends-teams.js",
87
"@topcoder/micro-frontends-task-marketplace-app": "https://platform.topcoder-dev.com/tasks/topcoder-micro-frontends-task-marketplace-app.js",
98
"@topcoder/micro-frontends-earn-app": "http://localhost:8008/earn-app/topcoder-micro-frontends-earn-app.js",
109
"@topcoder/micro-frontends-submission-review-app": "https://platform.topcoder-dev.com/submissionreview/topcoder-micro-frontends-submission-review-app.js",
1110
"@topcoder/micro-frontends-model-app": "https://platform.topcoder-dev.com/model-app/topcoder-micro-frontends-model-app.js",
1211
"@topcoder/micro-frontends-community-admin-app": "https://tc-micro-community-admin.herokuapp.com/community-admin-app/topcoder-micro-frontends-community-admin-app.js",
13-
"@topcoder/micro-frontends-profile-app": "http://localhost:8009/profile-app/topcoder-micro-frontends-profile-app.js",
1412
"@topcoder/micro-frontends-onboarding-app": "http://localhost:8510/onboarding-app/topcoder-micro-frontends-onboarding-app.js",
1513
"@topcoder/micro-frontends-forums-app": "http://localhost:8510/forums-app/topcoder-micro-frontends-forums-app.js",
1614
"@topcoder/mfe-customer-work": "http://localhost:8519/self-service-app/topcoder-mfe-customer-work.js"
1715
}
18-
}
16+
}

config/micro-frontends-config-prod.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@
33
"@topcoder/mfe-header": "https://platform.topcoder.com/navbar/topcoder-mfe-header.js",
44
"@topcoder/micro-frontends-react-app": "https://platform.topcoder.com/react/topcoder-micro-frontends-react-app.js",
55
"@topcoder/micro-frontends-angular-app": "https://platform.topcoder.com/angular/main.js",
6-
"@topcoder/micro-frontends-teams": "https://platform.topcoder.com/taas-app/topcoder-micro-frontends-teams.js",
76
"@topcoder/micro-frontends-task-marketplace-app": "https://platform.topcoder.com/tasks/topcoder-micro-frontends-task-marketplace-app.js",
87
"@topcoder/micro-frontends-earn-app": "https://platform.topcoder.com/earn-app/topcoder-micro-frontends-earn-app.js",
98
"@topcoder/micro-frontends-submission-review-app": "https://platform.topcoder.com/submissionreview/topcoder-micro-frontends-submission-review-app.js",
10-
"@topcoder/micro-frontends-model-app": "https://platform.topcoder.com/model-app/topcoder-micro-frontends-model-app.js",
11-
"@topcoder/micro-frontends-taas-admin-app": "https://platform.topcoder.com/taas-admin-app/topcoder-micro-frontends-taas-admin-app.js",
12-
"@topcoder/micro-frontends-profile-app": "https://platform.topcoder.com/profile-app/topcoder-micro-frontends-profile-app.js",
13-
"@topcoder/micro-frontends-onboarding-app": "https://platform.topcoder.com/onboarding-app/topcoder-micro-frontends-onboarding-app.js",
14-
"@topcoder/mfe-customer-work": "https://platform.topcoder.com/self-service-app/topcoder-mfe-customer-work.js"
9+
"@topcoder/micro-frontends-model-app": "https://platform.topcoder.com/model-app/topcoder-micro-frontends-model-app.js"
1510
}
1611
}

config/micro-frontends-config-qa.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,11 @@
33
"@topcoder/mfe-header": "https://platform.topcoder-qa.com/navbar/topcoder-mfe-header.js",
44
"@topcoder/micro-frontends-react-app": "https://platform.topcoder-qa.com/react/topcoder-micro-frontends-react-app.js",
55
"@topcoder/micro-frontends-angular-app": "https://platform.topcoder-qa.com/angular/main.js",
6-
"@topcoder/micro-frontends-teams": "https://platform.topcoder-qa.com/taas-app/topcoder-micro-frontends-teams.js",
76
"@topcoder/micro-frontends-task-marketplace-app": "https://platform.topcoder-qa.com/tasks/topcoder-micro-frontends-task-marketplace-app.js",
87
"@topcoder/micro-frontends-earn-app": "https://platform.topcoder-qa.com/earn-app/topcoder-micro-frontends-earn-app.js",
98
"@topcoder/micro-frontends-submission-review-app": "https://platform.topcoder-qa.com/submissionreview/topcoder-micro-frontends-submission-review-app.js",
109
"@topcoder/micro-frontends-model-app": "https://platform.topcoder-qa.com/model-app/topcoder-micro-frontends-model-app.js",
1110
"@topcoder/micro-frontends-community-admin-app": "https://tc-micro-community-admin.herokuapp.com/community-admin-app/topcoder-micro-frontends-community-admin-app.js",
12-
"@topcoder/micro-frontends-taas-admin-app": "https://platform.topcoder-qa.com/taas-admin-app/topcoder-micro-frontends-taas-admin-app.js",
13-
"@topcoder/micro-frontends-profile-app": "https://platform.topcoder-qa.com/profile-app/topcoder-micro-frontends-profile-app.js",
14-
"@topcoder/micro-frontends-onboarding-app": "https://platform.topcoder-qa.com/onboarding-app/topcoder-micro-frontends-onboarding-app.js",
15-
"@topcoder/micro-frontends-forums-app": "https://platform.topcoder-qa.com/forums-app/topcoder-micro-frontends-forums-app.js",
16-
"@topcoder/mfe-customer-work": "https://platform.topcoder-qa.com/self-service-app/topcoder-mfe-customer-work.js"
11+
"@topcoder/micro-frontends-forums-app": "https://platform.topcoder-qa.com/forums-app/topcoder-micro-frontends-forums-app.js"
1712
}
1813
}

config/micro-frontends-routes-dev.txt

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
<route path="micro-frontends-angular-route">
55
<application name="@topcoder/micro-frontends-angular-app"></application>
66
</route>
7-
<route path="taas">
8-
<application name="@topcoder/micro-frontends-teams"></application>
9-
</route>
107
<route path="task-marketplace">
118
<application name="@topcoder/micro-frontends-task-marketplace-app"></application>
129
</route>
@@ -22,30 +19,9 @@
2219
<route path="community-admin">
2320
<application name="@topcoder/micro-frontends-community-admin-app"></application>
2421
</route>
25-
<route path="taas-admin">
26-
<application name="@topcoder/micro-frontends-taas-admin-app"></application>
27-
</route>
28-
<route path="profile">
29-
<application name="@topcoder/micro-frontends-profile-app"></application>
30-
</route>
31-
<route path="onboard">
32-
<application name="@topcoder/micro-frontends-onboarding-app"></application>
33-
</route>
3422
<route path="forums">
3523
<application name="@topcoder/micro-frontends-forums-app"></application>
3624
</route>
37-
<route path="self-service">
38-
<application name="@topcoder/mfe-customer-work"></application>
39-
</route>
40-
<route path="work">
41-
<application name="@topcoder/mfe-customer-work"></application>
42-
</route>
43-
<route path="account">
44-
<application name="@topcoder/mfe-customer-work"></application>
45-
</route>
46-
<route path="support">
47-
<application name="@topcoder/mfe-customer-work"></application>
48-
</route>
4925
<route path="unauthorized">
5026
<div style="text-align: center; padding-top: 200px; font-size: 32px;">
5127
You are unauthorized

config/micro-frontends-routes-local.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
<route path="micro-frontends-angular-route">
55
<application name="@topcoder/micro-frontends-angular-app"></application>
66
</route>
7-
<route path="taas">
8-
<application name="@topcoder/micro-frontends-teams"></application>
9-
</route>
107
<route path="taas-admin">
118
<application name="@topcoder/micro-frontends-taas-admin-app"></application>
129
</route>
@@ -25,9 +22,6 @@
2522
<route path="community-admin">
2623
<application name="@topcoder/micro-frontends-community-admin-app"></application>
2724
</route>
28-
<route path="profile">
29-
<application name="@topcoder/micro-frontends-profile-app"></application>
30-
</route>
3125
<route path="onboard">
3226
<application name="@topcoder/micro-frontends-onboarding-app"></application>
3327
</route>

config/micro-frontends-routes-prod.txt

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
<route path="micro-frontends-angular-route">
55
<application name="@topcoder/micro-frontends-angular-app"></application>
66
</route>
7-
<route path="taas">
8-
<application name="@topcoder/micro-frontends-teams"></application>
9-
</route>
107
<route path="task-marketplace">
118
<application name="@topcoder/micro-frontends-task-marketplace-app"></application>
129
</route>
@@ -19,27 +16,6 @@
1916
<route path="model">
2017
<application name="@topcoder/micro-frontends-model-app"></application>
2118
</route>
22-
<route path="taas-admin">
23-
<application name="@topcoder/micro-frontends-taas-admin-app"></application>
24-
</route>
25-
<route path="profile">
26-
<application name="@topcoder/micro-frontends-profile-app"></application>
27-
</route>
28-
<route path="onboard">
29-
<application name="@topcoder/micro-frontends-onboarding-app"></application>
30-
</route>
31-
<route path="self-service">
32-
<application name="@topcoder/mfe-customer-work"></application>
33-
</route>
34-
<route path="work">
35-
<application name="@topcoder/mfe-customer-work"></application>
36-
</route>
37-
<route path="account">
38-
<application name="@topcoder/mfe-customer-work"></application>
39-
</route>
40-
<route path="support">
41-
<application name="@topcoder/mfe-customer-work"></application>
42-
</route>
4319
<route path="unauthorized">
4420
<div style="text-align: center; padding-top: 200px; font-size: 32px;">
4521
You are unauthorized

config/micro-frontends-routes-qa.txt

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
<route path="micro-frontends-angular-route">
55
<application name="@topcoder/micro-frontends-angular-app"></application>
66
</route>
7-
<route path="taas">
8-
<application name="@topcoder/micro-frontends-teams"></application>
9-
</route>
107
<route path="task-marketplace">
118
<application name="@topcoder/micro-frontends-task-marketplace-app"></application>
129
</route>
@@ -22,30 +19,9 @@
2219
<route path="community-admin">
2320
<application name="@topcoder/micro-frontends-community-admin-app"></application>
2421
</route>
25-
<route path="taas-admin">
26-
<application name="@topcoder/micro-frontends-taas-admin-app"></application>
27-
</route>
28-
<route path="profile">
29-
<application name="@topcoder/micro-frontends-profile-app"></application>
30-
</route>
31-
<route path="onboard">
32-
<application name="@topcoder/micro-frontends-onboarding-app"></application>
33-
</route>
3422
<route path="forums">
3523
<application name="@topcoder/micro-frontends-forums-app"></application>
3624
</route>
37-
<route path="self-service">
38-
<application name="@topcoder/mfe-customer-work"></application>
39-
</route>
40-
<route path="work">
41-
<application name="@topcoder/mfe-customer-work"></application>
42-
</route>
43-
<route path="account">
44-
<application name="@topcoder/mfe-customer-work"></application>
45-
</route>
46-
<route path="support">
47-
<application name="@topcoder/mfe-customer-work"></application>
48-
</route>
4925
<route path="unauthorized">
5026
<div style="text-align: center; padding-top: 200px; font-size: 32px;">
5127
You are unauthorized

0 commit comments

Comments
 (0)