tanishqgandhi1908 commented on code in PR #9226:
URL: https://github.com/apache/texera/pull/9226#discussion_r4484279423
##########
amber/src/test/scala/org/apache/texera/web/resource/dashboard/hub/HubResourceSpec.scala:
##########
@@ -795,6 +795,17 @@ class HubResourceSpec
)
}
+ it should "record an anonymous view (uid 0 or none) with a NULL uid" in {
+ val id = seedWorkflow(810603, "wf_view_anonymous")
+ hub.postView(req, ViewRequest(id, Integer.valueOf(0), Wf)) shouldBe 1
+ hub.postView(req, ViewRequest(id, null, Wf)) shouldBe 2
+
+ auditRows() shouldBe Seq(
+ (null, "workflow", 810603, "view", "127.0.0.1"),
+ (null, "workflow", 810603, "view", "127.0.0.1")
+ )
+ }
+
Review Comment:
Added recordUserAction should store a NULL uid when userId is omitted, which
calls it without userId. It fails if the default goes back to 0.
--
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]