Repository navigation
refactor: remove unused dataset, hub and graph glyph code - #9720
Merged
aglinxinyuan merged 4 commits intoNov 27, 2026
Merged
aglinxinyuan merged 4 commits into
aglinxinyuan merged 4 commits into
Conversation
- DatasetService: four multipart forwarders that only its spec called (the uploader calls MultipartUploadService directly), two constructor dependencies nothing read, a re-exported progress type, and URL constants nothing imported, inlined where each was used once. - FilesUploaderComponent: an unused file-tree field and its import. - HubComponent: an isLogin input and a GuiConfigService injection that nothing read, and the unused ActionType.Unlike member. - JointUIService: exports nothing imports, and attribute blocks for three operator count labels that no markup defines.
aglinxinyuan
requested review from
kunwp1
and
a balanced review from Copilot
November 26, 2026 06:05
Contributor
Automated Reviewer SuggestionsBased on the
|
kunwp1
approved these changes
Nov 26, 2026
kunwp1
left a comment
Contributor
There was a problem hiding this comment.
LGTM! One optional suggestion and a nit below.
…et-hub-and-graph-code
The dataset spec's 15 cases that call MultipartUploadService or StagedFileService go; the multipart and staged-file specs already cover 12 of them. The progress-smoothing, ETA-clamp and empty-file failure cases move to multipart-upload.service.spec.ts. The clamp case now stalls at 10 of 100 bytes, so rounding can no longer hide a wrong bound.
Five class-name constants that nothing outside joint-ui.service.ts imports lose their export, and the unread DEFAULT_GROUP_MARGIN and DEFAULT_GROUP_MARGIN_BOTTOM statics go.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9720 +/- ##
============================================
- Coverage 91.77% 91.76% -0.01%
+ Complexity 5135 5118 -17
============================================
Files 1306 1305 -1
Lines 58051 57660 -391
Branches 7547 7512 -35
============================================
- Hits 53274 52910 -364
+ Misses 2889 2878 -11
+ Partials 1888 1872 -16
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
What changes were proposed in this PR?
Remove code that nothing uses from the dataset service, the dataset file uploader, the Hub component and service, and the canvas glyph service (+154/−578 lines). There is no behavior change.
DatasetService: four dead pieces go.multipartUpload,listMultipartUploads,findExistingUploadFilesandfinalizeMultipartUploadonly callMultipartUploadService, andresetDatasetFileDiffandgetDatasetDiffonly callStagedFileService. feat(frontend): add model file upload and version creation #8078 moved every caller to those services and kept the forwarders "so existing callers are untouched"; only specs still called or stubbed them.GuiConfigServiceandMultipartUploadServiceconstructor dependencies that the forwarders and nothing else used.MultipartUploadProgresstype, which nothing imports from here.multipart-upload.service.spec.tsandstaged-file.service.spec.tsalready cover 12 of them.multipart-upload.service.spec.ts: progress smoothing, the ETA clamp, and the 0% failure for an empty file. They account for 84 of the added lines.FilesUploaderComponent: thenewUploadFileTreeNodesfield and its import, unused since Add FileService as a standalone microservice, LakeFS+S3 as dataset storage #3296.HubComponent'sisLogininput andGuiConfigServiceinjection are never read. The dashboard stops passingisLogin, and keeps its own login state.ActionType.Unlikehas no user;postUnlikekeeps its literal endpoint.JointUIService:DEFAULT_GROUP_MARGINandDEFAULT_GROUP_MARGIN_BOTTOMstatics go. Remove Operator Group #3033 removed operator groups, their last reader.HubComponent.isLogin: #2725 (2024-09-24);ActionType.Unlike: #3442 (2025-06-28); group margins: #754 (2020-12-11); count-label attributes: #1374 (2021-11-23) and #3477 (2025-07-08)As of 2026-11-26:
HubComponent.isLoginand the group margins have gone unread for over 2 years.ActionType.Unlikehas been unused for almost a year and a half.Any related issues, documentation, discussions?
Closes #9719.
How was this PR tested?
Ran on this branch and on
mainat927379aa28(Windows 11; Node 24 with Yarn 4.14.1):main, all passing.isLoginandGuiConfigServicechecks, and renames one Hub case for the dropped input.main, the widened bound passed. Dropping the empty-file guard fails the 0% case.To re-check, this returns no hits on this branch and 19 on
main:git grep -nE "public (multipartUpload|listMultipartUploads|findExistingUploadFiles|finalizeMultipartUpload|resetDatasetFileDiff|getDatasetDiff)\(|newUploadFileTreeNodes|Unlike = |texera-operator-(abbreviated|processed|output)-count|private config: GuiConfigService|DEFAULT_GROUP_MARGIN|export const operator(ReuseCacheText|ReuseCacheIcon|ViewResultIcon|Icon|FriendlyName)Class" -- frontend/src/app/dashboard/service/user/dataset frontend/src/app/dashboard/component/user/files-uploader frontend/src/app/hub frontend/src/app/workspace/service/joint-uiWas this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Claude Opus 5.5)