kunwp1 commented on code in PR #9463:
URL: https://github.com/apache/texera/pull/9463#discussion_r4592327383


##########
frontend/src/app/dashboard/component/user/user-dataset/user-dataset-explorer/user-dataset-file-renderer/user-dataset-file-renderer.component.ts:
##########
@@ -82,7 +78,6 @@ export const MIME_TYPE_SIZE_LIMITS_MB = {
   [MIME_TYPES.MSEXCEL]: 10 * 1024 * 1024, // 10 MB for Excel spreadsheets
   [MIME_TYPES.MP4]: 50 * 1024 * 1024, // 50 MB for MP4 videos
   [MIME_TYPES.MP3]: 10 * 1024 * 1024, // 10 MB for MP3 audio files
-  [MIME_TYPES.OCTET_STREAM]: 5 * 1024 * 1024, // Default size for other binary 
formats

Review Comment:
   With OCTET_STREAM out of this map, `isPreviewSupported` only needs its 
`hasOwnProperty` check, and every type that passes it has a limit here, so 
`DEFAULT_MAX_SIZE` and its two fallbacks in `reloadFileContent` can't be 
reached anymore.



##########
frontend/src/app/dashboard/component/user/user-dataset/user-dataset-explorer/user-dataset-version-creator/user-dataset-version-creator.component.html:
##########
@@ -22,7 +22,6 @@
   [fields]="fields"
   [model]="model"
   [isCreating]="isCreating"
-  [showToggles]="!isCreatingVersion"

Review Comment:
   This was the last place that set `showToggles`, and the model creator leaves 
it at its default, so the input and the `*ngIf` around the switches in 
`resource-creator-form.component.html` can go too. 
`user-model-creator.component.spec.ts:93` also still mentions this component's 
"dual-purpose version branch".



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