Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

I-141155 drop detailed requirements from rss #390

Merged
merged 1 commit into from
Dec 4, 2014
Merged
Show file tree
Hide file tree
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
7 changes: 0 additions & 7 deletions actions/rss.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,10 @@ function getChallengesRSS(api, connection, next) {
challengeType: row.challenge_type.trim(),
challengeName: row.challenge_name,
challengeId: row.challenge_id,
detailedRequirements: row.detailed_requirements || '',
registrationStartDate: row.registration_start_date,
challengeCommunity: row.challenge_community,
projectId: row.project_id
};
if (_.isDefined(row.software_detailed_requirements)) {
res.detailedRequirements = row.software_detailed_requirements || '';
}
if (_.isDefined(row.studio_detailed_requirements)) {
res.detailedRequirements = row.studio_detailed_requirements || '';
}
if (row.project_type_id === helper.studio.category[0]) {
res.challengeCommunity = helper.studio.community;
} else {
Expand Down
1 change: 0 additions & 1 deletion queries/get_open_data_challenges_rss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ SELECT
FIRST @page_size@
r.round_id AS challenge_id
, ct.name AS challenge_name
, ct.name AS detailed_requirements
, 'marathon' AS challenge_type
, 'data' AS challenge_community
, reg.start_time AS registration_start_date
Expand Down
2 changes: 0 additions & 2 deletions queries/get_past_data_challenges_rss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ FROM
SELECT
'marathon' AS challenge_type
, c.name AS challenge_name
, c.name AS detailed_requirements
, r.round_id AS challenge_id
, "data" AS challenge_community
, c.start_date AS registration_start_date
Expand All @@ -28,7 +27,6 @@ FROM
SELECT
'algorithm' AS challenge_type
, r.short_name AS challenge_name
, r.short_name AS detailed_requirements
, r.round_id AS challenge_id
, "data" AS challenge_community
, c.start_date AS registration_start_date
Expand Down
4 changes: 0 additions & 4 deletions queries/get_software_studio_challenges_rss
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@ FIRST @page_size@
, pi.value AS challenge_name
, p.project_id AS challenge_id
, p.tc_direct_project_id AS project_id
, ps.detailed_requirements_text AS software_detailed_requirements
, sps.contest_description_text AS studio_detailed_requirements
, NVL(pp1.actual_start_time, pp1.scheduled_start_time) AS registration_start_date
, pcl.project_type_id
FROM project p
INNER JOIN project_category_lu pcl ON pcl.project_category_id = p.project_category_id
INNER JOIN project_info pi1 ON pi1.project_id = p.project_id AND pi1.project_info_type_id = 1
INNER JOIN project_info pi ON pi.project_info_type_id = 6 AND p.project_id = pi.project_id
INNER JOIN project_phase pp1 ON pp1.project_id = p.project_id AND pp1.phase_type_id = 1
LEFT JOIN project_spec ps ON ps.project_id = p.project_id and ps.version = (select max(version) from project_spec where project_id = p.project_id)
LEFT JOIN project_studio_specification sps ON sps.project_studio_spec_id = p.project_studio_spec_id
WHERE 1=1
AND p.project_status_id IN (@project_status_id@)
AND pcl.project_type_id IN (@project_type_id@)
Expand Down