Skip to content

refactor(frontend): remove dataset version creator dead code - #9070

Queued
aglinxinyuan wants to merge 1 commit into
apache:mainfrom
aglinxinyuan:refactor/fe-dataset-version-creator-dead-code
Queued

aglinxinyuan wants to merge 1 commit into
apache:mainfrom
aglinxinyuan:refactor/fe-dataset-version-creator-dead-code

Conversation

@aglinxinyuan

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Removes dead code from UserDatasetVersionCreatorComponent. +3/−19 lines. There is no behaviour change.

  • isCreateButtonDisabled: nothing ever writes it, so it is always false. The create button's [disabled]="isCreateButtonDisabled || isCreating" becomes [disabled]="isCreating", which evaluates identically.
  • The formBuilder injection: nothing reads it. FormBuilder is provided in root, so dropping the parameter (and its import) changes nothing.
  • .file-uploader and .toggle-item .help-text: the component uses emulated encapsulation and no element in its template has either class. The files-uploader child renders its own .file-uploader, which this stylesheet can't reach.

History

Introduced by #2413 (2024-02-27), "Introduce Dataset GUI": isCreateButtonDisabled, formBuilder and .file-uploader. #3663 (2025-08-17), "feat: adding option to allow owner to disallow downloading datasets": .help-text
Usage removed by #3296 (2025-03-11), "Add FileService as a standalone microservice, LakeFS+S3 as dataset storage", removed the <div class="file-uploader"> wrapper. isCreateButtonDisabled, formBuilder and .help-text were never used

isCreateButtonDisabled and formBuilder have been unused for the two and a half years since they were added.

Any related issues, documentation, discussions?

Closes #9067

How was this PR tested?

No new tests. The component spec's create-button cases still cover the [disabled] binding through isCreating.

From frontend/:

  • npx ng test --watch=false --include='**/user-dataset-version-creator.component.spec.ts' --include='**/user-dataset.component.spec.ts' --include='**/result-exportation.component.spec.ts': 3 files, 105 tests, all pass. The last two specs cover the component's two modal hosts.
  • yarn format:ci: clean.
  • npx ng build: success.

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

Generated-by: Claude Code (Claude Opus 5.5)

🤖 Generated with Claude Code

isCreateButtonDisabled is never written, so drop it and its always-
false operand in the create button's [disabled] binding. Drop the
unused FormBuilder injection, and the .file-uploader and .help-text
rules that no element in this template has.
Copilot AI balanced review requested due to automatic review settings October 21, 2026 04:07
@aglinxinyuan aglinxinyuan self-assigned this Oct 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@aglinxinyuan
aglinxinyuan requested a review from kunwp1 October 21, 2026 04:16
@github-actions

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

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

  • Contributors with relevant context: @seongjinyoon, @xuang7
    You can notify them by mentioning @seongjinyoon, @xuang7 in a comment.

@github-actions github-actions Bot added refactor Refactor the code frontend Changes related to the frontend GUI labels Oct 21, 2026
@kunwp1
kunwp1 requested a lite review from Copilot October 21, 2026 06:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

No open issues 🎉

Review effort: Lite

@aglinxinyuan
aglinxinyuan added this pull request to the merge queue Oct 21, 2026

This branch has not been deployed

No deployments
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 refactor Refactor the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove dead code from the dataset version creator

3 participants