Skip to content

chore(frontend, v1.3): remove unused operator icons of unknown origin - #9270

Merged
mengw15 merged 1 commit into
release/v1.3from
backport/9269-remove-unused-operator-icons-of-unknown-v1.3
Nov 3, 2026
Merged

mengw15 merged 1 commit into
release/v1.3from
backport/9269-remove-unused-operator-icons-of-unknown-v1.3

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Automated backport of #9269 to release/v1.3.

Source: ae2203e · automation run

Any related issues, documentation, discussions?

Backport of #9269.

How was this PR tested?

The backported tree built green before #9269 merged. Release-branch CI runs on this PR once it is reopened — see the comment below.

Was this PR authored or co-authored using generative AI tooling?

No.

### What changes were proposed in this PR?

Removes 36 image files of unknown origin that Texera never shows (option
A on #8984). They have no recorded source, so they can't ship in the
source release, and since nothing uses them, deleting them is simpler
than replacing them.

- **35 operator icons** whose names match no registered operator type
(`LogicalOp.scala`). Operator icons are only loaded as
`assets/operator_images/<operatorType>.png` (`joint-ui.service.ts`), and
no code references these files by path.
- **`frontend/src/favicon.ico`**: the Angular CLI default favicon from
the 2018 scaffold. `index.html` uses the favicons in `assets/logos/`,
and `angular.json` only copies `src/assets`, so it was never served.

<details>
<summary>The 35 operator icons</summary>

- **Name not referenced anywhere (25):** `AdhocSink`,
`DictionarySource`, `EmojiSentiment`, `FuzzyTokenMatcher`,
`FuzzyTokenSource`, `HdfsFileScan`, `JoinDistance`, `LocalFileScan`,
`NlpEntity`, `NlpSplit`, `RegexMatcher`, `RegexSource`, `RegexSplit`,
`SVMClassifierTrainer`, `SVMRegressorTrainer`, `Sampler`,
`SentimentAnalysis`, `SimilarityJoin`, `SklearnDummy`,
`SklearnTrainingDummy`, `ToLowerCase`, `WordCloudV2`, `WordCount`,
`WordCountIndexSource`, `run-icon`
- **Name only in test fixtures, mocks or prose, never as an image path
(10):** `Aggregation`, `Comparison`, `FileSource`, `KeywordMatcher`,
`KeywordSource`, `NlpSentiment`, `ScanSource`, `SimpleSink`,
`TimeSeries`, `ViewResults`

`SklearnDummy*.png` matched no operator type; the
`SklearnDummyClassifier` operators get their own icons in #9261.
</details>

With this PR, #9220 and #9261, every remaining file in
`frontend/src/assets/operator_images/` is either listed in `LICENSE` or
was made by the project (#5686, #8804, #8999, #9220, #9261). Git history
keeps the deleted files if any is ever needed again.

### Any related issues, documentation, discussions?

Part of #8984 (option A, proposed there on 2026-10-30). Follows #9220
and #9261. Precedent for deleting unused assets: #8803, #9020.

All 36 files are identical on `release/v1.3`, so this backports cleanly
there.

### How was this PR tested?

File deletions only, no code change.

- Checked each name against the operator registry (`LogicalOp.scala`)
and searched the repository for every name and `<name>.png` path: no
operator type and no image reference.
- The frontend loads operator icons only through
`"assets/operator_images/" + operatorType + ".png"`, so a file with no
matching operator type is never requested.
- `favicon.ico`: not referenced by `index.html` or `angular.json`.
`StaticAssetCacheFilterSpec` uses the `/favicon.ico` URL only as a
string to test cache headers.
- Coverage check after the change: each file left in `operator_images/`
is in `LICENSE`, carries a "Created for Apache Texera" PNG notice, or
was last written by one of the project-made PRs listed above.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (claude-opus-5-5)

Claude Code was used to check the files against the operator registry
and code references and to draft this description.

(backported from commit ae2203e)
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Clean cherry-pick — nothing here was edited by hand. It applied to release/v1.3 without conflicts, and the backported tree built green before #9269 merged.

Close this PR and reopen it to start its required checks. This pull request was opened by github-actions[bot], and GitHub starts no workflow run for anything the Actions token does, so it has no checks yet. Reopening it (or pushing any commit to the branch) emits the event they subscribe to. Marking it ready for review will not — none of the three required workflows listen for that.

After that: approve, and enable auto-merge if you would rather not come back when the checks finish.

@mengw15 mengw15 closed this Nov 3, 2026
@mengw15 mengw15 reopened this Nov 3, 2026
@github-actions github-actions Bot added the frontend Changes related to the frontend GUI label Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • No candidates found from git blame history.

@mengw15
mengw15 enabled auto-merge November 3, 2026 05:22
@codecov-commenter

codecov-commenter commented Nov 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.10%. Comparing base (29e6db3) to head (7f841ad).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@               Coverage Diff               @@
##             release/v1.3    #9270   +/-   ##
===============================================
  Coverage           94.10%   94.10%           
  Complexity           4807     4807           
===============================================
  Files                1194     1194           
  Lines               48661    48661           
  Branches             5868     5868           
===============================================
  Hits                45792    45792           
  Misses               1411     1411           
  Partials             1458     1458           
Flag Coverage Δ *Carryforward flag
access-control-service 81.00% <ø> (ø) Carriedforward from 29e6db3
agent-service 99.32% <ø> (ø) Carriedforward from 29e6db3
amber 90.09% <ø> (ø) Carriedforward from 29e6db3
computing-unit-managing-service 73.67% <ø> (ø) Carriedforward from 29e6db3
config-service 87.00% <ø> (ø) Carriedforward from 29e6db3
file-service 87.75% <ø> (ø) Carriedforward from 29e6db3
frontend 96.89% <ø> (ø)
notebook-migration-service 79.31% <ø> (ø) Carriedforward from 29e6db3
pyamber 98.18% <ø> (ø) Carriedforward from 29e6db3
workflow-compiling-service 77.19% <ø> (ø) Carriedforward from 29e6db3

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mengw15
mengw15 added this pull request to the merge queue Nov 3, 2026
Merged via the queue into release/v1.3 with commit e17eb64 Nov 3, 2026
25 checks passed
@mengw15
mengw15 deleted the backport/9269-remove-unused-operator-icons-of-unknown-v1.3 branch November 3, 2026 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants