Skip to content

Commit 9fec28b

Browse files
Added QA to filter
1 parent 2e8a309 commit 9fec28b

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

__tests__/__snapshots__/index.js.snap

+1
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ Object {
375375
"DATA_SCIENCE": "data_science",
376376
"DESIGN": "design",
377377
"DEVELOP": "develop",
378+
"QA": "qa",
378379
},
379380
"REVIEW_OPPORTUNITY_TYPES": Object {
380381
"Contest Review": "Review",

src/utils/challenge/filter.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,18 @@ function filterByText(challenge, state) {
160160
function filterByTrack(challenge, state) {
161161
if (!state.tracks) return true;
162162

163-
/* Development challenges having Data Science tech tag, still should be
164-
* included into data science track. */
163+
/* Development challenges having Data Science and QA tech tag, still should be
164+
* included into data science and qa tracks. */
165165
if (state.tracks[COMPETITION_TRACKS.DATA_SCIENCE]
166166
&& _.includes(challenge.tags, 'Data Science')) {
167167
return true;
168168
}
169169

170+
if (state.tracks[COMPETITION_TRACKS.QA]
171+
&& _.includes(challenge.tags, 'QA')) {
172+
return true;
173+
}
174+
170175
return _.keys(state.tracks).some(track => challenge.communities.has(track));
171176
}
172177

src/utils/tc.js

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const COMPETITION_TRACKS = {
1414
DATA_SCIENCE: 'data_science',
1515
DESIGN: 'design',
1616
DEVELOP: 'develop',
17+
QA: 'qa',
1718
};
1819

1920
/**

0 commit comments

Comments
 (0)