Skip to content

Commit c7238cb

Browse files
committed
build:Merge remote-tracking branch 'origin/develop' into feature-details-page-suggestion-cards
2 parents 8d12271 + 3538a6f commit c7238cb

File tree

42 files changed

+5741
-2790
lines changed

Some content is hidden

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

42 files changed

+5741
-2790
lines changed

.circleci/config.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -176,21 +176,23 @@ workflows:
176176
only:
177177
- develop
178178
- feature-details-page-suggestion-cards
179+
- hot-fix-past-challenge-search
179180
# This is alternate dev env for parallel testing
180181
- "build-test":
181182
context : org-global
182183
filters:
183184
branches:
184185
only:
185186
- develop
187+
- hot-fixes-leaderboard
186188
# This is beta env for production soft releases
187189
- "build-prod-beta":
188190
context : org-global
189191
filters:
190192
branches:
191193
only:
192194
- develop
193-
- feature-member-profiles
195+
- feature-contentful
194196
# Production builds are exectuted only on tagged commits to the
195197
# master branch.
196198
- "build-prod":

__tests__/shared/components/Leaderboard/__snapshots__/Podium.jsx.snap

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ exports[`Matches shallow shapshot 1`] = `
2929
isCopilot={false}
3030
isTopGear={false}
3131
onUsernameClick={null}
32+
themeName="Default"
3233
/>
3334
</div>
3435
<div
@@ -48,6 +49,7 @@ exports[`Matches shallow shapshot 1`] = `
4849
isCopilot={false}
4950
isTopGear={false}
5051
onUsernameClick={null}
52+
themeName="Default"
5153
/>
5254
</div>
5355
<div
@@ -67,6 +69,7 @@ exports[`Matches shallow shapshot 1`] = `
6769
isCopilot={false}
6870
isTopGear={false}
6971
onUsernameClick={null}
72+
themeName="Default"
7073
/>
7174
</div>
7275
<div
@@ -86,6 +89,7 @@ exports[`Matches shallow shapshot 1`] = `
8689
isCopilot={false}
8790
isTopGear={false}
8891
onUsernameClick={null}
92+
themeName="Default"
8993
/>
9094
</div>
9195
</div>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ exports[`Matches shallow shapshot 1`] = `
2828
className="src-shared-components-TopcoderFooter-___style__link___3-nzm"
2929
>
3030
<a
31-
href="https://help.topcoder-dev.com"
31+
href="https://www.topcoder.com/thrive/tracks?track=Topcoder"
3232
>
3333
HELP CENTER
3434
</a>

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

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ exports[`Matches shallow shapshot shapshot 1 1`] = `
3737
"users": Object {},
3838
}
3939
}
40+
domRef={null}
4041
expandTag={null}
4142
expandedTags={Array []}
4243
newChallengeDetails={false}
@@ -74,6 +75,7 @@ exports[`Matches shallow shapshot shapshot 2 1`] = `
7475
"users": Object {},
7576
}
7677
}
78+
domRef={null}
7779
expandTag={null}
7880
expandedTags={Array []}
7981
newChallengeDetails={false}
@@ -109,6 +111,7 @@ exports[`Matches shallow shapshot shapshot 3 1`] = `
109111
"users": Object {},
110112
}
111113
}
114+
domRef={null}
112115
expandTag={null}
113116
expandedTags={Array []}
114117
newChallengeDetails={false}

__tests__/shared/components/challenge-listing/Listing/__snapshots__/Bucket.jsx.snap

+3
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ exports[`Matches shallow shapshot 1`] = `
7777
loading={false}
7878
newChallengeDetails={false}
7979
openChallengesInNewTabs={false}
80+
searchTimestamp={0}
8081
setFilterState={[MockFunction]}
8182
setSort={[MockFunction]}
8283
sort=""
@@ -226,6 +227,7 @@ exports[`Matches shallow shapshot 2`] = `
226227
loading={true}
227228
newChallengeDetails={false}
228229
openChallengesInNewTabs={false}
230+
searchTimestamp={0}
229231
setFilterState={[MockFunction]}
230232
setSort={[MockFunction]}
231233
sort=""
@@ -262,6 +264,7 @@ exports[`Matches shallow shapshot 3`] = `
262264
loading={true}
263265
newChallengeDetails={false}
264266
openChallengesInNewTabs={false}
267+
searchTimestamp={0}
265268
setFilterState={[MockFunction]}
266269
setSort={[MockFunction]}
267270
sort=""

__tests__/shared/utils/__snapshots__/markdown.js.snap

+24-39
Original file line numberDiff line numberDiff line change
@@ -796,9 +796,6 @@ Array [
796796
>
797797
&gt;
798798
</span>
799-
<span
800-
className="bash"
801-
/>
802799
</code>
803800
characters for blockquoting. If you’re
804801
<br />
@@ -813,9 +810,6 @@ Array [
813810
>
814811
&gt;
815812
</span>
816-
<span
817-
className="bash"
818-
/>
819813
</code>
820814
before every line:
821815
</p>,
@@ -841,9 +835,6 @@ Array [
841835
>
842836
&gt;
843837
</span>
844-
<span
845-
className="bash"
846-
/>
847838
</code>
848839
before the first
849840
<br />
@@ -875,9 +866,6 @@ Array [
875866
>
876867
&gt;
877868
</span>
878-
<span
879-
className="bash"
880-
/>
881869
</code>
882870
:
883871
</p>,
@@ -1182,9 +1170,6 @@ Array [
11821170
>
11831171
&gt;
11841172
</span>
1185-
<span
1186-
className="bash"
1187-
/>
11881173
</code>
11891174
<br />
11901175
delimiters need to be indented:
@@ -1297,9 +1282,6 @@ end tell
12971282
>
12981283
&gt;
12991284
</span>
1300-
<span
1301-
className="bash"
1302-
/>
13031285
</code>
13041286
)
13051287
<br />
@@ -1429,7 +1411,7 @@ end tell
14291411
) and underscores (
14301412
<code>
14311413
<span
1432-
className="hljs-keyword"
1414+
className="hljs-literal"
14331415
>
14341416
_
14351417
</span>
@@ -1447,7 +1429,7 @@ end tell
14471429
or
14481430
<code>
14491431
<span
1450-
className="hljs-keyword"
1432+
className="hljs-literal"
14511433
>
14521434
_
14531435
</span>
@@ -1473,7 +1455,7 @@ end tell
14731455
's or
14741456
<code>
14751457
<span
1476-
className="hljs-keyword"
1458+
className="hljs-literal"
14771459
>
14781460
_
14791461
</span>
@@ -2198,39 +2180,42 @@ Array [
21982180
Ad amet irure est magna id mollit Lorem in do duis enim. Excepteur velit nisi magna ea pariatur pariatur ullamco fugiat deserunt sint non sint. Duis duis est
21992181
<code>
22002182
<span
2201-
className="hljs-selector-tag"
2183+
className="hljs-built_in"
22022184
>
22032185
code
22042186
</span>
2205-
2187+
in
22062188
<span
2207-
className="hljs-keyword"
2189+
className="hljs-built_in"
22082190
>
2209-
in
2191+
text
22102192
</span>
2211-
text
22122193
</code>
22132194
velit velit aute culpa ex quis pariatur pariatur laborum aute pariatur duis tempor sunt ad. Irure magna voluptate dolore consectetur consectetur irure esse. Anim magna
22142195
<code>
2215-
&lt;
2216-
<span
2217-
className="hljs-keyword"
2218-
>
2219-
strong
2220-
</span>
2221-
&gt;
22222196
<span
2223-
className="hljs-keyword"
2197+
className="hljs-tag"
22242198
>
2225-
in
2199+
&lt;
2200+
<span
2201+
className="hljs-name"
2202+
>
2203+
strong
2204+
</span>
2205+
&gt;
22262206
</span>
2227-
culpa qui officia&lt;/
2207+
in culpa qui officia
22282208
<span
2229-
className="hljs-keyword"
2209+
className="hljs-tag"
22302210
>
2231-
strong
2211+
&lt;/
2212+
<span
2213+
className="hljs-name"
2214+
>
2215+
strong
2216+
</span>
2217+
&gt;
22322218
</span>
2233-
&gt;
22342219
</code>
22352220
dolor eiusmod esse amet aute cupidatat aliqua do id voluptate cupidatat reprehenderit amet labore deserunt.
22362221
</p>,

config/default.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ module.exports = {
116116
BLOG_FEED: 'https://www.topcoder.com/blog/feed/',
117117
COMMUNITY: 'https://community.topcoder-dev.com',
118118
FORUMS: 'https://apps.topcoder-dev.com/forums',
119-
HELP: 'https://help.topcoder-dev.com',
119+
HELP: 'https://www.topcoder.com/thrive/tracks?track=Topcoder',
120120

121121
THRIVE: 'https://www.topcoder.com/thrive',
122122

@@ -163,6 +163,12 @@ module.exports = {
163163
* object should be considered outdated, and updated as soon as possible. */
164164
USER_GROUP_MAXAGE: 24 * 60 * 60 * 1000,
165165

166+
/* Maximum time to wait before timeout on searching past challenges (seconds)
167+
* when no result at all.
168+
* Default: 30 seconds.
169+
*/
170+
SEARCH_TIMEOUT: 30 * 1000,
171+
166172
/* Filestack configuration for uploading Submissions
167173
* These are for the development back end */
168174
FILESTACK: {

config/production.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
BASE: 'https://www.topcoder.com',
3030
COMMUNITY: 'https://community.topcoder.com',
3131
FORUMS: 'https://apps.topcoder.com/forums',
32-
HELP: 'https://help.topcoder.com',
32+
HELP: 'https://www.topcoder.com/thrive/tracks?track=Topcoder',
3333
MEMBER: 'https://member.topcoder.com',
3434
ONLINE_REVIEW: 'https://software.topcoder.com',
3535
PAYMENT_TOOL: 'https://payment.topcoder.com',

docs/TCX-process.md

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
2+
This document describes the Topcoder issue/feature release process using TCX. This is a guide for co-pilots, QA, architects and community members. Co-pilot is the driver of the whole process from opening a ticket to the deployment.
3+
4+
## Code Phase
5+
6+
1. Create a branch from the `master` and name it as `hot-fix-fixtitle` or `feature-featuretitle`
7+
2. Co-pilot will prepare and launch a ticket
8+
9+
a. Add Prize in the issue title [$SOMEAMOUT]
10+
11+
b. Mention PR branch, this branch should be always in sync with master or newly created as mentioned in 1
12+
13+
c. Add this to instruction that all the PR should pass `npm test`
14+
15+
d. Change label to `tcx_OpenForPickup`
16+
17+
e. Tag the community @topcoder-platform/tcxcommunity @topcoder-platform/topcodercompetitors
18+
3. A competitor assings a ticket to self (`tcx_Assigned`), writes the code for the fix
19+
4. Competitor, PR to the branch (submission) and they should change the label to `tcx_ReadyForReview`
20+
21+
## Review Phase
22+
23+
4. Co-pilot will review the code, based on review change the label to
24+
25+
a. `tcx_Feedback` - Feedback should be mentioned in the comments section, this may lead to asking for patch PR
26+
27+
b. `Code Review Passed` and `tcx_FixAccepted`- This goes to QA Deployment Phase
28+
29+
c. `Code Review Failed` - This goes to 1
30+
31+
## QA Deployment Phase
32+
33+
5. Based on the label `Code Review Passed`, co-pilot should request deployment to the architect. Based on whatever testing deployment environment is available to code will be deployed.
34+
35+
6. Once deployed on the environment co-pilot will change the label to `Ready for QA` and will inform the QA team on #community-app slack channel.
36+
37+
7. Based on QA feedback label should be `QA Pass` or `QA Fail`
38+
39+
8. `QA Fail` label will go to **Review Phase** again
40+
41+
9. `QA Pass` label is a candidate for production deployment
42+
43+
10. Co-pilot will create PR to `fix-branch > develop` branch
44+
45+
11. An architect will merge PR and ask for smoke testing to the QA team
46+
47+
12. If smoke testing goes well, co-pilot create PR to `develop > master`
48+
49+
13. It takes around 20 mins for deployment on any deployment.
50+
51+
14. QA team will verify the post-production issue fix.
52+
53+
15. If post-production test passes QA team will change the label to `Prod QA Pass`, Co-pilot will close this ticket
54+
55+
17. If post-production test fails QA team will change the label to `Prod QA Failed`
56+

0 commit comments

Comments
 (0)