jaeyun0503 commented on code in PR #3710:
URL: https://github.com/apache/texera/pull/3710#discussion_r2321162710
##########
core/amber/src/main/scala/edu/uci/ics/texera/web/resource/dashboard/hub/ActionType.scala:
##########
@@ -46,4 +47,10 @@ object ActionType {
.getOrElse(
throw new IllegalArgumentException(s"Unsupported actionType '$s'")
)
+
+ def toActionEnum(a: ActionType): ActionEnum = {
+ ActionEnum.values()
+ .find(_.getLiteral.equalsIgnoreCase(a.value))
+ .getOrElse(throw new IllegalArgumentException(s"Unsupported action:
${a.value}"))
Review Comment:
I checked again and I believe there won't be any unsupported action. Should
I just remove the error handling part?
--
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]