Skip to content

Remove redundant imports, branches and exports #9691

Description

@aglinxinyuan

Task Summary

Remove redundant code from the frontend, the licensing scripts, two Scala sources and the agent service, without changing behavior:

  • Dataset and model detail pages: tap the route params instead of switching each emission to a route.data subscription that nothing reads, and make the dataset page's unimported THROTTLE_TIME_MS file-local.
  • Version uploader: drop a 404 branch that does what the fall-through does, and make its three constants file-local.
  • Computing-unit actions: drop an optional chain on a parameter that the method has already dereferenced twice.
  • Loop blocks: make LOOP_END_OP_TYPE file-local; only its spec imported it.
  • Agent interaction: merge two imports from the same module.
  • Licensing scripts: drop a notice hash that nothing reads and a test-helper parameter that no caller passes.
  • PveResource: drop two imports that javax.ws.rs._ already covers.
  • SQLSourceOpExec and AsterixDBSourceOpExec: five fallback arms list BOOLEAN | STRING | ANY before _, which already matches them.
  • agent-service/.dockerignore: every image build uses the repository root as its context, so Docker never reads this file.

Introduced by:

Usage removed by:

This is a cleanup with no behavior change.

Task Type

  • Refactor / Cleanup

Activity

  1. self-assigned this
    on Nov 25, 2026
  2. added a commit that references this issue on Nov 26, 2026
    b7d2bb3
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