Skip to content

Unreachable websocket event, orphaned dataset list-item component and unused schema helper #7782

Closed

Description

@aglinxinyuan

Describe the bug

Three pieces of frontend and websocket code are unreachable, and one of them leaves a dangling client handler wired to an event the backend can never send.

1. WorkflowAvailableResultEvent has no producer, but the frontend still subscribes to it.

grep -rn "WorkflowAvailableResultEvent(" across the repo returns only the case class declaration — nothing in src/main constructs it, and it is not among the 11 classOf[...] entries in TexeraWebSocketEvent.scala's @JsonSubTypes, so it is not reflectively dispatched either. Meanwhile frontend/src/app/workspace/service/workflow-result/workflow-result.service.ts still subscribes to "WorkflowAvailableResultEvent" and routes it to handleCleanResultCache, which is therefore unreachable.

There is a second signal that this path was never live: the TypeScript type in workflow-websocket.interface.ts declares availableOperators as ReadonlyArray<OperatorAvailableResult>, while the Scala event and the handler both treat it as a keyed map (Map[String, OperatorAvailableResult] / Object.entries(...)). The declared wire shape matched neither producer nor consumer.

2. UserDatasetListItemComponent is orphaned. Its selector texera-user-dataset-list-item appears repo-wide only in its own @Component declaration and its own spec's test host. The one other reference is a standalone entry in app.module.ts's imports array with no consumer — and since declarations is [AppComponent] only, being in imports merely exposes it to AppComponent's template, where the selector does not appear. The dataset page moved to texera-card-item/texera-search-results in #5947.

3. DynamicSchemaService.dynamicSchemaExists is unused — exactly one occurrence repo-wide, its own declaration, while every sibling method has 2–5 call sites.

How to reproduce?

Grep for each symbol. For (1), note that handleCleanResultCache can only be triggered by a synthetic event pushed directly onto the socket subject in a test, never by a real frame.

Version/Branch

main

Task Type

  • Refactor / Cleanup
  • DevOps / Deployment / CI
  • Testing / QA
  • Documentation
  • Performance
  • Other

Activity

  1. added theissue type on Aug 19, 2026
  2. github-actions commented on Aug 19, 2026

    @github-actions
    Contributor

    👋 Thanks for opening this issue, @aglinxinyuan!

    It looks like the issue description doesn't quite follow our template yet:

    • The What happened? section is missing; please keep the template's headings.

    Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.

    You can find the template prompts by editing the description, or see CONTRIBUTING.md for the full contribution flow.

  3. github-actions commented on Aug 19, 2026

    @github-actions
    Contributor

    👋 Thanks for opening this issue, @aglinxinyuan!

    It looks like the issue description doesn't quite follow our template yet:

    • The What happened? section is missing; please keep the template's headings.

    Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.

    You can find the template prompts by editing the description, or see CONTRIBUTING.md for the full contribution flow.

  4. added a commit that references this issue on Aug 22, 2026
    8ca9db2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions