Skip to content

Commit 818d28f

Browse files
author
Chris Maunder
committed
Reviews
1 parent 72e106b commit 818d28f

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
from .cpuinfo import CPUInfoBase, LinuxCPUInfo, IRIXCPUInfo, DarwinCPUInfo, NetBSDCPUInfo, SunOSCPUInfo, Win32CPUInfo
22
#from .environment_check import check_requirements, check_is_file, get_arguments
3-
4-
# REVIEW: These probably not needed at this time
5-
# from .image_utils import rotate_image, deskew, compute_skew

src/server/Controllers/ProxyController.cs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -572,13 +572,10 @@ private async Task<RequestPayload> CreatePayload(string pathSuffix, RouteQueueIn
572572
queryParams.Add(new KeyValuePair<string, string?[]>(param.Key, param.Value.ToArray()));
573573
}
574574

575-
// REVIEW: [Chris] This is where we would need to handle a JSON request body. We would
576-
// need to read the request body and parse it as JSON. We would then need to
577-
// use the JSON object to populate the payload.
578-
579-
// The HasFormContentType check should be sufficient and checks for multipart/form-data,
580-
// and application/x-www-form-urlencoded. There should be no need to use a try/catch
581-
// here either, but the GetFileData() method might throw if the moon is in the wrong phase.
575+
// We first check if the request is in JSON form. The HasFormContentType check should be
576+
// sufficient since it checks for multipart/form-data and application/x-www-form-urlencoded.
577+
// There should be no need to use a try/catch here either, but the GetFileData() method
578+
// might throw if the moon is in the wrong phase.
582579
if (Request.HasJsonContentType() && Request.ContentLength > 0)
583580
{
584581
var payload = await Request.ReadFromJsonAsync<RequestPayload>() ?? new RequestPayload();

src/server/Controllers/QueueController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public async Task<ObjectResult> SetResponse(string reqid)
146146
/// <param name="moduleId">The id of the request the response is for.</param>
147147
/// <param name="statusData"></param>
148148
/// <returns>The Request Object.</returns>
149-
// REVIEW: Possible rename this to BackendController and map both /vi/queue and /v1/backend
149+
// TODO: Possible rename this to BackendController and map both /vi/queue and /v1/backend
150150
// to maintain backwards compatibility for the modules.
151151
[HttpPost("updatemodulestatus/{moduleId}", Name = "UpdateModuleStatusData")]
152152
[ProducesResponseType(StatusCodes.Status200OK)]

0 commit comments

Comments
 (0)