Skip to content

Updated tags for challenges to be mapped to QA track #38

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
merged 1 commit into from
Aug 10, 2020
Merged
Changes from all commits
Commits
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
16 changes: 8 additions & 8 deletions tco_setup/tco21_eligible_contests.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ WHERE p.project_status_id = 1
and p.project_id not in (select ce.contest_id from contest_eligibility ce) --excluding private challenges
and not exists (SELECT 1 FROM comp_technology
-- WHERE comp_vers_id = pi1.value AND technology_type_id = 78) -- exclude QA Challenges from Dev
WHERE comp_vers_id = pi1.value AND technology_type_id in (78,27621212)) -- exclude QA/Data Science Challenges from Dev
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
and 1 = 1;

-- Stage 2
Expand All @@ -52,7 +52,7 @@ WHERE p.project_status_id = 1
and p.project_id not in (select ce.contest_id from contest_eligibility ce) --excluding private challenges
and not exists (SELECT 1 FROM comp_technology
-- WHERE comp_vers_id = pi1.value AND technology_type_id = 78) -- exclude QA Challenges from Dev
WHERE comp_vers_id = pi1.value AND technology_type_id in (78,27621212)) -- exclude QA/Data Science Challenges from Dev
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
and 1 = 1;


Expand All @@ -78,7 +78,7 @@ WHERE p.project_status_id = 1
-- and p.project_id not in (30128882) --excluding practice contest
and not exists (SELECT 1 FROM comp_technology
-- WHERE comp_vers_id = pi1.value AND technology_type_id = 78) -- exclude QA Challenges from Dev
WHERE comp_vers_id = pi1.value AND technology_type_id in (78,27621212)) -- exclude QA/Data Science Challenges from Dev
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
and 1 = 1;

-- Stage 4
Expand All @@ -103,7 +103,7 @@ WHERE p.project_status_id = 1
-- and p.project_id not in (30128882) --excluding practice contest
and not exists (SELECT 1 FROM comp_technology
-- WHERE comp_vers_id = pi1.value AND technology_type_id = 78) -- exclude QA Challenges from Dev
WHERE comp_vers_id = pi1.value AND technology_type_id in (78,27621212)) -- exclude QA/Data Science Challenges from Dev
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
and 1 = 1;


Expand All @@ -128,7 +128,7 @@ WHERE p.project_status_id = 1
p.project_category_id in (9,13) -- include Bug Hunt and Test Suites always
OR
exists (SELECT 1 FROM comp_technology
WHERE comp_vers_id = pi1.value AND technology_type_id = 78) -- if the challlenge is tagged as QA
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
)
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
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
Expand Down Expand Up @@ -157,7 +157,7 @@ WHERE p.project_status_id = 1
OR
exists (SELECT 1 FROM comp_technology
WHERE comp_vers_id = pi1.value
AND technology_type_id = 78) -- if the challlenge is tagged as QA
AND technology_type_id in (78,481,482,483)) -- if the challlenge is tagged as QA/QA - Regression/QA - Hunt/QA - Test Case Writing
)
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
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
Expand Down Expand Up @@ -185,7 +185,7 @@ WHERE p.project_status_id = 1
OR
exists (SELECT 1 FROM comp_technology
WHERE comp_vers_id = pi1.value
AND technology_type_id = 78) -- if the challlenge is tagged as QA
AND technology_type_id in (78,481,482,483)) -- if the challlenge is tagged as QA/QA - Regression/QA - Hunt/QA - Test Case Writing
)
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
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
Expand Down Expand Up @@ -213,7 +213,7 @@ WHERE p.project_status_id = 1
OR
exists (SELECT 1 FROM comp_technology
WHERE comp_vers_id = pi1.value
AND technology_type_id = 78) -- if the challlenge is tagged as QA
AND technology_type_id = in (78,481,482,483)) -- if the challlenge is tagged as QA/QA - Regression/QA - Hunt/QA - Test Case Writing
)
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
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
Expand Down