yangzhang75 commented on code in PR #7851:
URL: https://github.com/apache/texera/pull/7851#discussion_r3876028326
##########
amber/src/main/scala/org/apache/texera/web/resource/dashboard/user/workflow/WorkflowResource.scala:
##########
@@ -93,6 +93,12 @@ object WorkflowResource {
}
private def insertWorkflow(workflow: Workflow, user: User): Unit = {
+ // A workflow is born with nothing pinned. The endpoint takes a whole
Workflow, so without this
+ // a request body could seed a published copy of its own choosing.
+ workflow.setPublishedVersionId(null)
+ workflow.setPublishedContent(null)
Review Comment:
fixed
--
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]