madisonmlin commented on code in PR #3728:
URL: https://github.com/apache/texera/pull/3728#discussion_r2386458615


##########
core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/user/workflow/WorkflowExecutionsResource.scala:
##########
@@ -769,3 +771,62 @@ class WorkflowExecutionsResource {
     }
   }
 }
+
+object WorkflowExportResource {
+  def parseOperators(operatorsJson: String): List[OperatorExportInfo] = {
+    new ObjectMapper()
+      .registerModule(DefaultScalaModule)
+      .readValue(operatorsJson, new TypeReference[List[OperatorExportInfo]] {})
+  }
+
+  def validateExportRequest(request: ResultExportRequest): Option[Response] = {
+    if (request.operators.isEmpty) {

Review Comment:
   I removed a similar check from exportOperatorsAsZip since it was redundant. 
However, I don't see where else it already exists.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to