You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
version <-EitherT.fromOption[Future](Version.parse(query.version), BadRequest(pageWithError("Invalid version")))
75
-
versionOp <-EitherT.fromOption[Future](VersionOp.parse(query.versionOp), BadRequest(pageWithError("Invalid version op")))
74
+
version <-EitherT.fromOption[Future](request.queryString.get("version").flatMap(_.headOption).flatMap(Version.parse), BadRequest(pageWithError("Invalid version")))
75
+
versionOp <-EitherT.fromOption[Future](request.queryString.get("versionOp").flatMap(_.headOption).flatMap(VersionOp.parse), BadRequest(pageWithError("Invalid version op")))
76
76
versionRangeStr = versionOp match {
77
77
caseVersionOp.Gte=>s"[$version,)"
78
78
caseVersionOp.Lte=>s"(,$version]"
@@ -108,7 +108,7 @@ class DependencyExplorerController @Inject()(
108
108
, teams
109
109
, flags
110
110
, groupArtefacts
111
-
, if (query.versionRange.isEmpty) NoneelseSome(versionRange)
111
+
, versionRange
112
112
, Some(results)
113
113
, Some(pieData)
114
114
))
@@ -125,8 +125,6 @@ class DependencyExplorerController @Inject()(
125
125
, flag : String
126
126
, group : String
127
127
, artefact : String
128
-
, versionOp : String
129
-
, version : String
130
128
, versionRange: String
131
129
, asCsv : Boolean=false
132
130
)
@@ -146,9 +144,7 @@ class DependencyExplorerController @Inject()(
0 commit comments