From 6d018946ed58c4739d6db2d83517d04efbc6d773 Mon Sep 17 00:00:00 2001 From: Tom Richards Date: Thu, 9 Nov 2023 09:22:06 +0000 Subject: [PATCH] eliminate unused `limit` param for `/testing/s3Latency` endpoint as it was causing exhaustiveness warning (and therefore now compilation error) --- riff-raff/app/controllers/Testing.scala | 2 +- riff-raff/conf/routes | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/riff-raff/app/controllers/Testing.scala b/riff-raff/app/controllers/Testing.scala index 68c532393..7de3cfc85 100644 --- a/riff-raff/app/controllers/Testing.scala +++ b/riff-raff/app/controllers/Testing.scala @@ -258,7 +258,7 @@ class Testing( Ok(views.html.test.uuidList(config, menu)(request, allDeploys.take(limit))) } - def S3LatencyList(limit: Int, csv: Boolean) = authAction { implicit request => + def S3LatencyList(csv: Boolean) = authAction { implicit request => val filter = DeployFilter.fromRequest val pagination = PaginationView.fromRequest val allDeploys = documentStoreConverter diff --git a/riff-raff/conf/routes b/riff-raff/conf/routes index 84625c7fc..e1b711cc0 100644 --- a/riff-raff/conf/routes +++ b/riff-raff/conf/routes @@ -111,8 +111,8 @@ GET /testing/reportTestPartial controllers.Testing. GET /testing/form controllers.Testing.form POST /testing/formPost controllers.Testing.formPost GET /testing/uuidList controllers.Testing.uuidList(limit:Int ?= 500) -GET /testing/s3Latency controllers.Testing.S3LatencyList(limit:Int ?= 10, csv:Boolean=false) -GET /testing/s3Latency/csv controllers.Testing.S3LatencyList(limit:Int ?= 10, csv:Boolean=true) +GET /testing/s3Latency controllers.Testing.S3LatencyList(csv:Boolean=false) +GET /testing/s3Latency/csv controllers.Testing.S3LatencyList(csv:Boolean=true) POST /testing/actionUUID controllers.Testing.actionUUID GET /testing/view/:uuid controllers.Testing.debugLogViewer(uuid) GET /testing/addStringUUID controllers.Testing.transferAllUUIDs