Skip to content

Commit

Permalink
CTCTOWALTZ-3337:
Browse files Browse the repository at this point in the history
 [x] Fixed the PR review comments.
 #7156
  • Loading branch information
devendra-ramesh-patil-db committed Oct 17, 2024
1 parent eede768 commit 1aa6d37
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ private void verifyCanWrite(Request request, long defId) {
private void registerPreviewBulkAssessmentRatingChanges(String path) {
postForDatum(path, (req, resp) -> {
EntityReference assessmentDefRef = mkRef(EntityKind.ASSESSMENT_DEFINITION, getId(req));
String modeStr = req.queryParams("mode");
String body = req.body();
return bulkAssessmentRatingService.bulkPreview(assessmentDefRef, body);
});
Expand All @@ -290,10 +289,6 @@ private void registerPreviewBulkAssessmentRatingChanges(String path) {
private void registerApplyBulkAssessmentRatingChanges(String path) {
postForDatum(path, (req, resp) -> {
EntityReference assessmentDefRef = mkRef(EntityKind.ASSESSMENT_DEFINITION, getId(req));
String modeStr = req.queryParams("mode");
String formatStr = req.queryParams("format");
BulkUpdateMode mode = EnumUtilities.readEnum(modeStr, BulkUpdateMode.class, s -> BulkUpdateMode.ADD_ONLY);
BulkAssessmentRatingItemParser.InputFormat format = EnumUtilities.readEnum(formatStr, BulkAssessmentRatingItemParser.InputFormat.class, s -> BulkAssessmentRatingItemParser.InputFormat.TSV);
String body = req.body();
AssessmentRatingValidationResult preview = bulkAssessmentRatingService.bulkPreview(assessmentDefRef, body);
return bulkAssessmentRatingService.apply(assessmentDefRef, preview, getUsername(req));
Expand Down

0 comments on commit 1aa6d37

Please sign in to comment.