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

Commit ecd182a

Browse files
committed
fxies
1 parent 0a77cd4 commit ecd182a

File tree

5 files changed

+27
-36
lines changed

5 files changed

+27
-36
lines changed

conf/objectFactory_config.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -251,16 +251,6 @@
251251
</Property>
252252
</Property>
253253
</Property>
254-
255-
<!--
256-
Configuration for ConfluenceUserService implementation
257-
@since: Jira & Confluence User Sync Service
258-
-->
259-
<Property name="confluenceUserServiceKey">
260-
<Property name="type">
261-
<Value>com.topcoder.confluence.client.impl.ConfluenceUserServiceImpl</Value>
262-
</Property>
263-
</Property>
264254
</Config>
265255

266256
<!--

src/java/main/com/topcoder/direct/services/view/action/contest/SoftwareContestSubmissionsAction.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
* load these data via ajax instead after the page finishes loading.
133133
* </p>
134134
*
135-
* @author GreatKevin, Veve, TCCoder
135+
* @author GreatKevin, Veve
136136
* @version 1.9
137137
*/
138138
public class SoftwareContestSubmissionsAction extends StudioOrSoftwareContestAction {
@@ -662,6 +662,8 @@ public int compare(SoftwareSubmissionDTO o1, SoftwareSubmissionDTO o2) {
662662
// set project bug race fee configuration
663663
ProjectData directProjectData = getProjectServiceFacade().getProject(currentUser,
664664
softwareCompetition.getProjectHeader().getTcDirectProjectId());
665+
setFixedBugRaceFee(directProjectData.getFixedBugContestFee());
666+
setPercentageBugRaceFee(directProjectData.getPercentageBugContestFee());
665667

666668
enableCopilotPostingSubmissionPreview = true;
667669

src/java/main/com/topcoder/direct/services/view/action/project/ProjectOverviewAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ private void setProjectGeneralInfo(ProjectData project) throws Exception {
618618
} else if (keyId == 5L) {
619619
// jira
620620
getViewData().getProjectGeneralInfo().setJira(m.getMetadataValue());
621-
} if (keyId == 6L) {
621+
} else if (keyId == 6L) {
622622
// planned duration
623623
getViewData().getProjectGeneralInfo().setPlannedDuration(Integer.parseInt(m.getMetadataValue()));
624624
} else if (keyId == 10L) {

src/java/main/com/topcoder/direct/services/view/action/project/edit/EditCockpitProjectAction.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,9 @@
132132
* - Removes the statements to populate the right sidebar direct projects and project contests. It's changed to
133133
* load these data via ajax instead after the page finishes loading.
134134
* </p>
135-
*
136-
* @author GreatKevin, freegod, FireIce, Veve
135+
*
137136
* @version 2.6
138-
*
137+
* @author GreatKevin, freegod, FireIce, Veve
139138
*/
140139
@WriteProject
141140
public class EditCockpitProjectAction extends BaseDirectStrutsAction implements FormAction<ProjectIdForm>,

src/java/main/com/topcoder/direct/services/view/action/report/DashboardBillingCostReportAction.java

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,10 @@ protected void executeAction() throws Exception {
321321
if(contestEntries != null && contestEntries.size() > 0) {
322322
// filter by project category id - the contestEntries contains records for the same contest
323323
// so we only need to check any record in the list first - we check the 1st record
324-
if (contestEntries.get(0).getContestType() == null || contestEntries.get(0).getContestType().getId() == 0)
325-
{
326-
viewData.addAll(contestEntries);
327-
}
324+
if (contestEntries.get(0).getContestType() == null || contestEntries.get(0).getContestType().getId() == 0)
325+
{
326+
viewData.addAll(contestEntries);
327+
}
328328
if(contestCategoriesSet.contains(contestEntries.get(0).getContestType().getId())) {
329329
viewData.addAll(contestEntries);
330330
}
@@ -373,25 +373,25 @@ public int compare(BillingCostReportEntryDTO one, BillingCostReportEntryDTO othe
373373

374374
getViewData().setEntries(viewData);
375375

376-
// count the total contest number and bug race number
377-
Set<Long> uniqueContestSet = new HashSet<Long>();
376+
// count the total contest number and bug race number
377+
Set<Long> uniqueContestSet = new HashSet<Long>();
378378
Set<String> uniqueBugRaces = new HashSet<String>();
379-
380-
for(BillingCostReportEntryDTO entry : getViewData().getEntries()) {
381-
if(entry.getContest() != null) {
382-
// ignore the items linked to project
383-
if (entry.getPaymentId() <= 0 || entry.getContest().getName() != null) {
384-
uniqueContestSet.add(entry.getContest().getId());
385-
}
386-
}
387-
if (entry.getPaymentType().trim().equalsIgnoreCase("bugs") ||
388-
(entry.getPaymentId() > 0 && entry.getContest().getName() == null && entry.getReferenceId() != null)) {
379+
380+
for(BillingCostReportEntryDTO entry : getViewData().getEntries()) {
381+
if(entry.getContest() != null) {
382+
// ignore the items linked to project
383+
if (entry.getPaymentId() <= 0 || entry.getContest().getName() != null) {
384+
uniqueContestSet.add(entry.getContest().getId());
385+
}
386+
}
387+
if (entry.getPaymentType().trim().equalsIgnoreCase("bugs") ||
388+
(entry.getPaymentId() > 0 && entry.getContest().getName() == null && entry.getReferenceId() != null)) {
389389
uniqueBugRaces.add(entry.getReferenceId());
390-
}
391-
}
392-
393-
// set aggregation stats
394-
getViewData().setTotalContestsNumber(uniqueContestSet.size());
390+
}
391+
}
392+
393+
// set aggregation stats
394+
getViewData().setTotalContestsNumber(uniqueContestSet.size());
395395
getViewData().setTotalBugRacesNumber(uniqueBugRaces.size());
396396

397397
}

0 commit comments

Comments
 (0)