Skip to content

Commit 40f5b9d

Browse files
Merge pull request #6357 from topcoder-platform/develop
Release v1.17.0
2 parents ab49338 + 5f8a965 commit 40f5b9d

File tree

176 files changed

+6815
-3496
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+6815
-3496
lines changed

.circleci/config.yml

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ install_dependency: &install_dependency
2424
apk upgrade
2525
apk add --no-cache jq py-pip sudo
2626
sudo pip install awscli --upgrade
27-
27+
2828
install_deploysuite: &install_deploysuite
2929
name: Installation of install_deploysuite.
3030
command: |
@@ -35,10 +35,10 @@ install_deploysuite: &install_deploysuite
3535
restore_cache_settings_for_build: &restore_cache_settings_for_build
3636
key: docker-node-modules-v3-{{ checksum "package-lock.json" }}
3737

38-
save_cache_settings: &save_cache_settings
39-
key: docker-node-modules-v3-{{ checksum "package-lock.json" }}
38+
save_cache_settings: &save_cache_settings
39+
key: docker-node-modules-v3-{{ checksum "package-lock.json" }}
4040
paths:
41-
- node_modules
41+
- node_modules
4242

4343
build_docker_image: &build_docker_image
4444
name: Build of Docker image
@@ -59,11 +59,11 @@ jobs:
5959
# Restoration of node_modules from cache.
6060
- restore_cache: *restore_cache_settings_for_build
6161
# Build of Docker image.
62-
- run:
62+
- run:
6363
name: "configuring environment"
6464
command: |
6565
./awsconfiguration.sh DEV
66-
./buildenv.sh -e DEV -b dev_communityapp_buildvar,dev_communityapp_deployvar
66+
./buildenv.sh -e DEV -b dev_communityapp_buildvar,dev_communityapp_deployvar
6767
- run: *build_docker_image
6868
# Caching node modules.
6969
- save_cache: *save_cache_settings
@@ -86,11 +86,11 @@ jobs:
8686
- run: *install_deploysuite
8787
# Restoration of node_modules from cache.
8888
- restore_cache: *restore_cache_settings_for_build
89-
- run:
89+
- run:
9090
name: "configuring environment"
9191
command: |
9292
./awsconfiguration.sh DEV
93-
./buildenv.sh -e DEV -b test_communityapp_buildvar,test_communityapp_deployvar
93+
./buildenv.sh -e DEV -b test_communityapp_buildvar,test_communityapp_deployvar
9494
# Build of Docker image.
9595
- run: *build_docker_image
9696
# Caching node modules.
@@ -114,11 +114,11 @@ jobs:
114114
- run: *install_deploysuite
115115
# Restoration of node_modules from cache.
116116
- restore_cache: *restore_cache_settings_for_build
117-
- run:
117+
- run:
118118
name: "configuring environment"
119119
command: |
120120
./awsconfiguration.sh DEV
121-
./buildenv.sh -e DEV -b qa_communityapp_buildvar,qa_communityapp_deployvar
121+
./buildenv.sh -e DEV -b qa_communityapp_buildvar,qa_communityapp_deployvar
122122
# Build of Docker image.
123123
- run: *build_docker_image
124124
# Caching node modules.
@@ -142,7 +142,7 @@ jobs:
142142
- run: *install_deploysuite
143143
# Restoration of node_modules from cache.
144144
- restore_cache: *restore_cache_settings_for_build
145-
- run:
145+
- run:
146146
name: "configuring environment"
147147
command: |
148148
./awsconfiguration.sh PROD
@@ -158,7 +158,7 @@ jobs:
158158
source awsenvconf
159159
source buildenvvar
160160
./master_deploy.sh -d ECS -e PROD -t latest -s beta_communityapp_taskvar, -i communityapp
161-
161+
162162
# Build & Deploy against prod api backend
163163
"build-prod-staging":
164164
<<: *defaults
@@ -170,7 +170,7 @@ jobs:
170170
- run: *install_deploysuite
171171
# Restoration of node_modules from cache.
172172
- restore_cache: *restore_cache_settings_for_build
173-
- run:
173+
- run:
174174
name: "configuring environment"
175175
command: |
176176
./awsconfiguration.sh PROD
@@ -191,7 +191,7 @@ jobs:
191191
--header "Circle-Token: ${CIRCLE_TOKEN}" \
192192
--header 'content-type: application/json' \
193193
--data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
194-
194+
195195
# Build & Deploy against production backend
196196
"build-prod":
197197
<<: *defaults
@@ -203,15 +203,15 @@ jobs:
203203
- run: *install_deploysuite
204204
# Restoration of node_modules from cache.
205205
- restore_cache: *restore_cache_settings_for_build
206-
- run:
206+
- run:
207207
name: "configuring environment"
208208
command: |
209209
./awsconfiguration.sh PROD
210210
./buildenv.sh -e PROD -b prod_communityapp_buildvar,prod_communityapp_deployvar
211211
# Build of Docker image.
212212
- run: *build_docker_image
213213
# Caching node modules.
214-
- save_cache: *save_cache_settings
214+
- save_cache: *save_cache_settings
215215
# Deployment.
216216
- deploy:
217217
name: Running MasterScript
@@ -224,19 +224,19 @@ jobs:
224224
--header "Circle-Token: ${CIRCLE_TOKEN}" \
225225
--header 'content-type: application/json' \
226226
--data '{"branch":"'"$CIRCLE_BRANCH"'","parameters":{"run_smoketesting":true , "run_performancetesting":false, "run_basedeployment": false}}'
227-
227+
228228
# Automated Smoke Testing against Staging
229229
Smoke-Testing-On-Staging:
230230
<<: *defaults
231-
steps:
231+
steps:
232232
# Initialization.
233233
- checkout
234234
- setup_remote_docker
235235
- run: *install_dependency
236236
- run: *install_deploysuite
237237
# Restoration of node_modules from cache.
238238
- restore_cache: *restore_cache_settings_for_build
239-
- run:
239+
- run:
240240
name: "configuring environment"
241241
command: |
242242
./awsconfiguration.sh PROD
@@ -250,19 +250,19 @@ jobs:
250250
./automated-smoke-test/smoketest.sh automation-config-staging.json prod
251251
- store_artifacts:
252252
path: ./automated-smoke-test/test-results
253-
253+
254254
# Automated Smoke Testing against Production
255255
Smoke-Testing-On-Production:
256256
<<: *defaults
257-
steps:
257+
steps:
258258
# Initialization.
259259
- checkout
260260
- setup_remote_docker
261261
- run: *install_dependency
262262
- run: *install_deploysuite
263263
# Restoration of node_modules from cache.
264264
- restore_cache: *restore_cache_settings_for_build
265-
- run:
265+
- run:
266266
name: "configuring environment"
267267
command: |
268268
./awsconfiguration.sh PROD
@@ -290,7 +290,7 @@ jobs:
290290
- run:
291291
name: Config Git
292292
command: git config --global url."https://git@".insteadOf git://
293-
- run:
293+
- run:
294294
name: App npm install
295295
command: npm install
296296
no_output_timeout: 20m
@@ -299,7 +299,7 @@ jobs:
299299
paths:
300300
- node_modules
301301
- run: npm test
302-
302+
303303
Performance-Testing:
304304
docker:
305305
# specify the version you desire here
@@ -337,7 +337,7 @@ jobs:
337337

338338
- store_artifacts:
339339
path: target/jmeter/reports
340-
340+
341341
workflows:
342342
version: 2
343343
Build:
@@ -349,17 +349,18 @@ workflows:
349349
filters:
350350
branches:
351351
only:
352-
- free
352+
- develop
353+
- reskin
353354
# This is alternate dev env for parallel testing
354355
- "build-test":
355-
context : org-global
356+
context : org-global
356357
filters:
357358
branches:
358-
only:
359+
only:
359360
- circleci-fix
360361
# This is alternate dev env for parallel testing
361362
- "build-qa":
362-
context : org-global
363+
context : org-global
363364
filters:
364365
branches:
365366
only:
@@ -373,20 +374,20 @@ workflows:
373374
- footer-update
374375
# This is stage env for production QA releases
375376
- "build-prod-staging":
376-
context : org-global
377+
context : org-global
377378
filters: &filters-staging
378379
branches:
379380
only:
380381
- develop
381382
- stat_marathon_match_link
382-
# Production builds are exectuted
383+
# Production builds are exectuted
383384
# when PR is merged to the master
384385
# Don't change anything in this configuration
385-
# That might trigger wrong branch to be
386+
# That might trigger wrong branch to be
386387
# deployed on the production
387388
# master branch.
388389
- "build-prod":
389-
context : org-global
390+
context : org-global
390391
filters: &filters-prod
391392
branches:
392393
only:

__tests__/shared/components/ProfilePage/__snapshots__/index.jsx.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ exports[`renders a full Profile correctly 1`] = `
3030
<ProfileHeader
3131
copilot={true}
3232
country=""
33+
hasMM={null}
3334
info={
3435
Object {
3536
"competitionCountryCode": "USA",
@@ -198,6 +199,7 @@ exports[`renders a full Profile correctly 1`] = `
198199
<StatsCategory
199200
className=""
200201
handle="testHandle"
202+
hasMM={null}
201203
inModal={false}
202204
stats={
203205
Object {
@@ -644,6 +646,7 @@ exports[`renders an empty Profile correctly 1`] = `
644646
<ProfileHeader
645647
copilot={false}
646648
country=""
649+
hasMM={null}
647650
info={
648651
Object {
649652
"competitionCountryCode": "USA",
@@ -698,6 +701,7 @@ exports[`renders an empty Profile correctly 1`] = `
698701
<StatsCategory
699702
className=""
700703
handle="testHandle"
704+
hasMM={null}
701705
inModal={false}
702706
stats={
703707
Object {

__tests__/shared/components/SortingSelectBar.jsx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
22
import Renderer from 'react-test-renderer/shallow';
3-
import TU from 'react-dom/test-utils';
43
import SortingSelectBar from 'components/SortingSelectBar';
54

65
const mockData = {
@@ -30,21 +29,3 @@ test('Matches shallow shapshot', () => {
3029
));
3130
expect(renderer.getRenderOutput()).toMatchSnapshot();
3231
});
33-
34-
class Wrapper extends React.Component {
35-
componentDidMount() {}
36-
37-
render() {
38-
return <SortingSelectBar {...this.props} />;
39-
}
40-
}
41-
42-
const instance = TU.renderIntoDocument((<Wrapper {...mockData} />));
43-
44-
test('Render properly', () => {
45-
const dropdown = TU.findAllInRenderedTree(instance, item => item && item.className && item.className.match('Select-control'));
46-
TU.Simulate.touchEnd(dropdown[0]);
47-
const options = TU.findAllInRenderedTree(instance, item => item && item.className && item.className.match('Select-option'));
48-
expect(options).toHaveLength(1);
49-
TU.Simulate.click(options[0]);
50-
});

0 commit comments

Comments
 (0)