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

10/30/2023 PROD Release - Turns off TaaS app, Tass Admin, Onboarding, old profiles, Self Service #94

Merged
merged 7 commits into from
Oct 30, 2023
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
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,20 @@ save_cache_settings: &save_cache_settings
paths:
- node_modules

build_configuration_fetch: &build_configuration_fetch
name: "configuring environment"
command: |
./awsconfiguration.sh $DEPLOY_ENV
./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-buildvar
aws s3 cp s3://tc-platform-${LOGICAL_ENV}/securitymanager/micro-frontends-config-${LOGICAL_ENV}.json ./config/micro-frontends-config-${LOGICAL_ENV}.json
aws s3 cp s3://tc-platform-${LOGICAL_ENV}/securitymanager/micro-frontends-routes-${LOGICAL_ENV}.txt ./config/micro-frontends-routes-${LOGICAL_ENV}.txt

builddeploy_steps: &builddeploy_steps
- checkout
- setup_remote_docker
- run: *install_dependency
- run: *install_deploysuite
- run: *build_configuration_fetch
- restore_cache: *restore_cache_settings_for_build
- run:
command: |
Expand Down
6 changes: 6 additions & 0 deletions config/docs/adr-02.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# ADR-02 2023-10-25

We're going to do a mix of s3 and locally hosted configuration files.
We're going to host the configuration files locally on the repository for versioning purposes,
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.
This will allow us to enable/disable MFE apps by updating the s3 files and triggering a new build via the CircleCI.
7 changes: 1 addition & 6 deletions config/micro-frontends-config-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@
"@topcoder/mfe-header": "https://platform.topcoder-dev.com/navbar/topcoder-mfe-header.js",
"@topcoder/micro-frontends-react-app": "https://platform.topcoder-dev.com/react/topcoder-micro-frontends-react-app.js",
"@topcoder/micro-frontends-angular-app": "https://platform.topcoder-dev.com/angular/main.js",
"@topcoder/micro-frontends-teams": "https://platform.topcoder-dev.com/taas-app/topcoder-micro-frontends-teams.js",
"@topcoder/micro-frontends-task-marketplace-app": "https://platform.topcoder-dev.com/tasks/topcoder-micro-frontends-task-marketplace-app.js",
"@topcoder/micro-frontends-earn-app": "https://platform.topcoder-dev.com/earn-app/topcoder-micro-frontends-earn-app.js",
"@topcoder/micro-frontends-submission-review-app": "https://platform.topcoder-dev.com/submissionreview/topcoder-micro-frontends-submission-review-app.js",
"@topcoder/micro-frontends-model-app": "https://platform.topcoder-dev.com/model-app/topcoder-micro-frontends-model-app.js",
"@topcoder/micro-frontends-community-admin-app": "https://tc-micro-community-admin.herokuapp.com/community-admin-app/topcoder-micro-frontends-community-admin-app.js",
"@topcoder/micro-frontends-taas-admin-app": "https://platform.topcoder-dev.com/taas-admin-app/topcoder-micro-frontends-taas-admin-app.js",
"@topcoder/micro-frontends-profile-app": "https://platform.topcoder-dev.com/profile-app/topcoder-micro-frontends-profile-app.js",
"@topcoder/micro-frontends-onboarding-app": "https://platform.topcoder-dev.com/onboarding-app/topcoder-micro-frontends-onboarding-app.js",
"@topcoder/micro-frontends-forums-app": "https://platform.topcoder-dev.com/forums-app/topcoder-micro-frontends-forums-app.js",
"@topcoder/mfe-customer-work": "https://platform.topcoder-dev.com/self-service-app/topcoder-mfe-customer-work.js"
"@topcoder/micro-frontends-forums-app": "https://platform.topcoder-dev.com/forums-app/topcoder-micro-frontends-forums-app.js"
}
}
4 changes: 1 addition & 3 deletions config/micro-frontends-config-local.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
"@topcoder/micro-frontends-taas-admin-app": "https://platform.topcoder-dev.com/taas-admin-app/topcoder-micro-frontends-taas-admin-app.js",
"@topcoder/micro-frontends-react-app": "https://platform.topcoder-dev.com/react/topcoder-micro-frontends-react-app.js",
"@topcoder/micro-frontends-angular-app": "https://platform.topcoder-dev.com/angular/main.js",
"@topcoder/micro-frontends-teams": "https://platform.topcoder-dev.com/taas-app/topcoder-micro-frontends-teams.js",
"@topcoder/micro-frontends-task-marketplace-app": "https://platform.topcoder-dev.com/tasks/topcoder-micro-frontends-task-marketplace-app.js",
"@topcoder/micro-frontends-earn-app": "http://localhost:8008/earn-app/topcoder-micro-frontends-earn-app.js",
"@topcoder/micro-frontends-submission-review-app": "https://platform.topcoder-dev.com/submissionreview/topcoder-micro-frontends-submission-review-app.js",
"@topcoder/micro-frontends-model-app": "https://platform.topcoder-dev.com/model-app/topcoder-micro-frontends-model-app.js",
"@topcoder/micro-frontends-community-admin-app": "https://tc-micro-community-admin.herokuapp.com/community-admin-app/topcoder-micro-frontends-community-admin-app.js",
"@topcoder/micro-frontends-profile-app": "http://localhost:8009/profile-app/topcoder-micro-frontends-profile-app.js",
"@topcoder/micro-frontends-onboarding-app": "http://localhost:8510/onboarding-app/topcoder-micro-frontends-onboarding-app.js",
"@topcoder/micro-frontends-forums-app": "http://localhost:8510/forums-app/topcoder-micro-frontends-forums-app.js",
"@topcoder/mfe-customer-work": "http://localhost:8519/self-service-app/topcoder-mfe-customer-work.js"
}
}
}
7 changes: 1 addition & 6 deletions config/micro-frontends-config-prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,9 @@
"@topcoder/mfe-header": "https://platform.topcoder.com/navbar/topcoder-mfe-header.js",
"@topcoder/micro-frontends-react-app": "https://platform.topcoder.com/react/topcoder-micro-frontends-react-app.js",
"@topcoder/micro-frontends-angular-app": "https://platform.topcoder.com/angular/main.js",
"@topcoder/micro-frontends-teams": "https://platform.topcoder.com/taas-app/topcoder-micro-frontends-teams.js",
"@topcoder/micro-frontends-task-marketplace-app": "https://platform.topcoder.com/tasks/topcoder-micro-frontends-task-marketplace-app.js",
"@topcoder/micro-frontends-earn-app": "https://platform.topcoder.com/earn-app/topcoder-micro-frontends-earn-app.js",
"@topcoder/micro-frontends-submission-review-app": "https://platform.topcoder.com/submissionreview/topcoder-micro-frontends-submission-review-app.js",
"@topcoder/micro-frontends-model-app": "https://platform.topcoder.com/model-app/topcoder-micro-frontends-model-app.js",
"@topcoder/micro-frontends-taas-admin-app": "https://platform.topcoder.com/taas-admin-app/topcoder-micro-frontends-taas-admin-app.js",
"@topcoder/micro-frontends-profile-app": "https://platform.topcoder.com/profile-app/topcoder-micro-frontends-profile-app.js",
"@topcoder/micro-frontends-onboarding-app": "https://platform.topcoder.com/onboarding-app/topcoder-micro-frontends-onboarding-app.js",
"@topcoder/mfe-customer-work": "https://platform.topcoder.com/self-service-app/topcoder-mfe-customer-work.js"
"@topcoder/micro-frontends-model-app": "https://platform.topcoder.com/model-app/topcoder-micro-frontends-model-app.js"
}
}
7 changes: 1 addition & 6 deletions config/micro-frontends-config-qa.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,11 @@
"@topcoder/mfe-header": "https://platform.topcoder-qa.com/navbar/topcoder-mfe-header.js",
"@topcoder/micro-frontends-react-app": "https://platform.topcoder-qa.com/react/topcoder-micro-frontends-react-app.js",
"@topcoder/micro-frontends-angular-app": "https://platform.topcoder-qa.com/angular/main.js",
"@topcoder/micro-frontends-teams": "https://platform.topcoder-qa.com/taas-app/topcoder-micro-frontends-teams.js",
"@topcoder/micro-frontends-task-marketplace-app": "https://platform.topcoder-qa.com/tasks/topcoder-micro-frontends-task-marketplace-app.js",
"@topcoder/micro-frontends-earn-app": "https://platform.topcoder-qa.com/earn-app/topcoder-micro-frontends-earn-app.js",
"@topcoder/micro-frontends-submission-review-app": "https://platform.topcoder-qa.com/submissionreview/topcoder-micro-frontends-submission-review-app.js",
"@topcoder/micro-frontends-model-app": "https://platform.topcoder-qa.com/model-app/topcoder-micro-frontends-model-app.js",
"@topcoder/micro-frontends-community-admin-app": "https://tc-micro-community-admin.herokuapp.com/community-admin-app/topcoder-micro-frontends-community-admin-app.js",
"@topcoder/micro-frontends-taas-admin-app": "https://platform.topcoder-qa.com/taas-admin-app/topcoder-micro-frontends-taas-admin-app.js",
"@topcoder/micro-frontends-profile-app": "https://platform.topcoder-qa.com/profile-app/topcoder-micro-frontends-profile-app.js",
"@topcoder/micro-frontends-onboarding-app": "https://platform.topcoder-qa.com/onboarding-app/topcoder-micro-frontends-onboarding-app.js",
"@topcoder/micro-frontends-forums-app": "https://platform.topcoder-qa.com/forums-app/topcoder-micro-frontends-forums-app.js",
"@topcoder/mfe-customer-work": "https://platform.topcoder-qa.com/self-service-app/topcoder-mfe-customer-work.js"
"@topcoder/micro-frontends-forums-app": "https://platform.topcoder-qa.com/forums-app/topcoder-micro-frontends-forums-app.js"
}
}
24 changes: 0 additions & 24 deletions config/micro-frontends-routes-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
<route path="micro-frontends-angular-route">
<application name="@topcoder/micro-frontends-angular-app"></application>
</route>
<route path="taas">
<application name="@topcoder/micro-frontends-teams"></application>
</route>
<route path="task-marketplace">
<application name="@topcoder/micro-frontends-task-marketplace-app"></application>
</route>
Expand All @@ -22,30 +19,9 @@
<route path="community-admin">
<application name="@topcoder/micro-frontends-community-admin-app"></application>
</route>
<route path="taas-admin">
<application name="@topcoder/micro-frontends-taas-admin-app"></application>
</route>
<route path="profile">
<application name="@topcoder/micro-frontends-profile-app"></application>
</route>
<route path="onboard">
<application name="@topcoder/micro-frontends-onboarding-app"></application>
</route>
<route path="forums">
<application name="@topcoder/micro-frontends-forums-app"></application>
</route>
<route path="self-service">
<application name="@topcoder/mfe-customer-work"></application>
</route>
<route path="work">
<application name="@topcoder/mfe-customer-work"></application>
</route>
<route path="account">
<application name="@topcoder/mfe-customer-work"></application>
</route>
<route path="support">
<application name="@topcoder/mfe-customer-work"></application>
</route>
<route path="unauthorized">
<div style="text-align: center; padding-top: 200px; font-size: 32px;">
You are unauthorized
Expand Down
6 changes: 0 additions & 6 deletions config/micro-frontends-routes-local.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
<route path="micro-frontends-angular-route">
<application name="@topcoder/micro-frontends-angular-app"></application>
</route>
<route path="taas">
<application name="@topcoder/micro-frontends-teams"></application>
</route>
<route path="taas-admin">
<application name="@topcoder/micro-frontends-taas-admin-app"></application>
</route>
Expand All @@ -25,9 +22,6 @@
<route path="community-admin">
<application name="@topcoder/micro-frontends-community-admin-app"></application>
</route>
<route path="profile">
<application name="@topcoder/micro-frontends-profile-app"></application>
</route>
<route path="onboard">
<application name="@topcoder/micro-frontends-onboarding-app"></application>
</route>
Expand Down
24 changes: 0 additions & 24 deletions config/micro-frontends-routes-prod.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
<route path="micro-frontends-angular-route">
<application name="@topcoder/micro-frontends-angular-app"></application>
</route>
<route path="taas">
<application name="@topcoder/micro-frontends-teams"></application>
</route>
<route path="task-marketplace">
<application name="@topcoder/micro-frontends-task-marketplace-app"></application>
</route>
Expand All @@ -19,27 +16,6 @@
<route path="model">
<application name="@topcoder/micro-frontends-model-app"></application>
</route>
<route path="taas-admin">
<application name="@topcoder/micro-frontends-taas-admin-app"></application>
</route>
<route path="profile">
<application name="@topcoder/micro-frontends-profile-app"></application>
</route>
<route path="onboard">
<application name="@topcoder/micro-frontends-onboarding-app"></application>
</route>
<route path="self-service">
<application name="@topcoder/mfe-customer-work"></application>
</route>
<route path="work">
<application name="@topcoder/mfe-customer-work"></application>
</route>
<route path="account">
<application name="@topcoder/mfe-customer-work"></application>
</route>
<route path="support">
<application name="@topcoder/mfe-customer-work"></application>
</route>
<route path="unauthorized">
<div style="text-align: center; padding-top: 200px; font-size: 32px;">
You are unauthorized
Expand Down
24 changes: 0 additions & 24 deletions config/micro-frontends-routes-qa.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
<route path="micro-frontends-angular-route">
<application name="@topcoder/micro-frontends-angular-app"></application>
</route>
<route path="taas">
<application name="@topcoder/micro-frontends-teams"></application>
</route>
<route path="task-marketplace">
<application name="@topcoder/micro-frontends-task-marketplace-app"></application>
</route>
Expand All @@ -22,30 +19,9 @@
<route path="community-admin">
<application name="@topcoder/micro-frontends-community-admin-app"></application>
</route>
<route path="taas-admin">
<application name="@topcoder/micro-frontends-taas-admin-app"></application>
</route>
<route path="profile">
<application name="@topcoder/micro-frontends-profile-app"></application>
</route>
<route path="onboard">
<application name="@topcoder/micro-frontends-onboarding-app"></application>
</route>
<route path="forums">
<application name="@topcoder/micro-frontends-forums-app"></application>
</route>
<route path="self-service">
<application name="@topcoder/mfe-customer-work"></application>
</route>
<route path="work">
<application name="@topcoder/mfe-customer-work"></application>
</route>
<route path="account">
<application name="@topcoder/mfe-customer-work"></application>
</route>
<route path="support">
<application name="@topcoder/mfe-customer-work"></application>
</route>
<route path="unauthorized">
<div style="text-align: center; padding-top: 200px; font-size: 32px;">
You are unauthorized
Expand Down