Skip to content

Commit 90372fb

Browse files
authored
Merge pull request #271 from topcoder-platform/qa-maven
Deliverable fixes
2 parents af58f12 + 103a4e0 commit 90372fb

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

.circleci/config.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ install_deploy_dependency: &install_deploy_dependency
1818
install_dependency: &install_dependency
1919
name: Installation of build dependencies.
2020
command: |
21-
# sed -i '/jessie-updates/d' /etc/apt/sources.list
21+
# sed -i '/stretch-updates/d' /etc/apt/sources.list
22+
# sed -i 's/security.debian/archive.debian/' /etc/apt/sources.list
23+
# sed -i 's/deb.debian/archive.debian/' /etc/apt/sources.list
2224
apt update
2325
apt install -y openssl git zip jq
2426
mkdir ~/awscli
@@ -150,7 +152,7 @@ jobs:
150152
LOGICAL_ENV: "dev"
151153
DEPLOY_ENV: "DEV"
152154
COMPONENT_BRANCH: "dev"
153-
OR_INT_BRANCH: "v0.0.3"
155+
OR_INT_BRANCH: "v0.0.4"
154156
PLAT_INT_BRANCH: "v0.0.29"
155157
APPNAME: "tc-online-review"
156158
steps: *build_steps
@@ -162,7 +164,7 @@ jobs:
162164
LOGICAL_ENV: "qa"
163165
DEPLOY_ENV: "QA"
164166
COMPONENT_BRANCH: "qa"
165-
OR_INT_BRANCH: "v0.0.3"
167+
OR_INT_BRANCH: "v0.0.4"
166168
PLAT_INT_BRANCH: "v0.0.29"
167169
APPNAME: "tc-online-review"
168170
steps: *build_steps
@@ -174,7 +176,7 @@ jobs:
174176
LOGICAL_ENV: "prod"
175177
DEPLOY_ENV: "PROD"
176178
COMPONENT_BRANCH: "master"
177-
OR_INT_BRANCH: "v0.0.3"
179+
OR_INT_BRANCH: "v0.0.4"
178180
PLAT_INT_BRANCH: "v0.0.29"
179181
APPNAME: "tc-online-review"
180182
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

web/includes/project/project_myrole_reskin.jsp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
<c:if test="${not empty outstandingDeliverables}">
4545
<c:forEach items="${outstandingDeliverables}" var="deliverable" varStatus="deliverableStatus">
4646
<div class="myInfoTable__deliverableItem">
47-
<c:if test="${deliverable.id != 1}">
4847
<c:set var="devrStatus" value="${outstandingDeliverableStatuses[deliverableStatus.index]}" />
4948
<c:choose>
5049
<c:when test="${deliverable.complete}">
@@ -68,7 +67,6 @@
6867
(<tc-webtag:handle coderId="${outstandingDeliverableSubmissionUserIds[deliverableStatus.index]}" context="${orfn:getHandlerContext(pageContext.request)}" />)
6968
</c:if>
7069
</c:if>
71-
</c:if>
7270
</div>
7371
</c:forEach>
7472
</c:if>

0 commit comments

Comments
 (0)