Skip to content

ASTD-259: Add missing deps to handleInferFromExisting#419

Merged
marcusds merged 1 commit into
mainfrom
mschwab/astd-259-datasetschemaeditor-stale-deps
Jun 23, 2026
Merged

ASTD-259: Add missing deps to handleInferFromExisting#419
marcusds merged 1 commit into
mainfrom
mschwab/astd-259-datasetschemaeditor-stale-deps

Conversation

@marcusds

@marcusds marcusds commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes ASTD-259: The handleInferFromExisting useCallback was missing workspace and datasetName from its dependency array, causing stale values after route changes.

Changes

  • Added workspace and datasetName to the useCallback dependency array
  • Removed the incorrect eslint-disable comment

Testing

  • Verified the dependency array now includes all referenced values

Summary by CodeRabbit

  • Chores
    • Internal improvements made to the dataset schema editor component to enhance code quality, reliability, and maintainability without affecting user experience.

Add workspace and datasetName to the useCallback dependency array
and remove the incorrect eslint-disable comment. Those values are
passed as arguments to downloadFileHead, not captured in its closure.

Signed-off-by: mschwab <mschwab@nvidia.com>
@marcusds
marcusds requested review from a team as code owners June 23, 2026 19:32
@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: 6d496249-f048-45c0-8586-545f5335f4f6

📥 Commits

Reviewing files that changed from the base of the PR and between b021449 and 6eceba7.

📒 Files selected for processing (1)
  • web/packages/studio/src/routes/FilesetDetailRoute/DatasetSchemaEditor/useDatasetSchemaEditor.ts

📝 Walkthrough

Walkthrough

handleInferFromExisting's useCallback dependency array in useDatasetSchemaEditor is updated to include workspace and datasetName. The eslint-disable comment that previously suppressed the missing-deps warning is removed.

Changes

useCallback Dependency Fix

Layer / File(s) Summary
Add missing useCallback deps
web/packages/studio/src/routes/FilesetDetailRoute/DatasetSchemaEditor/useDatasetSchemaEditor.ts
workspace and datasetName added to handleInferFromExisting dependency array; eslint suppression comment removed.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed Title directly and clearly summarizes the main change: adding missing dependencies to the handleInferFromExisting hook to fix a stale closure bug.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch mschwab/astd-259-datasetschemaeditor-stale-deps

Comment @coderabbitai help to get the list of available commands.

@marcusds
marcusds enabled auto-merge June 23, 2026 19:35
@marcusds
marcusds added this pull request to the merge queue Jun 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor
Suite Lines Covered Line Rate Branch Rate
Unit Tests 21176/27762 76.3% 61.2%
Integration Tests 12216/26531 46.0% 19.5%

Merged via the queue into main with commit 8fc9929 Jun 23, 2026
51 of 53 checks passed
@marcusds
marcusds deleted the mschwab/astd-259-datasetschemaeditor-stale-deps branch June 23, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants