aglinxinyuan opened a new pull request, #9256:
URL: https://github.com/apache/texera/pull/9256
### What changes were proposed in this PR?
Removes unreferenced utility functions, dead assertions, and obsolete
websocket types in rontend:
- rontend/src/app/common/util/storage.ts & storage.spec.ts:
- Drops localRemoveObject and sessionRemoveObject (-24 lines prod + spec)
with zero call sites across the repository.
- rontend/src/app/common/util/assert.ts & ssert.spec.ts:
- Drops obsolete assertion and type guard utilities ssertType, isNull,
isNotNull, and
onNull (-101 lines prod + spec) with zero callers across the repository.
-
rontend/src/app/common/service/workflow-persist/stub-workflow-persist.service.ts:
- Drops unused route constants WORKFLOW_BASE_URL and WORKFLOW_SEARCH_URL
(-3 lines).
- rontend/src/app/workspace/types/collab-websocket.interface.ts:
- Drops orphaned interface file (-74 lines) with zero imports across the
frontend.
- rontend/src/app/workspace/types/workflow-websocket.interface.ts:
- Drops ResultExportRequest and ResultExportResponse types and their
entries in TexeraWebsocketRequestTypeMap and TexeraWebsocketEventTypeMap (-19
lines), which are HTTP REST models rather than websocket messages.
**+3/-232 lines across 7 files.** Pure refactoring with no behavior change.
### Any related issues, documentation, discussions?
Closes #9255.
### How was this PR tested?
- Prettier check passed:
`ash
yarn prettier --check src/app/common/util/storage.ts
src/app/common/util/storage.spec.ts src/app/common/util/assert.ts
src/app/common/util/assert.spec.ts
src/app/common/service/workflow-persist/stub-workflow-persist.service.ts
src/app/workspace/types/workflow-websocket.interface.ts
`
- Unit tests passed (20 tests, 2 test files):
`ash
yarn ng test --watch=false --include=src/app/common/util/storage.spec.ts
--include=src/app/common/util/assert.spec.ts
`
- Verified 0 callers repo-wide across the entire repository.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Antigravity 2.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]