Skip to content

Commit d3206da

Browse files
authored
Merge pull request #38 from topcoder-platform/feature/updateLogicForQA
Updated tags for challenges to be mapped to QA track
2 parents 870905d + aeb3b73 commit d3206da

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tco_setup/tco21_eligible_contests.sql

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ WHERE p.project_status_id = 1
2828
and p.project_id not in (select ce.contest_id from contest_eligibility ce) --excluding private challenges
2929
and not exists (SELECT 1 FROM comp_technology
3030
-- WHERE comp_vers_id = pi1.value AND technology_type_id = 78) -- exclude QA Challenges from Dev
31-
WHERE comp_vers_id = pi1.value AND technology_type_id in (78,27621212)) -- exclude QA/Data Science Challenges from Dev
31+
WHERE comp_vers_id = pi1.value AND technology_type_id in (78,481,482,483,27621212)) -- exclude QA/QA - Regression/QA - Hunt/QA - Test Case Writing/Data Science Challenges from Dev
3232
and 1 = 1;
3333

3434
-- Stage 2
@@ -52,7 +52,7 @@ WHERE p.project_status_id = 1
5252
and p.project_id not in (select ce.contest_id from contest_eligibility ce) --excluding private challenges
5353
and not exists (SELECT 1 FROM comp_technology
5454
-- WHERE comp_vers_id = pi1.value AND technology_type_id = 78) -- exclude QA Challenges from Dev
55-
WHERE comp_vers_id = pi1.value AND technology_type_id in (78,27621212)) -- exclude QA/Data Science Challenges from Dev
55+
WHERE comp_vers_id = pi1.value AND technology_type_id in (78,481,482,483,27621212)) -- exclude QA/QA - Regression/QA - Hunt/QA - Test Case Writing/Data Science Challenges from Dev
5656
and 1 = 1;
5757

5858

@@ -78,7 +78,7 @@ WHERE p.project_status_id = 1
7878
-- and p.project_id not in (30128882) --excluding practice contest
7979
and not exists (SELECT 1 FROM comp_technology
8080
-- WHERE comp_vers_id = pi1.value AND technology_type_id = 78) -- exclude QA Challenges from Dev
81-
WHERE comp_vers_id = pi1.value AND technology_type_id in (78,27621212)) -- exclude QA/Data Science Challenges from Dev
81+
WHERE comp_vers_id = pi1.value AND technology_type_id in (78,481,482,483,27621212)) -- exclude QA/QA - Regression/QA - Hunt/QA - Test Case Writing/Data Science Challenges from Dev
8282
and 1 = 1;
8383

8484
-- Stage 4
@@ -103,7 +103,7 @@ WHERE p.project_status_id = 1
103103
-- and p.project_id not in (30128882) --excluding practice contest
104104
and not exists (SELECT 1 FROM comp_technology
105105
-- WHERE comp_vers_id = pi1.value AND technology_type_id = 78) -- exclude QA Challenges from Dev
106-
WHERE comp_vers_id = pi1.value AND technology_type_id in (78,27621212)) -- exclude QA/Data Science Challenges from Dev
106+
WHERE comp_vers_id = pi1.value AND technology_type_id in (78,481,482,483,27621212)) -- exclude QA/QA - Regression/QA - Hunt/QA - Test Case Writing/Data Science Challenges from Dev
107107
and 1 = 1;
108108

109109

@@ -128,7 +128,7 @@ WHERE p.project_status_id = 1
128128
p.project_category_id in (9,13) -- include Bug Hunt and Test Suites always
129129
OR
130130
exists (SELECT 1 FROM comp_technology
131-
WHERE comp_vers_id = pi1.value AND technology_type_id = 78) -- if the challlenge is tagged as QA
131+
WHERE comp_vers_id = pi1.value AND technology_type_id in (78,481,482,483)) -- if the challlenge is tagged as QA/QA - Regression/QA - Hunt/QA - Test Case Writing
132132
)
133133
and p.project_id not in (select project_id from contest_project_xref where contest_id in (718, 717)) -- make sure we exclude from tco
134134
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
@@ -157,7 +157,7 @@ WHERE p.project_status_id = 1
157157
OR
158158
exists (SELECT 1 FROM comp_technology
159159
WHERE comp_vers_id = pi1.value
160-
AND technology_type_id = 78) -- if the challlenge is tagged as QA
160+
AND technology_type_id in (78,481,482,483)) -- if the challlenge is tagged as QA/QA - Regression/QA - Hunt/QA - Test Case Writing
161161
)
162162
and p.project_id not in (select project_id from contest_project_xref where contest_id in (719, 717)) -- make sure we exclude from tco
163163
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
@@ -185,7 +185,7 @@ WHERE p.project_status_id = 1
185185
OR
186186
exists (SELECT 1 FROM comp_technology
187187
WHERE comp_vers_id = pi1.value
188-
AND technology_type_id = 78) -- if the challlenge is tagged as QA
188+
AND technology_type_id in (78,481,482,483)) -- if the challlenge is tagged as QA/QA - Regression/QA - Hunt/QA - Test Case Writing
189189
)
190190
and p.project_id not in (select project_id from contest_project_xref where contest_id in (720, 717)) -- make sure we exclude from tco
191191
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
@@ -213,7 +213,7 @@ WHERE p.project_status_id = 1
213213
OR
214214
exists (SELECT 1 FROM comp_technology
215215
WHERE comp_vers_id = pi1.value
216-
AND technology_type_id = 78) -- if the challlenge is tagged as QA
216+
AND technology_type_id = in (78,481,482,483)) -- if the challlenge is tagged as QA/QA - Regression/QA - Hunt/QA - Test Case Writing
217217
)
218218
and p.project_id not in (select project_id from contest_project_xref where contest_id in (721, 717)) -- make sure we exclude from tco
219219
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks

0 commit comments

Comments
 (0)