Skip to content

Updated the tco20_eligible_constest.sql script file to exclude private challenges #32

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
Sep 26, 2019
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
17 changes: 16 additions & 1 deletion tco_setup/tco20_eligible_contests.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ WHERE p.project_status_id = 1
and p.project_id not in (select project_id from contest_project_xref where contest_id in (698, 697)) -- make sure we exclude from tco
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
and p.tc_direct_project_id not in (8943, 16411, 16412, 16413, 16406, 16399, 16407) -- exclude projects for fun and university challenges
and p.project_id not in (30070720, 30070724, 30070725, 30070727) -- IBM Hackathon Challenges to be excluded
-- and p.project_id not in (30070720, 30070724, 30070725, 30070727) -- IBM Hackathon Challenges to be excluded
-- and mod(p.project_id, 2) = 0
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
and 1 = 1;
Expand All @@ -44,6 +45,7 @@ WHERE p.project_status_id = 1
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
and p.tc_direct_project_id not in (8943, 16411, 16412, 16413, 16406, 16399, 16407) -- exclude projects for fun and university challenges
-- and mod(p.project_id, 2) = 0
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
and 1 = 1;
Expand All @@ -66,6 +68,7 @@ WHERE p.project_status_id = 1
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
and p.tc_direct_project_id not in (8943, 16411, 16412, 16413, 16406, 16399, 16407) -- exclude projects for fun and university challenges
-- and mod(p.project_id, 2) = 0
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
and 1 = 1;
Expand Down Expand Up @@ -98,6 +101,7 @@ WHERE p.project_status_id = 1
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
and p.tc_direct_project_id not in (8943, 16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
-- and mod(p.project_id, 2) = 0
and p.project_id not in (select ce.contest_id from contest_eligibility ce) --excluding private challenges
and 1 = 1;

-- Stage 2
Expand All @@ -124,6 +128,7 @@ WHERE p.project_status_id = 1
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
and p.tc_direct_project_id not in (8943, 16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
-- and mod(p.project_id, 2) = 0
and p.project_id not in (select ce.contest_id from contest_eligibility ce) --excluding private challenges
and 1 = 1;

-- Stage 3
Expand Down Expand Up @@ -151,6 +156,7 @@ WHERE p.project_status_id = 1
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
and p.tc_direct_project_id not in (8943, 16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
-- and mod(p.project_id, 2) = 0
and p.project_id not in (select ce.contest_id from contest_eligibility ce) --excluding private challenges
and 1 = 1;


Expand All @@ -172,6 +178,7 @@ WHERE p.project_status_id = 1
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
and p.tc_direct_project_id not in (8943, 16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
-- and mod(p.project_id, 2) = 0
and p.project_id not in (select ce.contest_id from contest_eligibility ce) --excluding private challenges
and 1 = 1;

-- Stage 2
Expand All @@ -189,6 +196,7 @@ WHERE p.project_status_id = 1
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
and p.tc_direct_project_id not in (8943, 16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
-- and mod(p.project_id, 2) = 0
and p.project_id not in (select ce.contest_id from contest_eligibility ce) --excluding private challenges
and 1 = 1;

-- Stage 3
Expand All @@ -206,6 +214,7 @@ WHERE p.project_status_id = 1
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
and p.tc_direct_project_id not in (8943, 16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
-- and mod(p.project_id, 2) = 0
and p.project_id not in (select ce.contest_id from contest_eligibility ce) --excluding private challenges
and 1 = 1;


Expand All @@ -231,6 +240,7 @@ WHERE p.project_status_id = 1
-- and mod(p.project_id, 2) = 0
and not exists (SELECT 1 FROM comp_technology
WHERE comp_vers_id = pi1.value AND technology_type_id = 78) -- exclude QA Challenges from F2F
and p.project_id not in (select ce.contest_id from contest_eligibility ce) --excluding private challenges
and 1 = 1;

-- Stage 2
Expand All @@ -252,6 +262,7 @@ WHERE p.project_status_id = 1
-- and mod(p.project_id, 2) = 0
and not exists (SELECT 1 FROM comp_technology
WHERE comp_vers_id = pi1.value AND technology_type_id = 78) -- exclude QA Challenges from F2F
and p.project_id not in (select ce.contest_id from contest_eligibility ce) --excluding private challenges
and 1=1;

-- Stage 3
Expand All @@ -272,6 +283,7 @@ WHERE p.project_status_id = 1
-- and mod(p.project_id, 2) = 0
and not exists (SELECT 1 FROM comp_technology
WHERE comp_vers_id = pi1.value AND technology_type_id = 78) -- exclude QA Challenges from F2F
and p.project_id not in (select ce.contest_id from contest_eligibility ce) --excluding private challenges
and 1 = 1;


Expand All @@ -292,6 +304,7 @@ WHERE p.project_status_id = 1
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
and p.tc_direct_project_id not in (8943, 16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
-- and mod(p.project_id, 2) = 0
and p.project_id not in (select ce.contest_id from contest_eligibility ce) --excluding private challenges
and 1 = 1;

-- Stage 2
Expand All @@ -309,6 +322,7 @@ WHERE p.project_status_id = 1
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
and p.tc_direct_project_id not in (8943, 16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
-- and mod(p.project_id, 2) = 0
and p.project_id not in (select ce.contest_id from contest_eligibility ce) --excluding private challenges
and 1 = 1;

-- Stage 3
Expand All @@ -326,4 +340,5 @@ WHERE p.project_status_id = 1
and NVL(pi82.value, 0) = 0 -- No TCO if these are tasks
and p.tc_direct_project_id not in (8943, 16411, 16412, 16413, 16406, 16399, 16407)-- exclude projects for fun and university challenges
-- and mod(p.project_id, 2) = 0
and p.project_id not in (select ce.contest_id from contest_eligibility ce) --excluding private challenges
and 1 = 1;