Repository navigation
Disable Display of Binary Files in Dataset File Panel - #3149
Merged
Merged
Conversation
SarahAsad23
pushed a commit
to madisonmlin/texera
that referenced
this pull request
May 20, 2026
This PR disables the display of binary files (e.g., `.arrow` files) in the dataset file display panel. This change enhances security and improves user experience, as rendering binary files as plain text is both impractical and confusing for users. <img width="1728" alt="Screenshot 2024-12-11 at 11 09 05 AM" src="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/user-attachments/assets/be08bc28-726b-493b-956e-07d14a6f49e1" /> Co-authored-by: Kunwoo Park <kunwoopark@dhcp-172-31-168-022.mobile.uci.edu>
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
This PR disables the display of binary files (e.g., `.arrow` files) in the dataset file display panel. This change enhances security and improves user experience, as rendering binary files as plain text is both impractical and confusing for users. <img width="1728" alt="Screenshot 2024-12-11 at 11 09 05 AM" src="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/user-attachments/assets/be08bc28-726b-493b-956e-07d14a6f49e1" /> Co-authored-by: Kunwoo Park <kunwoopark@dhcp-172-31-168-022.mobile.uci.edu>
This was referenced Nov 15, 2026
renovate-bot
pushed a commit
to renovate-bot/apache-_-texera
that referenced
this pull request
Nov 17, 2026
### What changes were proposed in this PR? Remove unreachable code from dataset creation, dashboard search, and file previews, and rename the dataset creator to match the model creator. **+245/−388 lines across fourteen files.** - The dashboard and result export both open the modal to create a dataset. Versions are created on the dataset detail page, so the shared creator form always shows its visibility and downloadability switches. - With only dataset creation left, `UserDatasetVersionCreatorComponent` becomes `UserDatasetCreatorComponent` and moves from `user-dataset-explorer/` to `user-dataset/user-dataset-creator/`, matching `UserModelCreatorComponent` in `user-model/user-model-creator/`. GitHub shows its `.ts` as a new file because the move and the version-mode removal together change most of it. - Dashboard search has no callers for the public or all scopes. - HTML, PDF, MS Word, and MS PowerPoint suffixes already fall through to the unsupported-preview notice. The preview guard rejects binary files before the size lookup, and every type it accepts has its own size limit, so the default limit is never used. | Code | Introduced by | Usage removed by | | --- | --- | --- | | Modal version mode | apache#3296 | apache#3659 | | Creator form switch toggle | apache#2413 | apache#3659 | | Dashboard search scopes | apache#2987 | apache#3129 | | Binary preview size limit | apache#2413 | apache#3149 | | Default preview size limit | apache#2413, apache#3427 | Never reached | | Unsupported MIME aliases | apache#2413 | Never selected a viewer | The modal mode and its switch toggle have been unreachable since August 2025, the search scopes since January 2025, and the binary size limit since December 2024. ### Any related issues, documentation, discussions? Closes apache#9462. ### How was this PR tested? From `frontend/` on Node 24 ```sh NODE_OPTIONS=--max-old-space-size=8192 yarn test --progress=false \ --include='**/{user-dataset-file-renderer,user-dataset-creator,user-model-creator,user-dataset,result-exportation,result-table-frame,context-menu,dataset-detail,version-uploader}.component.spec.ts' yarn exec tsc --noEmit -p src/tsconfig.app.json yarn exec tsc --noEmit -p src/tsconfig.spec.json yarn format:ci yarn build ``` 509 tests passed across nine suites. The preview test now checks that the four affected suffixes still show the unsupported-preview state without a request to the backend. Both creation entry points, the model creator that shares the creator form, and the dataset version uploader are covered by the targeted run. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Codex (GPT-6) and Claude Code (Claude Opus 5.5) --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR disables the display of binary files (e.g.,

.arrowfiles) in the dataset file display panel. This change enhances security and improves user experience, as rendering binary files as plain text is both impractical and confusing for users.