Skip to content

dev-maven to master-maven #258

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 10 commits into from
Apr 21, 2023
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,12 @@ protected String saveGenericReview(DynamicModel reviewForm, HttpServletRequest r
}
}

if (scorecardTypeName.equals("Iterative Review") && !verification.getSubmission().getSubmissionStatus()
.getName()
.equals(com.topcoder.onlinereview.component.project.phase.handler.Constants.SUBMISSION_STATUS_ACTIVE)) {
return ActionsHelper.produceErrorReport(
this, request, permName, "Error.SubmissionNotActive", null);
}
// Get "My" resource for the appropriate phase
Resource myResource = ActionsHelper.getMyResourceForPhase(request, phase);
// If no resource found for particular phase, try to find resource without phase assigned
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/MessageResources.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1262,6 +1262,7 @@ Error.NotASubmission=The file you are trying to download is not a submission.
Error.NotASubmission2=The file you are trying to delete is not a submission. You can delete only submissions by this action.
Error.NotASubmission3=The file you are trying to advance is not a submission. You can advance only submissions by this action.
Error.SubmissionDeleted=The submission you are trying to remove has already been deleted.
Error.SubmissionNotActive=The submission is not active.
Error.OnlyOneFinalFix=You cannot upload more than one final fix during the same Final Fix phase.
Error.NotAFinalFix=The file you are trying to download is not a Final Fix.
Error.NotTestCases=The file you are trying to download is not Test Cases.
Expand Down
13 changes: 1 addition & 12 deletions web/includes/inc_header_reskin.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,6 @@
o=t.getElementsByTagName(e)[0];i.async=1;i.type="module";i.src=a;o.parentNode.insertBefore(i,o)
}(window,document,"script",scriptURL,"tcUniNav");

var userId = `${userId}`;
if (userId !== '-1') {
var handle = "${userHandle}";
}
var initials = handle ? handle.substr(0, 2).toUpperCase() : '';

var user = {
userId,
initials,
handle
};

var signInUrl = "https://accounts-auth0.topcoder-dev.com/?retUrl=https://software.topcoder-dev.com/review"

Expand All @@ -53,7 +42,7 @@
type: 'tool',
toolName: 'Review',
toolRoot: '/',
user: handle ? user : null,
user: 'auto',
signOut() {
window.location.replace(signOutUrl)
},
Expand Down
4 changes: 2 additions & 2 deletions web/includes/project/project_phase_reskin.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -1180,9 +1180,9 @@
<c:choose>
<c:when test="${review.committed}">
<c:choose>
<c:when test="${isSubmitter and not group.checkpointReviewFinished}">
<%-- <c:when test="${isSubmitter and not group.checkpointReviewFinished}">
<or:text key="Pending"/>
</c:when>
</c:when> --%>
<c:when test="${isAllowedToViewCheckpointReview}">
<a href="<or:url value='/actions/ViewCheckpointReview?rid=${review.id}' />">
${orfn:displayScore(pageContext.request, review.score)}</a>
Expand Down