Skip to content

Close the branch arms left in the dataset explorer components #7832

Closed

Description

@aglinxinyuan

Task Summary

Two files in the user-dataset explorer are high on statements but weak on branches and functions:

File Coverage
dataset-detail.component.ts 93.1% — 5 missed lines + 24 partial
user-dataset-version-creator.component.ts 88.3% — 5 missed + 2 partial

Both templates were taken to 100% in merged PRs #7681 and #7772, which lifted these .ts files as a side effect — so what is left is branch arms and uncalled handlers, not whole untested regions. The 24 "partial" lines on dataset-detail are exactly the 24 distinct source lines carrying a missed branch arm.

Neither is an instance of #7458 (no TestBed.overrideComponent in either spec) — the non-zero percentages already imply that.

Two things to know before starting:

  1. One of the version-creator's 5 missed lines is dead code. get formControlNames(): string[] — grep -rn formControlNames frontend/src returns exactly one hit, its own declaration. No template and no TypeScript references it. Do not cover it; deleting the getter is a separate production change.
  2. dataset-detail.component.html:593's [disabled] binding does work, contrary to an earlier report. NgModel routes it through control.disable(), deferred to a microtask, so the DOM lags one turn behind detectChanges(). Asserting immediately reads the stale value and invites the wrong conclusion.

Task Type

  • Refactor / Cleanup
  • DevOps / Deployment / CI
  • Testing / QA
  • Documentation
  • Performance
  • Other

Activity

  1. github-actions commented on Aug 22, 2026

    @github-actions
    Contributor

    👋 Thanks for opening this issue, @aglinxinyuan!

    It looks like the issue description doesn't quite follow our template yet:

    • This issue doesn't appear to use one of our templates (Bug, Feature, or Task). Please open it using a template so the required details are captured.

    Filling out the template helps reviewers understand and triage your contribution faster. Please edit the description to complete it. This message will disappear automatically once the template is followed.

    You can find the template prompts by editing the description, or see CONTRIBUTING.md for the full contribution flow.

  2. added a commit that references this issue on Aug 22, 2026
    489b832
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions