Skip to content

Commit 103a4e0

Browse files
authored
Merge pull request #270 from topcoder-platform/dev-maven
Dev
2 parents 08c65d0 + 0c14528 commit 103a4e0

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ jobs:
152152
LOGICAL_ENV: "dev"
153153
DEPLOY_ENV: "DEV"
154154
COMPONENT_BRANCH: "dev"
155-
OR_INT_BRANCH: "v0.0.3"
155+
OR_INT_BRANCH: "v0.0.4"
156156
PLAT_INT_BRANCH: "v0.0.29"
157157
APPNAME: "tc-online-review"
158158
steps: *build_steps
@@ -164,7 +164,7 @@ jobs:
164164
LOGICAL_ENV: "qa"
165165
DEPLOY_ENV: "QA"
166166
COMPONENT_BRANCH: "qa"
167-
OR_INT_BRANCH: "v0.0.3"
167+
OR_INT_BRANCH: "v0.0.4"
168168
PLAT_INT_BRANCH: "v0.0.29"
169169
APPNAME: "tc-online-review"
170170
steps: *build_steps
@@ -176,7 +176,7 @@ jobs:
176176
LOGICAL_ENV: "prod"
177177
DEPLOY_ENV: "PROD"
178178
COMPONENT_BRANCH: "master"
179-
OR_INT_BRANCH: "v0.0.3"
179+
OR_INT_BRANCH: "v0.0.4"
180180
PLAT_INT_BRANCH: "v0.0.29"
181181
APPNAME: "tc-online-review"
182182
steps: *build_steps

src/main/java/com/cronos/onlinereview/actions/project/ListProjectsAction.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import com.topcoder.onlinereview.component.search.filter.AndFilter;
2929
import com.topcoder.onlinereview.component.search.filter.Filter;
3030
import com.topcoder.onlinereview.component.search.filter.InFilter;
31+
3132
import org.springframework.beans.factory.annotation.Autowired;
3233

3334
import java.util.ArrayList;
@@ -52,7 +53,6 @@
5253
* @version 2.0
5354
*/
5455
public class ListProjectsAction extends BaseProjectAction {
55-
5656
/**
5757
* Represents the serial version id.
5858
*/
@@ -339,7 +339,6 @@ public String execute() throws BaseException {
339339
} catch (NumberFormatException nfe) {
340340
winnerId = null;
341341
}
342-
343342
myDeliverables[i] = getMyDeliverablesForPhases(
344343
this, allMyDeliverables, phases[i], myResources[i], winnerId);
345344

@@ -587,7 +586,6 @@ private static String getMyDeliverablesForPhases(TextProvider textProvider,
587586
if (j == resources.length) {
588587
continue;
589588
}
590-
591589
// Get a resource this deliverable is for
592590
final Resource forResource = resources[j];
593591

src/main/java/com/cronos/onlinereview/util/ActionsHelper.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,7 @@ public static Deliverable[] getAllDeliverablesForPhases(Phase[] phases, Resource
14781478
validateParameterNotNull(phases, "phases");
14791479

14801480
// A filter to search for deliverables for specific phase(s) of the project
1481-
Filter filter;
1481+
Filter phaseFilter;
14821482
switch (phases.length) {
14831483
case 0:
14841484
// No phases -- no deliverables
@@ -1487,7 +1487,7 @@ public static Deliverable[] getAllDeliverablesForPhases(Phase[] phases, Resource
14871487
case 1:
14881488
// If there is only one phase in the provided array,
14891489
// create filter for it directly (no OR filters needed)
1490-
filter = DeliverableFilterBuilder.createPhaseIdFilter(phases[0].getId());
1490+
phaseFilter = DeliverableFilterBuilder.createPhaseIdFilter(phases[0].getId());
14911491
break;
14921492

14931493
default:
@@ -1497,9 +1497,12 @@ public static Deliverable[] getAllDeliverablesForPhases(Phase[] phases, Resource
14971497
phaseFilters.add(DeliverableFilterBuilder.createPhaseIdFilter(phase.getId()));
14981498
}
14991499
// Combine all filters using OR operator
1500-
filter = new OrFilter(phaseFilters);
1500+
phaseFilter = new OrFilter(phaseFilters);
15011501
}
15021502

1503+
Filter resourceRoleFilter = new NotFilter(new EqualToFilter("resource_role_id", 1));
1504+
Filter filter = new AndFilter(Arrays.asList(phaseFilter, resourceRoleFilter));
1505+
15031506
// Perform a search for the deliverables
15041507
Deliverable[] allDeliverables = createDeliverableManager().searchDeliverables(filter, null);
15051508

0 commit comments

Comments
 (0)