aglinxinyuan opened a new pull request, #9304:
URL: https://github.com/apache/texera/pull/9304

   ### What changes were proposed in this PR?
   
   Consolidates remaining individual WebSocket request and response/event case 
classes into their respective message model files:
   
   - 
`amber/src/main/scala/org/apache/texera/web/model/websocket/request/TexeraWebSocketRequest.scala`:
     Consolidates `ModifyLogicRequest` and `ResultPaginationRequest` (2 
standalone files deleted).
   - 
`amber/src/main/scala/org/apache/texera/web/model/websocket/response/TexeraWebSocketResponse.scala`:
     Consolidates `HeartBeatResponse`, `ModifyLogicResponse`, 
`ModifyLogicCompletedEvent`, `ClusterStatusUpdateEvent`, and 
`RegionUpdateEvent` into a shared definitions file (4 standalone files deleted).
   
   Deletes 6 redundant single-class source files and repetitive license headers 
(-109 net lines).
   
   | Surface | Pinned |
   | --- | --- |
   | Package namespaces | `org.apache.texera.web.model.websocket.request` and 
`org.apache.texera.web.model.websocket.response` unchanged |
   | Class names & signatures | All case class names, field names, default 
argument values, and types identical |
   | Jackson polymorphic wire mappings | `@JsonTypeInfo` and `@JsonSubTypes` 
discriminator resolutions preserved identically |
   | Public API & imports | Unchanged; existing import sites continue to 
resolve identically |
   
   ### Any related issues?
   
   Closes #9303.
   
   ### How was this PR tested?
   
   - **Tests passed**:
     ```bash
     sbt "WorkflowExecutionService/testOnly 
org.apache.texera.web.model.websocket.request.TexeraWebSocketRequestSpec 
org.apache.texera.web.model.websocket.event.TexeraWebSocketEventSpec 
org.apache.texera.web.resource.WorkflowWebsocketResourceSpec 
org.apache.texera.web.WebsocketInputSpec"
     ```
     - `TexeraWebSocketRequestSpec`: 12/12 passed (including 
`ModifyLogicRequest` and `ResultPaginationRequest` default arguments)
     - `TexeraWebSocketEventSpec`: 11/11 passed (including `HeartBeatResponse`, 
`ModifyLogicResponse`, `ModifyLogicCompletedEvent`, `ClusterStatusUpdateEvent`, 
`RegionUpdateEvent`)
     - `WorkflowWebsocketResourceSpec`: 18/18 passed
     - `WebsocketInputSpec`: 6/6 passed
     - Total: 47/47 tests succeeded.
   - **Code formatting & linting**:
     ```bash
     sbt "WorkflowExecutionService/scalafmtCheck" 
"WorkflowExecutionService/Test/scalafmtCheck"
     sbt "WorkflowExecutionService/scalafix --check" 
"WorkflowExecutionService/Test/scalafix --check"
     ```
     All passed cleanly.
   - **Net change**: 7 files changed, +19 / -128 (net -109 lines).
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   No.
   


-- 
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