aglinxinyuan opened a new issue, #9264:
URL: https://github.com/apache/texera/issues/9264

   ### Task Summary
   
   In `amber/src/main/scala/org/apache/texera/web/model/`, nineteen WebSocket 
request and collaboration message case classes are defined across nineteen 
separate `.scala` files:
   - `amber/src/main/scala/org/apache/texera/web/model/websocket/request/`:
     - `HeartBeatRequest.scala`
     - `RetryRequest.scala`
     - `SkipTupleRequest.scala`
     - `WorkflowCheckpointRequest.scala`
     - `WorkflowKillRequest.scala`
     - `WorkflowPauseRequest.scala`
     - `WorkflowResumeRequest.scala`
   - `amber/src/main/scala/org/apache/texera/web/model/collab/request/`:
     - `AcquireLockRequest.scala`
     - `CommandRequest.scala`
     - `HeartBeatRequest.scala`
     - `RestoreVersionRequest.scala`
     - `TryLockRequest.scala`
     - `WIdRequest.scala`
   - `amber/src/main/scala/org/apache/texera/web/model/collab/event/`:
     - `CommandEvent.scala`
     - `LockGrantedEvent.scala`
     - `LockRejectedEvent.scala`
     - `ReleaseLockEvent.scala`
     - `RestoreVersionEvent.scala`
     - `WorkflowAccessEvent.scala`
   
   Each file consists of an 18-line ASF copyright header and a 1-line case 
class declaration extending either `TexeraWebSocketRequest`, 
`CollabWebSocketRequest`, or `CollabWebSocketEvent`.
   
   This task consolidates these case classes into their respective base trait 
definition files (`TexeraWebSocketRequest.scala`, 
`CollabWebSocketRequest.scala`, and `CollabWebSocketEvent.scala`), eliminating 
19 redundant source files and duplicate boilerplate while preserving exact 
Jackson wire type mapping, packages, and API compatibility.
   
   ### Task Type
   
   - [x] Refactor / Cleanup
   


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