Skip to content

Recommender final fix #5389

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
cd6952e
Merge pull request #5302 from topcoder-platform/develop
luizrrodrigues Jan 14, 2021
dc33796
Merge pull request #5305 from topcoder-platform/develop
sushilshinde Jan 15, 2021
c84b912
Merge pull request #5317 from topcoder-platform/develop
luizrrodrigues Jan 26, 2021
fa14294
init code #5341
kkartunov Feb 8, 2021
222ce86
Fixes for #5341
kkartunov Feb 9, 2021
4b9f820
ci: on test
kkartunov Feb 9, 2021
bf5437d
fixed tests
kkartunov Feb 9, 2021
3012dd7
Merge branch 'email-pref-revamp' of https://github.com/topcoder-platf…
kkartunov Feb 9, 2021
e34f185
implements #5343
kkartunov Feb 10, 2021
5a22c37
ci: on test
kkartunov Feb 10, 2021
c5ac5cc
fixes for #5341
kkartunov Feb 10, 2021
ef40455
updated text for unsubscribed
kkartunov Feb 10, 2021
f9b4a21
Fixed Docker file
kkartunov Feb 11, 2021
cf02e74
Merge branch 'gsheet-contentful' of https://github.com/topcoder-platf…
kkartunov Feb 11, 2021
141525b
Final fixes email revamp
kkartunov Feb 11, 2021
719c10b
Merge pull request #5348 from topcoder-platform/email-pref-revamp
luizrrodrigues Feb 16, 2021
4857f16
Merge branch 'develop' into gsheet-contentful
luizrrodrigues Feb 16, 2021
8517bfe
Merge pull request #5345 from topcoder-platform/gsheet-contentful
luizrrodrigues Feb 16, 2021
5ed0def
Revert "Gsheet contentful"
luizrrodrigues Feb 16, 2021
51fc65e
Merge pull request #5355 from topcoder-platform/revert-5345-gsheet-co…
luizrrodrigues Feb 16, 2021
51c196a
Revert "Email pref revamp"
luizrrodrigues Feb 16, 2021
799ff74
Merge pull request #5356 from topcoder-platform/revert-5348-email-pre…
luizrrodrigues Feb 16, 2021
717b177
Revert "Merge branch 'develop' into gsheet-contentful"
luizrrodrigues Feb 16, 2021
f9e7bc5
Merge branch 'develop' into gsheet-contentful
luizrrodrigues Feb 16, 2021
8704b34
Revert "Merge pull request #5355 from topcoder-platform/revert-5345-g…
luizrrodrigues Feb 16, 2021
48b92f3
ci: deploy gsheet-contentful-develop to Test env
luizrrodrigues Feb 16, 2021
3692d7b
Merge pull request #5358 from topcoder-platform/gsheet-contentful-dev…
luizrrodrigues Feb 16, 2021
d3e2cf4
Revert "Merge pull request #5356 from topcoder-platform/revert-5348-e…
luizrrodrigues Feb 16, 2021
c8da3e8
Unsubscribe via mc form
kkartunov Feb 17, 2021
8791063
Update nav item for TopGear
ajefts Feb 17, 2021
2a9f190
ci: Deploy topgear-nav-update to Test env
luizrrodrigues Feb 19, 2021
be60a1d
Update nav Forums to Vanilla
luizrrodrigues Feb 19, 2021
1d41d40
ci: Deploy nav-vanilla-forum to Stag and QA envs
luizrrodrigues Feb 19, 2021
7a911d4
Fix snapshot
luizrrodrigues Feb 19, 2021
a7f7f54
Update forums link on footer to Vanilla
luizrrodrigues Feb 19, 2021
435b03c
ci: Remove nav-vanilla-forum from Stag env
luizrrodrigues Feb 19, 2021
fb73363
Fix snapshot
luizrrodrigues Feb 19, 2021
5dd95b2
Nav Forums open in same window
luizrrodrigues Feb 19, 2021
d9d2671
Merge pull request #5363 from topcoder-platform/email-pref-revamp-dev…
luizrrodrigues Feb 22, 2021
7434c97
Merge pull request #5374 from topcoder-platform/nav-vanilla-forum
luizrrodrigues Feb 22, 2021
efa252b
Merge branch 'develop' into topgear-nav-update
luizrrodrigues Feb 22, 2021
b2f4540
Merge pull request #5365 from topcoder-platform/topgear-nav-update
luizrrodrigues Feb 22, 2021
3e5a82b
ci: Deploy develop to Stag env
luizrrodrigues Feb 22, 2021
7ebced4
Forums Vanilla hotfix to link to old forum in Challenge Spec
luizrrodrigues Feb 22, 2021
5042a6c
ci: Deploy nav-vanilla-forum to Stag env
luizrrodrigues Feb 23, 2021
108a7ac
Merge pull request #5378 from topcoder-platform/nav-vanilla-forum
luizrrodrigues Feb 23, 2021
458de1b
recommender final fixes
nursoltan-s Feb 23, 2021
1fb1aac
Merge branch 'develop' into recommender-final-fix
nursoltan-s Feb 23, 2021
bb43620
Fixed test, add env variable
nursoltan-s Feb 24, 2021
4ecffae
updated test snapshots
nursoltan-s Feb 24, 2021
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
7 changes: 4 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,14 +275,14 @@ workflows:
filters:
branches:
only:
- feature/poc-recommender-sub-2
- develop
# This is alternate dev env for parallel testing
- "build-test":
context : org-global
filters:
branches:
only:
- feature/poc-recommender-sub-2
- free
# This is alternate dev env for parallel testing
- "build-qa":
context : org-global
Expand All @@ -296,14 +296,15 @@ workflows:
filters:
branches:
only:
- feature/poc-recommender-sub-2
- free
# This is stage env for production QA releases
- "build-prod-staging":
context : org-global
filters:
branches:
only:
- develop
- nav-vanilla-forum
- "approve-smoke-test-on-staging":
type: approval
requires:
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ ARG TC_M2M_AUTH0_URL
ARG AUTH_SECRET

ARG COMMUNITY_APP_URL
ARG GSHEETS_API_KEY

################################################################################
# Setting of environment variables in the Docker image.
Expand Down Expand Up @@ -120,6 +121,7 @@ ENV CONTENTFUL_EDU_CDN_API_KEY=$CONTENTFUL_EDU_CDN_API_KEY
ENV CONTENTFUL_EDU_PREVIEW_API_KEY=$CONTENTFUL_EDU_PREVIEW_API_KEY
ENV RECRUITCRM_API_KEY=$RECRUITCRM_API_KEY
ENV COMMUNITY_APP_URL=$COMMUNITY_APP_URL
ENV GSHEETS_API_KEY=$GSHEETS_API_KEY

################################################################################
# Testing and build of the application inside the container.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ exports[`Default render 1`] = `
"title": "Programs",
},
Object {
"href": "https://apps.topcoder-dev.com/forums",
"openNewTab": true,
"href": "https://vanilla.topcoder-dev.com",
"title": "Forums",
},
Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,69 +10,48 @@ exports[`renders email preferences setting page correctly 1`] = `
E-Mail Preferences
</h1>
<div
className="src-shared-components-Settings-Preferences-Email-___styles__sub-title___2Fh1W"
className="src-shared-components-Settings-Preferences-Email-___styles__unsubscribed-msg___3yh6s"
>
Your preferences
</div>
<div
className="src-shared-components-Settings-Preferences-Email-___styles__preferences-container___38AVF"
>
<ToggleableItem
checked={false}
id="Pipeline"
onToggle={[Function]}
primaryText="Challenge Pipeline"
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."
value="Pipeline"
/>
<ToggleableItem
checked={false}
id="Gig Work"
onToggle={[Function]}
primaryText="Gig Work"
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."
value="Gig Work"
/>
<ToggleableItem
checked={false}
id="Monthly Newsletter"
onToggle={[Function]}
primaryText="Monthly Newsletter"
secondaryText="This newsletter gets sent out at the end of every month and contains a variety of important information across all of our tracks."
value="Monthly Newsletter"
/>
<ToggleableItem
checked={false}
id="Marathon Match Reminders"
onToggle={[Function]}
primaryText="Marathon Match Reminders"
secondaryText="Receive updates whenever a new marathon match is scheduled."
value="Marathon Match Reminders"
/>
<ToggleableItem
checked={false}
id="Single Round Match Reminders"
onToggle={[Function]}
primaryText="Single Round Match (SRM) Reminders"
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."
value="Single Round Match Reminders"
/>
<ToggleableItem
checked={false}
id="TCO Tuesdays"
onToggle={[Function]}
primaryText="TCO Newsletter"
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!"
value="TCO Tuesdays"
/>
<ToggleableItem
checked={false}
id="RDM"
onToggle={[Function]}
primaryText="Rapid Development Match (RDM) Reminders"
secondaryText="Receive notifications of our brand new RDMs! These rated, development matches will be a fun new way to engage with us!"
value="RDM"
/>
<h3>
You are not subscribed to receive Topcoder emails
</h3>
<p>
If this was a mistake or if you would like to resubscribe, please click the button below.
</p>
<form
action="https://topcoder.us13.list-manage.com/subscribe/post?u=65bd5a1857b73643aad556093&id=28bfd3c062"
id="mc-embedded-subscribe-form"
method="post"
name="mc-embedded-subscribe-form"
noValidate={true}
>
<input
id="mce-EMAIL"
name="EMAIL"
readOnly={true}
type="email"
value="[email protected]"
/>
<input
id="gdpr_11101"
name="gdpr[11101]"
type="checkbox"
value="Y"
/>
<input
name="b_65bd5a1857b73643aad556093_28bfd3c062"
tabIndex="-1"
type="text"
value=""
/>
<input
className="submit-button"
id="mc-embedded-subscribe"
name="subscribe"
type="submit"
value="Subscribe"
/>
</form>
</div>
</div>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ exports[`Matches shallow shapshot 1`] = `
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
>
<a
href="https://apps.topcoder.com/forums"
href="https://vanilla.topcoder-dev.com"
>
Forums
</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ exports[`Matches shallow shapshot 1 shapshot 1 1`] = `
className="src-shared-components-challenge-listing-___style__ChallengeFiltersExample___3IjeI"
id="challengeFilterContainer"
>
<Connect(Container)
setFilterState={[MockFunction]}
/>
<div
className="src-shared-components-challenge-listing-___style__tc-content-wrapper___1MqlF"
>
Expand All @@ -21,41 +24,34 @@ exports[`Matches shallow shapshot 1 shapshot 1 1`] = `
setFilterState={[MockFunction]}
/>
</div>
<div
className="src-shared-components-challenge-listing-___style__card-container___3-J4n"
>
<Connect(Container)
setFilterState={[MockFunction]}
/>
<Connect(Listing)
activeBucket="abc"
auth={Object {}}
challenges={Array []}
communityName={null}
expandTag={null}
expandedTags={Array []}
expanding={false}
filterState={Object {}}
loadMoreActive={null}
loadMoreAll={null}
loadMoreMy={null}
loadMoreMyPast={null}
loadMoreOnGoing={null}
loadMoreOpenForRegistration={null}
loadMorePast={null}
loadMoreReviewOpportunities={null}
loadingPastChallenges={false}
newChallengeDetails={false}
openChallengesInNewTabs={false}
preListingMsg={null}
prizeMode="money-usd"
reviewOpportunities={Array []}
selectBucket={[MockFunction]}
setFilterState={[MockFunction]}
setSort={[MockFunction]}
sorts={Object {}}
/>
</div>
<Connect(Listing)
activeBucket="abc"
auth={Object {}}
challenges={Array []}
communityName={null}
expandTag={null}
expandedTags={Array []}
expanding={false}
filterState={Object {}}
loadMoreActive={null}
loadMoreAll={null}
loadMoreMy={null}
loadMoreMyPast={null}
loadMoreOnGoing={null}
loadMoreOpenForRegistration={null}
loadMorePast={null}
loadMoreReviewOpportunities={null}
loadingPastChallenges={false}
newChallengeDetails={false}
openChallengesInNewTabs={false}
preListingMsg={null}
prizeMode="money-usd"
reviewOpportunities={Array []}
selectBucket={[MockFunction]}
setFilterState={[MockFunction]}
setSort={[MockFunction]}
sorts={Object {}}
/>
</div>
</div>
`;
Expand All @@ -65,6 +61,9 @@ exports[`Matches shallow shapshot 2 shapshot 2 1`] = `
className="src-shared-components-challenge-listing-___style__ChallengeFiltersExample___3IjeI"
id="challengeFilterContainer"
>
<Connect(Container)
setFilterState={[MockFunction]}
/>
<div
className="src-shared-components-challenge-listing-___style__tc-content-wrapper___1MqlF"
>
Expand All @@ -81,41 +80,34 @@ exports[`Matches shallow shapshot 2 shapshot 2 1`] = `
setFilterState={[MockFunction]}
/>
</div>
<div
className="src-shared-components-challenge-listing-___style__card-container___3-J4n"
>
<Connect(Container)
setFilterState={[MockFunction]}
/>
<Connect(Listing)
activeBucket="abc"
auth={Object {}}
challenges={Array []}
communityName={null}
expandTag={null}
expandedTags={Array []}
expanding={false}
filterState={Object {}}
loadMoreActive={null}
loadMoreAll={null}
loadMoreMy={null}
loadMoreMyPast={null}
loadMoreOnGoing={null}
loadMoreOpenForRegistration={null}
loadMorePast={null}
loadMoreReviewOpportunities={null}
loadingPastChallenges={false}
newChallengeDetails={false}
openChallengesInNewTabs={false}
preListingMsg={null}
prizeMode="money-usd"
reviewOpportunities={Array []}
selectBucket={[MockFunction]}
setFilterState={[MockFunction]}
setSort={[MockFunction]}
sorts={Object {}}
/>
</div>
<Connect(Listing)
activeBucket="abc"
auth={Object {}}
challenges={Array []}
communityName={null}
expandTag={null}
expandedTags={Array []}
expanding={false}
filterState={Object {}}
loadMoreActive={null}
loadMoreAll={null}
loadMoreMy={null}
loadMoreMyPast={null}
loadMoreOnGoing={null}
loadMoreOpenForRegistration={null}
loadMorePast={null}
loadMoreReviewOpportunities={null}
loadingPastChallenges={false}
newChallengeDetails={false}
openChallengesInNewTabs={false}
preListingMsg={null}
prizeMode="money-usd"
reviewOpportunities={Array []}
selectBucket={[MockFunction]}
setFilterState={[MockFunction]}
setSort={[MockFunction]}
sorts={Object {}}
/>
</div>
</div>
`;
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ docker build -t $TAG \
--build-arg CONTENTFUL_COMCAST_CDN_API_KEY=$CONTENTFUL_COMCAST_CDN_API_KEY \
--build-arg CONTENTFUL_COMCAST_PREVIEW_API_KEY=$CONTENTFUL_COMCAST_PREVIEW_API_KEY \
--build-arg RECRUITCRM_API_KEY=$RECRUITCRM_API_KEY \
--build-arg GSHEETS_API_KEY=$GSHEETS_API_KEY \
--build-arg COMMUNITY_APP_URL=$COMMUNITY_APP_URL .

# Copies "node_modules" from the created image, if necessary for caching.
Expand Down
1 change: 1 addition & 0 deletions config/custom-environment-variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,5 @@ module.exports = {
AUTH0_PROXY_SERVER_URL: 'TC_M2M_AUTH0_PROXY_SERVER_URL',
TOKEN_CACHE_TIME: 'TOKEN_CACHE_TIME',
},
GSHEETS_API_KEY: 'GSHEETS_API_KEY',
};
7 changes: 5 additions & 2 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ module.exports = {
BLOG_FEED: 'https://www.topcoder.com/blog/feed/',
COMMUNITY: 'https://community.topcoder-dev.com',
FORUMS: 'https://apps.topcoder-dev.com/forums',
FORUMS_VANILLA: 'https://vanilla.topcoder-dev.com',
HELP: 'https://www.topcoder.com/thrive/tracks?track=Topcoder&tax=Help%20Articles',
SUBMISSION_REVIEW: 'https://submission-review.topcoder-dev.com',

Expand Down Expand Up @@ -249,6 +250,8 @@ module.exports = {
RECRUITCRM_API_KEY: '',
},

GSHEETS_API_KEY: 'AIzaSyBRdKySN5JNCb2H6ZxJdTTvp3cWU51jiOQ',

AUTH_CONFIG: {
AUTH0_URL: 'TC_M2M_AUTH0_URL',
AUTH0_AUDIENCE: 'TC_M2M_AUDIENCE',
Expand Down Expand Up @@ -358,8 +361,7 @@ module.exports = {
},
{
title: 'Forums',
href: 'https://apps.topcoder-dev.com/forums',
openNewTab: true,
href: 'https://vanilla.topcoder-dev.com',
},
{
title: 'Statistics',
Expand Down Expand Up @@ -412,4 +414,5 @@ module.exports = {
GUIKIT: {
DEBOUNCE_ON_CHANGE_TIME: 150,
},
ENABLE_RECOMMENDER: true,
};
Loading