Skip to content

Commit d5b21ee

Browse files
committed
Merge remote-tracking branch 'origin/master' into develop
2 parents 89c1bcc + e309414 commit d5b21ee

File tree

25 files changed

+5652
-6328
lines changed

25 files changed

+5652
-6328
lines changed

.circleci/config.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ install_dependency: &install_dependency
1818
install_deploysuite: &install_deploysuite
1919
name: Installation of install_deploysuite.
2020
command: |
21-
git clone --branch dev_comm https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
21+
git clone --branch v1.3 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
2222
cp ./../buildscript/master_deploy.sh .
2323
cp ./../buildscript/buildenv.sh .
2424
cp ./../buildscript/awsconfiguration.sh .
@@ -118,7 +118,7 @@ jobs:
118118
command: |
119119
source awsenvconf
120120
source buildenvvar
121-
./master_deploy.sh -d ECS -e PROD -t latest -s beta_communityapp_taskvar, -i communityapp
121+
./master_deploy.sh -d ECS -e PROD -t latest -s beta_communityapp_taskvar -i communityapp
122122
123123
# Build & Deploy against production backend
124124
"build-prod":
@@ -183,16 +183,13 @@ workflows:
183183
branches:
184184
only:
185185
- hot-fix
186-
- feature-groups-api
187186
# This is beta env for production soft releases
188187
- "build-prod-beta":
189188
context : org-global
190189
filters:
191190
branches:
192191
only:
193192
- develop
194-
- feature-groups-api
195-
- mm-broker-api
196193
# Production builds are exectuted only on tagged commits to the
197194
# master branch.
198195
- "build-prod":

Dockerfile

-8
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ ARG TC_M2M_CLIENT_SECRET
5454
ARG TC_M2M_AUDIENCE
5555
ARG TC_M2M_GRANT_TYPE
5656

57-
ARG TC_M2M_AUTH0_PROXY_SERVER_URL
58-
ARG TC_M2M_AUTH0_URL
59-
ARG AUTH_SECRET
60-
6157
################################################################################
6258
# Setting of environment variables in the Docker image.
6359

@@ -97,10 +93,6 @@ ENV TC_M2M_CLIENT_SECRET=$TC_M2M_CLIENT_SECRET
9793
ENV TC_M2M_AUDIENCE=$TC_M2M_AUDIENCE
9894
ENV TC_M2M_GRANT_TYPE=$TC_M2M_GRANT_TYPE
9995

100-
ENV TC_M2M_AUTH0_PROXY_SERVER_URL=$TC_M2M_AUTH0_PROXY_SERVER_URL
101-
ENV TC_M2M_AUTH0_URL=$TC_M2M_AUTH0_URL
102-
ENV AUTH_SECRET=$AUTH_SECRET
103-
10496
ENV CONTENTFUL_MANAGEMENT_TOKEN=$CONTENTFUL_MANAGEMENT_TOKEN
10597
ENV CONTENTFUL_EDU_SPACE_ID=$CONTENTFUL_EDU_SPACE_ID
10698
ENV CONTENTFUL_EDU_CDN_API_KEY=$CONTENTFUL_EDU_CDN_API_KEY

build.sh

-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ docker build -t $TAG \
3636
--build-arg TC_M2M_CLIENT_ID=$TC_M2M_CLIENT_ID \
3737
--build-arg TC_M2M_CLIENT_SECRET=$TC_M2M_CLIENT_SECRET \
3838
--build-arg TC_M2M_AUDIENCE=$TC_M2M_AUDIENCE \
39-
--build-arg TC_M2M_AUTH0_PROXY_SERVER_URL=$TC_M2M_AUTH0_PROXY_SERVER_URL \
40-
--build-arg TC_M2M_AUTH0_URL=$TC_M2M_AUTH0_URL \
41-
--build-arg AUTH_SECRET=$AUTH_SECRET \
4239
--build-arg TC_M2M_GRANT_TYPE=$TC_M2M_GRANT_TYPE .
4340

4441
# Copies "node_modules" from the created image, if necessary for caching.

config/custom-environment-variables.js

-7
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,11 @@ module.exports = {
7474

7575
OPEN_EXCHANGE_RATES_KEY: 'OPEN_EXCHANGE_RATES_KEY',
7676

77-
JWT_AUTH: {
78-
SECRET: 'AUTH_SECRET',
79-
VALID_ISSUERS: 'VALID_ISSUERS',
80-
},
81-
8277
TC_M2M: {
83-
AUTH0_URL: 'TC_M2M_AUTH0_URL',
8478
CLIENT_ID: 'TC_M2M_CLIENT_ID',
8579
CLIENT_SECRET: 'TC_M2M_CLIENT_SECRET',
8680
AUDIENCE: 'TC_M2M_AUDIENCE',
8781
GRANT_TYPE: 'TC_M2M_GRANT_TYPE',
88-
AUTH0_PROXY_SERVER_URL: 'TC_M2M_AUTH0_PROXY_SERVER_URL',
8982
},
9083
},
9184
};

config/default.js

-17
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
/* All availalbe configuration options should be documented in the default
22
* config file, even when they are overriden in every custom configuration. */
33

4-
const { deferConfig } = require('config/defer');
5-
64
module.exports = {
75
/* Configuration of Topcoder APIs. */
86
API: {
97
V2: 'https://api.topcoder-dev.com/v2',
108
V3: 'https://api.topcoder-dev.com/v3',
119
V4: 'https://api.topcoder-dev.com/v4',
1210
V5: 'https://api.topcoder-dev.com/v5',
13-
MM_BROKER: '/api',
1411
},
1512

1613
/* Auth0 config */
@@ -213,29 +210,15 @@ module.exports = {
213210

214211
OPEN_EXCHANGE_RATES_KEY: '',
215212

216-
/* Review type ID for AV Scans. */
217-
AV_SCAN_SCORER_REVIEW_TYPE_ID: '',
218-
219-
JWT_AUTH: {
220-
SECRET: '',
221-
VALID_ISSUERS: deferConfig(function d() {
222-
return this.VALID_ISSUERS ? this.VALID_ISSUERS.replace(/\\"/g, '')
223-
: '["https://api.topcoder-dev.com", "https://api.topcoder.com", "https://topcoder-dev.auth0.com/"]';
224-
}),
225-
},
226-
227213
/* These credentials allow Community App server to communicate with
228214
* protected TC API endpoints (on behalf of the app itself). */
229215
TC_M2M: {
230-
AUTH0_URL: '',
231216
CLIENT_ID: '',
232217
CLIENT_SECRET: '',
233218
AUDIENCE: '',
234219
GRANT_TYPE: '',
235-
AUTH0_PROXY_SERVER_URL: '',
236220
},
237221
},
238-
239222
SECONDARY_MENU_FOR_LOGGED_USER: [
240223
{
241224
title: 'Dashboard',

config/development.js

-4
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,4 @@ module.exports = {
44
URL: {
55
USER_SETTINGS: '', /* No dev server is available for saved searches */
66
},
7-
8-
SECRET: {
9-
AV_SCAN_SCORER_REVIEW_TYPE_ID: '68c5a381-c8ab-48af-92a7-7a869a4ee6c3',
10-
},
117
};

config/production.js

-4
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,4 @@ module.exports = {
9393
title: 'Switch to BUSINESS',
9494
href: 'https://connect.topcoder.com',
9595
},
96-
97-
SECRET: {
98-
AV_SCAN_SCORER_REVIEW_TYPE_ID: '55bbb17d-aac2-45a6-89c3-a8d102863d05',
99-
},
10096
};

config/production.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

docs/postman/TC MM Broker.postman_collection.json

-67
This file was deleted.

docs/postman/TC MM Broker.postman_environment.json

-19
This file was deleted.

0 commit comments

Comments
 (0)