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

   ### What changes were proposed in this PR?
   Removes unreferenced legacy test fixtures, mock data, and stub services 
across frontend workspace and dashboard test suites:
   1. `frontend/src/app/workspace/service/execute-workflow/mock-result-data.ts`:
      - Drops orphaned file (-88 lines) containing `mockData`, 
`mockResultSnapshotUpdate`, `mockResultPaginationUpdate`, `mockResultOperator`, 
and `mockResultPoint` with zero references across the repository.
   2. `frontend/src/app/dashboard/service/user/model/stub-model.service.ts`:
      - Drops orphaned in-memory `StubModelService` class (-47 lines) with zero 
callers or imports.
   3. 
`frontend/src/app/workspace/service/execute-workflow/mock-workflow-plan.ts`:
      - Drops unreferenced mock plans `mockWorkflowPlan_scan_sentiment_result` 
and `mockLogicalPlan_scan_sentiment_result` (-41 lines).
      - Drops companion unused imports `mockScanSentimentLink`, 
`mockSentimentPredicate`, `mockSentimentResultLink` (-8 lines).
   4. 
`frontend/src/app/workspace/service/operator-metadata/mock-operator-metadata.data.ts`:
      - Drops unreferenced `testJsonSchema` definition (-17 lines).
      - Drops companion unused import `CustomJSONSchema7` (-1 line).
   
   **+1/-202 lines.** Pure refactoring with no behavior change.
   
   ### Any related issues, documentation, discussions?
   Closes #9223.
   
   ### How was this PR tested?
   - Prettier check passed:
     ```bash
     yarn prettier --check 
src/app/workspace/service/execute-workflow/mock-workflow-plan.ts 
src/app/workspace/service/operator-metadata/mock-operator-metadata.data.ts
     ```
   - Unit tests passed:
     ```bash
     yarn ng test --watch=false 
--include='src/app/workspace/service/execute-workflow/execute-workflow.service.spec.ts'
     yarn ng test --watch=false 
--include='src/app/workspace/service/operator-metadata/operator-metadata.service.spec.ts'
     ```
   - Verified 0 callers or imports repo-wide on `origin/main` for 
`StubModelService`, `mock-result-data`, 
`mockWorkflowPlan_scan_sentiment_result`, 
`mockLogicalPlan_scan_sentiment_result`, and `testJsonSchema`.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   Generated-by: Antigravity (Claude Opus 5.5)
   


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