Skip to content

Commit 727b10f

Browse files
authored
Merge pull request #5389 from nursoltan-s/recommender-final-fix
Recommender final fix
2 parents 0d25612 + 4ecffae commit 727b10f

File tree

47 files changed

+1445
-493
lines changed

Some content is hidden

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

47 files changed

+1445
-493
lines changed

.circleci/config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,14 +275,14 @@ workflows:
275275
filters:
276276
branches:
277277
only:
278-
- feature/poc-recommender-sub-2
278+
- develop
279279
# This is alternate dev env for parallel testing
280280
- "build-test":
281281
context : org-global
282282
filters:
283283
branches:
284284
only:
285-
- feature/poc-recommender-sub-2
285+
- free
286286
# This is alternate dev env for parallel testing
287287
- "build-qa":
288288
context : org-global
@@ -296,14 +296,15 @@ workflows:
296296
filters:
297297
branches:
298298
only:
299-
- feature/poc-recommender-sub-2
299+
- free
300300
# This is stage env for production QA releases
301301
- "build-prod-staging":
302302
context : org-global
303303
filters:
304304
branches:
305305
only:
306306
- develop
307+
- nav-vanilla-forum
307308
- "approve-smoke-test-on-staging":
308309
type: approval
309310
requires:

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ ARG TC_M2M_AUTH0_URL
6565
ARG AUTH_SECRET
6666

6767
ARG COMMUNITY_APP_URL
68+
ARG GSHEETS_API_KEY
6869

6970
################################################################################
7071
# Setting of environment variables in the Docker image.
@@ -120,6 +121,7 @@ ENV CONTENTFUL_EDU_CDN_API_KEY=$CONTENTFUL_EDU_CDN_API_KEY
120121
ENV CONTENTFUL_EDU_PREVIEW_API_KEY=$CONTENTFUL_EDU_PREVIEW_API_KEY
121122
ENV RECRUITCRM_API_KEY=$RECRUITCRM_API_KEY
122123
ENV COMMUNITY_APP_URL=$COMMUNITY_APP_URL
124+
ENV GSHEETS_API_KEY=$GSHEETS_API_KEY
123125

124126
################################################################################
125127
# Testing and build of the application inside the container.

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ exports[`Default render 1`] = `
110110
"title": "Programs",
111111
},
112112
Object {
113-
"href": "https://apps.topcoder-dev.com/forums",
114-
"openNewTab": true,
113+
"href": "https://vanilla.topcoder-dev.com",
115114
"title": "Forums",
116115
},
117116
Object {

__tests__/shared/components/Settings/Preferences/Email/__snapshots__/index.jsx.snap

Lines changed: 41 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -10,69 +10,48 @@ exports[`renders email preferences setting page correctly 1`] = `
1010
E-Mail Preferences
1111
</h1>
1212
<div
13-
className="src-shared-components-Settings-Preferences-Email-___styles__sub-title___2Fh1W"
13+
className="src-shared-components-Settings-Preferences-Email-___styles__unsubscribed-msg___3yh6s"
1414
>
15-
Your preferences
16-
</div>
17-
<div
18-
className="src-shared-components-Settings-Preferences-Email-___styles__preferences-container___38AVF"
19-
>
20-
<ToggleableItem
21-
checked={false}
22-
id="Pipeline"
23-
onToggle={[Function]}
24-
primaryText="Challenge Pipeline"
25-
secondaryText="Subscribe to this newsletter if you want to get updates on the types of challenges coming up in the future. To view these challenges at your leisure you can always visit the <a href=\\"https://www.topcoder.com/community/pipeline\\" style=\\"color:#0d61bf;text-decoration:underline\\">Challenge Pipeline</a> page."
26-
value="Pipeline"
27-
/>
28-
<ToggleableItem
29-
checked={false}
30-
id="Gig Work"
31-
onToggle={[Function]}
32-
primaryText="Gig Work"
33-
secondaryText="This newsletter gets sent out at various times, specifically when we have an opportunity of mass appeal. For more information you can visit the <a href=\\"https://www.topcoder.com/community/taas\\" style=\\"color:#0d61bf;text-decoration:underline\\">Gig Work</a> page."
34-
value="Gig Work"
35-
/>
36-
<ToggleableItem
37-
checked={false}
38-
id="Monthly Newsletter"
39-
onToggle={[Function]}
40-
primaryText="Monthly Newsletter"
41-
secondaryText="This newsletter gets sent out at the end of every month and contains a variety of important information across all of our tracks."
42-
value="Monthly Newsletter"
43-
/>
44-
<ToggleableItem
45-
checked={false}
46-
id="Marathon Match Reminders"
47-
onToggle={[Function]}
48-
primaryText="Marathon Match Reminders"
49-
secondaryText="Receive updates whenever a new marathon match is scheduled."
50-
value="Marathon Match Reminders"
51-
/>
52-
<ToggleableItem
53-
checked={false}
54-
id="Single Round Match Reminders"
55-
onToggle={[Function]}
56-
primaryText="Single Round Match (SRM) Reminders"
57-
secondaryText="Attention Competitive Programmers! If there is any newsletter you are subscribing too, it better be this one. Receive updates when a new SRM event is scheduled."
58-
value="Single Round Match Reminders"
59-
/>
60-
<ToggleableItem
61-
checked={false}
62-
id="TCO Tuesdays"
63-
onToggle={[Function]}
64-
primaryText="TCO Newsletter"
65-
secondaryText="For all the latest updates surrounding the <a href=\\"https://www.topcoder.com/community/member-programs/topcoder-open\\" style=\\"color:#0d61bf;text-decoration:underline\\">Topcoder Open</a> you should definitely be subscribing to this one. Expect an update in your mailbox every Tuesday!"
66-
value="TCO Tuesdays"
67-
/>
68-
<ToggleableItem
69-
checked={false}
70-
id="RDM"
71-
onToggle={[Function]}
72-
primaryText="Rapid Development Match (RDM) Reminders"
73-
secondaryText="Receive notifications of our brand new RDMs! These rated, development matches will be a fun new way to engage with us!"
74-
value="RDM"
75-
/>
15+
<h3>
16+
You are not subscribed to receive Topcoder emails
17+
</h3>
18+
<p>
19+
If this was a mistake or if you would like to resubscribe, please click the button below.
20+
</p>
21+
<form
22+
action="https://topcoder.us13.list-manage.com/subscribe/post?u=65bd5a1857b73643aad556093&id=28bfd3c062"
23+
id="mc-embedded-subscribe-form"
24+
method="post"
25+
name="mc-embedded-subscribe-form"
26+
noValidate={true}
27+
>
28+
<input
29+
id="mce-EMAIL"
30+
name="EMAIL"
31+
readOnly={true}
32+
type="email"
33+
34+
/>
35+
<input
36+
id="gdpr_11101"
37+
name="gdpr[11101]"
38+
type="checkbox"
39+
value="Y"
40+
/>
41+
<input
42+
name="b_65bd5a1857b73643aad556093_28bfd3c062"
43+
tabIndex="-1"
44+
type="text"
45+
value=""
46+
/>
47+
<input
48+
className="submit-button"
49+
id="mc-embedded-subscribe"
50+
name="subscribe"
51+
type="submit"
52+
value="Subscribe"
53+
/>
54+
</form>
7655
</div>
7756
</div>
7857
`;

__tests__/shared/components/__snapshots__/TopcoderFooter.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ exports[`Matches shallow shapshot 1`] = `
185185
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
186186
>
187187
<a
188-
href="https://apps.topcoder.com/forums"
188+
href="https://vanilla.topcoder-dev.com"
189189
>
190190
Forums
191191
</a>

__tests__/shared/components/challenge-listing/__snapshots__/index.jsx.snap

Lines changed: 62 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ exports[`Matches shallow shapshot 1 shapshot 1 1`] = `
55
className="src-shared-components-challenge-listing-___style__ChallengeFiltersExample___3IjeI"
66
id="challengeFilterContainer"
77
>
8+
<Connect(Container)
9+
setFilterState={[MockFunction]}
10+
/>
811
<div
912
className="src-shared-components-challenge-listing-___style__tc-content-wrapper___1MqlF"
1013
>
@@ -21,41 +24,34 @@ exports[`Matches shallow shapshot 1 shapshot 1 1`] = `
2124
setFilterState={[MockFunction]}
2225
/>
2326
</div>
24-
<div
25-
className="src-shared-components-challenge-listing-___style__card-container___3-J4n"
26-
>
27-
<Connect(Container)
28-
setFilterState={[MockFunction]}
29-
/>
30-
<Connect(Listing)
31-
activeBucket="abc"
32-
auth={Object {}}
33-
challenges={Array []}
34-
communityName={null}
35-
expandTag={null}
36-
expandedTags={Array []}
37-
expanding={false}
38-
filterState={Object {}}
39-
loadMoreActive={null}
40-
loadMoreAll={null}
41-
loadMoreMy={null}
42-
loadMoreMyPast={null}
43-
loadMoreOnGoing={null}
44-
loadMoreOpenForRegistration={null}
45-
loadMorePast={null}
46-
loadMoreReviewOpportunities={null}
47-
loadingPastChallenges={false}
48-
newChallengeDetails={false}
49-
openChallengesInNewTabs={false}
50-
preListingMsg={null}
51-
prizeMode="money-usd"
52-
reviewOpportunities={Array []}
53-
selectBucket={[MockFunction]}
54-
setFilterState={[MockFunction]}
55-
setSort={[MockFunction]}
56-
sorts={Object {}}
57-
/>
58-
</div>
27+
<Connect(Listing)
28+
activeBucket="abc"
29+
auth={Object {}}
30+
challenges={Array []}
31+
communityName={null}
32+
expandTag={null}
33+
expandedTags={Array []}
34+
expanding={false}
35+
filterState={Object {}}
36+
loadMoreActive={null}
37+
loadMoreAll={null}
38+
loadMoreMy={null}
39+
loadMoreMyPast={null}
40+
loadMoreOnGoing={null}
41+
loadMoreOpenForRegistration={null}
42+
loadMorePast={null}
43+
loadMoreReviewOpportunities={null}
44+
loadingPastChallenges={false}
45+
newChallengeDetails={false}
46+
openChallengesInNewTabs={false}
47+
preListingMsg={null}
48+
prizeMode="money-usd"
49+
reviewOpportunities={Array []}
50+
selectBucket={[MockFunction]}
51+
setFilterState={[MockFunction]}
52+
setSort={[MockFunction]}
53+
sorts={Object {}}
54+
/>
5955
</div>
6056
</div>
6157
`;
@@ -65,6 +61,9 @@ exports[`Matches shallow shapshot 2 shapshot 2 1`] = `
6561
className="src-shared-components-challenge-listing-___style__ChallengeFiltersExample___3IjeI"
6662
id="challengeFilterContainer"
6763
>
64+
<Connect(Container)
65+
setFilterState={[MockFunction]}
66+
/>
6867
<div
6968
className="src-shared-components-challenge-listing-___style__tc-content-wrapper___1MqlF"
7069
>
@@ -81,41 +80,34 @@ exports[`Matches shallow shapshot 2 shapshot 2 1`] = `
8180
setFilterState={[MockFunction]}
8281
/>
8382
</div>
84-
<div
85-
className="src-shared-components-challenge-listing-___style__card-container___3-J4n"
86-
>
87-
<Connect(Container)
88-
setFilterState={[MockFunction]}
89-
/>
90-
<Connect(Listing)
91-
activeBucket="abc"
92-
auth={Object {}}
93-
challenges={Array []}
94-
communityName={null}
95-
expandTag={null}
96-
expandedTags={Array []}
97-
expanding={false}
98-
filterState={Object {}}
99-
loadMoreActive={null}
100-
loadMoreAll={null}
101-
loadMoreMy={null}
102-
loadMoreMyPast={null}
103-
loadMoreOnGoing={null}
104-
loadMoreOpenForRegistration={null}
105-
loadMorePast={null}
106-
loadMoreReviewOpportunities={null}
107-
loadingPastChallenges={false}
108-
newChallengeDetails={false}
109-
openChallengesInNewTabs={false}
110-
preListingMsg={null}
111-
prizeMode="money-usd"
112-
reviewOpportunities={Array []}
113-
selectBucket={[MockFunction]}
114-
setFilterState={[MockFunction]}
115-
setSort={[MockFunction]}
116-
sorts={Object {}}
117-
/>
118-
</div>
83+
<Connect(Listing)
84+
activeBucket="abc"
85+
auth={Object {}}
86+
challenges={Array []}
87+
communityName={null}
88+
expandTag={null}
89+
expandedTags={Array []}
90+
expanding={false}
91+
filterState={Object {}}
92+
loadMoreActive={null}
93+
loadMoreAll={null}
94+
loadMoreMy={null}
95+
loadMoreMyPast={null}
96+
loadMoreOnGoing={null}
97+
loadMoreOpenForRegistration={null}
98+
loadMorePast={null}
99+
loadMoreReviewOpportunities={null}
100+
loadingPastChallenges={false}
101+
newChallengeDetails={false}
102+
openChallengesInNewTabs={false}
103+
preListingMsg={null}
104+
prizeMode="money-usd"
105+
reviewOpportunities={Array []}
106+
selectBucket={[MockFunction]}
107+
setFilterState={[MockFunction]}
108+
setSort={[MockFunction]}
109+
sorts={Object {}}
110+
/>
119111
</div>
120112
</div>
121113
`;

build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ docker build -t $TAG \
4444
--build-arg CONTENTFUL_COMCAST_CDN_API_KEY=$CONTENTFUL_COMCAST_CDN_API_KEY \
4545
--build-arg CONTENTFUL_COMCAST_PREVIEW_API_KEY=$CONTENTFUL_COMCAST_PREVIEW_API_KEY \
4646
--build-arg RECRUITCRM_API_KEY=$RECRUITCRM_API_KEY \
47+
--build-arg GSHEETS_API_KEY=$GSHEETS_API_KEY \
4748
--build-arg COMMUNITY_APP_URL=$COMMUNITY_APP_URL .
4849

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

config/custom-environment-variables.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,5 @@ module.exports = {
104104
AUTH0_PROXY_SERVER_URL: 'TC_M2M_AUTH0_PROXY_SERVER_URL',
105105
TOKEN_CACHE_TIME: 'TOKEN_CACHE_TIME',
106106
},
107+
GSHEETS_API_KEY: 'GSHEETS_API_KEY',
107108
};

config/default.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ module.exports = {
111111
BLOG_FEED: 'https://www.topcoder.com/blog/feed/',
112112
COMMUNITY: 'https://community.topcoder-dev.com',
113113
FORUMS: 'https://apps.topcoder-dev.com/forums',
114+
FORUMS_VANILLA: 'https://vanilla.topcoder-dev.com',
114115
HELP: 'https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles',
115116
SUBMISSION_REVIEW: 'https://submission-review.topcoder-dev.com',
116117

@@ -249,6 +250,8 @@ module.exports = {
249250
RECRUITCRM_API_KEY: '',
250251
},
251252

253+
GSHEETS_API_KEY: 'AIzaSyBRdKySN5JNCb2H6ZxJdTTvp3cWU51jiOQ',
254+
252255
AUTH_CONFIG: {
253256
AUTH0_URL: 'TC_M2M_AUTH0_URL',
254257
AUTH0_AUDIENCE: 'TC_M2M_AUDIENCE',
@@ -358,8 +361,7 @@ module.exports = {
358361
},
359362
{
360363
title: 'Forums',
361-
href: 'https://apps.topcoder-dev.com/forums',
362-
openNewTab: true,
364+
href: 'https://vanilla.topcoder-dev.com',
363365
},
364366
{
365367
title: 'Statistics',
@@ -412,4 +414,5 @@ module.exports = {
412414
GUIKIT: {
413415
DEBOUNCE_ON_CHANGE_TIME: 150,
414416
},
417+
ENABLE_RECOMMENDER: true,
415418
};

0 commit comments

Comments
 (0)