File tree 5 files changed +44
-11
lines changed
__tests__/shared/components/__snapshots__
containers/tc-communities
5 files changed +44
-11
lines changed Original file line number Diff line number Diff line change @@ -174,24 +174,21 @@ workflows:
174
174
filters :
175
175
branches :
176
176
only :
177
- - develop
178
- - comcast-community
177
+ - this-is-before-comcast
179
178
# This is alternate dev env for parallel testing
180
179
- " build-test " :
181
180
context : org-global
182
181
filters :
183
182
branches :
184
183
only :
185
- - nav-hot-fix
186
- - feature-contentful
184
+ - comcast-community
187
185
# This is beta env for production soft releases
188
186
- " build-prod-beta " :
189
187
context : org-global
190
188
filters :
191
189
branches :
192
190
only :
193
- - develop
194
- - comcast-community
191
+ - hot-fix-accessing-comcast
195
192
# Production builds are exectuted only on tagged commits to the
196
193
# master branch.
197
194
- " build-prod " :
Original file line number Diff line number Diff line change @@ -512,6 +512,22 @@ exports[`Matches shallow shapshot 1`] = `
512
512
Zurich Community
513
513
</Link >
514
514
</li >
515
+ <li >
516
+ <Link
517
+ replace = { false }
518
+ to = " /__community__/tco20"
519
+ >
520
+ TCO20
521
+ </Link >
522
+ </li >
523
+ <li >
524
+ <Link
525
+ replace = { false }
526
+ to = " /__community__/comcast"
527
+ >
528
+ Comcast Community
529
+ </Link >
530
+ </li >
515
531
</ul >
516
532
<h3 >
517
533
Previews of Contentful Components
Original file line number Diff line number Diff line change 14
14
"lint:js" : " eslint --ext .js,.jsx ." ,
15
15
"lint:scss" : " stylelint **/*.scss --syntax scss" ,
16
16
"start" : " cross-env BABEL_ENV=production NODE_ENV=production node ./bin/www" ,
17
- "test" : " npm run lint && npm run --runInBand jest" ,
17
+ "test" : " npm run lint && npm run jest" ,
18
18
"commitlint" : " commitlint -E HUSKY_GIT_PARAMS" ,
19
19
"release:changelog" : " npm run conventional-changelog -- -p angular -i CHANGELOG.md -s" ,
20
20
"postinstall" : " rimraf node_modules/navigation-component/node_modules/topcoder-react-utils && rimraf node_modules/topcoder-react-ui-kit/node_modules/topcoder-react-utils"
120
120
"redux-promise" : " ^0.6.0" ,
121
121
"request-ip" : " ^2.0.2" ,
122
122
"require-context" : " ^1.1.0" ,
123
- "serialize-javascript" : " ^1.5.0 " ,
123
+ "serialize-javascript" : " ^2.1.1 " ,
124
124
"serve-favicon" : " ^2.5.0" ,
125
125
"sharp" : " ^0.20.5" ,
126
126
"shortid" : " ^2.2.8" ,
Original file line number Diff line number Diff line change @@ -427,6 +427,22 @@ export default function Content() {
427
427
Zurich Community
428
428
</ Link >
429
429
</ li >
430
+ < li >
431
+ < Link
432
+ replace = { false }
433
+ to = "/__community__/tco20"
434
+ >
435
+ TCO20
436
+ </ Link >
437
+ </ li >
438
+ < li >
439
+ < Link
440
+ replace = { false }
441
+ to = "/__community__/comcast"
442
+ >
443
+ Comcast Community
444
+ </ Link >
445
+ </ li >
430
446
431
447
</ ul >
432
448
Original file line number Diff line number Diff line change @@ -49,9 +49,13 @@ class Loader extends React.Component {
49
49
/* TODO: This is a hacky way to handle SSO authentication for TopGear
50
50
* (Wipro) and Zurich community visitors. Should be re-factored, but not it is not
51
51
* clear, what exactly do we need to support it in general. */
52
- if ( communityId === 'wipro' && ! visitorGroups ) {
52
+ if ( ( communityId === 'wipro' || communityId === 'comcast' ) && ! visitorGroups ) {
53
53
const returnUrl = encodeURIComponent ( window . location . href ) ;
54
- window . location = `${ config . URL . AUTH } /sso-login/?retUrl=${ returnUrl } &utm_source=${ communityId } ` ;
54
+ let subpath = 'member' ;
55
+ if ( communityId === 'wipro' ) {
56
+ subpath = 'sso-login/' ;
57
+ }
58
+ window . location = `${ config . URL . AUTH } /${ subpath } ?retUrl=${ returnUrl } &utm_source=${ communityId } ` ;
55
59
}
56
60
}
57
61
@@ -88,7 +92,7 @@ class Loader extends React.Component {
88
92
* while that redirection is handled we want to show page loading
89
93
* placeholder rather than access denied message. In future a more
90
94
* generic implementation of this should be put here. */
91
- if ( communityId === 'wipro' ) return < LoadingPagePlaceholder /> ;
95
+ if ( communityId === 'wipro' || communityId === 'comcast' ) return < LoadingPagePlaceholder /> ;
92
96
// Only fo Zurich community we implement special auth system described
93
97
// here: https://github.com/topcoder-platform/community-app/issues/1878
94
98
// at this check specially we allow not authenticated visitos
You can’t perform that action at this time.
0 commit comments