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

Commit fba231f

Browse files
authored
Merge pull request #91 from topcoder-platform/TSJR-181_disable-taas-app
TSJR-181 - disable TaaS application
2 parents b0185ce + b5b9f7c commit fba231f

10 files changed

+15
-16
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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
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",

config/micro-frontends-config-local.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
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",

config/micro-frontends-config-prod.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
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",

config/micro-frontends-config-qa.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
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",

config/micro-frontends-routes-dev.txt

Lines changed: 0 additions & 3 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>

config/micro-frontends-routes-local.txt

Lines changed: 0 additions & 3 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>

config/micro-frontends-routes-prod.txt

Lines changed: 0 additions & 3 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>

config/micro-frontends-routes-qa.txt

Lines changed: 0 additions & 3 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>

0 commit comments

Comments
 (0)