File tree 3 files changed +9
-22
lines changed
3 files changed +9
-22
lines changed Original file line number Diff line number Diff line change @@ -372,10 +372,10 @@ Object {
372
372
},
373
373
" tc" : Object {
374
374
" COMPETITION_TRACKS" : Object {
375
- " DATA_SCIENCE" : " data_science " ,
376
- " DESIGN" : " design " ,
377
- " DEVELOP" : " develop " ,
378
- " QA" : " qa " ,
375
+ " DATA_SCIENCE" : " Data Science " ,
376
+ " DESIGN" : " Design " ,
377
+ " DEVELOP" : " Development " ,
378
+ " QA" : " Quality Assurance " ,
379
379
},
380
380
" REVIEW_OPPORTUNITY_TYPES" : Object {
381
381
" Contest Review" : " Review" ,
Original file line number Diff line number Diff line change @@ -159,20 +159,7 @@ function filterByText(challenge, state) {
159
159
160
160
function filterByTrack ( challenge , state ) {
161
161
if ( ! state . tracks ) return true ;
162
-
163
- /* Development challenges having Data Science and QA tech tag, still should be
164
- * included into data science and qa tracks. */
165
- if ( state . tracks [ COMPETITION_TRACKS . DATA_SCIENCE ]
166
- && _ . includes ( challenge . tags , 'Data Science' ) ) {
167
- return true ;
168
- }
169
-
170
- if ( state . tracks [ COMPETITION_TRACKS . QA ]
171
- && _ . includes ( challenge . tags , 'QA' ) ) {
172
- return true ;
173
- }
174
-
175
- return _ . keys ( state . tracks ) . some ( track => challenge . communities . has ( track ) ) ;
162
+ return _ . keys ( state . tracks ) . some ( track => challenge . track === track ) ;
176
163
}
177
164
178
165
function filterByTypes ( challenge , state ) {
Original file line number Diff line number Diff line change 11
11
* uses upper-case literals to encode the tracks. At some point, we should
12
12
* update it in this code as well! */
13
13
export const COMPETITION_TRACKS = {
14
- DATA_SCIENCE : 'data_science ' ,
15
- DESIGN : 'design ' ,
16
- DEVELOP : 'develop ' ,
17
- QA : 'qa ' ,
14
+ DATA_SCIENCE : 'Data Science ' ,
15
+ DESIGN : 'Design ' ,
16
+ DEVELOP : 'Development ' ,
17
+ QA : 'Quality Assurance ' ,
18
18
} ;
19
19
20
20
/**
You can’t perform that action at this time.
0 commit comments