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

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


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