Skip to content

build(deps): update @rjsf deps to v6#41955

Open
hainenber wants to merge 4 commits into
masterfrom
feat/migrate-rjsf-deps-to-v6
Open

build(deps): update @rjsf deps to v6#41955
hainenber wants to merge 4 commits into
masterfrom
feat/migrate-rjsf-deps-to-v6

Conversation

@hainenber

@hainenber hainenber commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

build(deps): update @rjsf deps to v6

SUMMARY

A bit of BAU to keep the project to currency. There are some changes to existing codebase but it's only for typing, pretty nil.

  • Remove unused @rjsf/antd
  • Upgrade @rjsf/* deps to v6
  • Group Dependabot PRs for deps with identical namespaces, i.e. @babel/* or @rjsf/*, for better CI resource utilization

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Signed-off-by: hainenber <dotronghai96@gmail.com>
…nt resource utilization

Signed-off-by: hainenber <dotronghai96@gmail.com>
@dosubot dosubot Bot added dependencies:npm javascript Dependabot - Pull requests that update Javascript code labels Jul 11, 2026
@bito-code-review

bito-code-review Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Code Review Agent Run #240dba

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: df2bb98..cf5e221
    • superset-frontend/src/SqlLab/components/ScheduleQueryButton/index.tsx
  • Files skipped - 3
    • .github/dependabot.yml - Reason: Filter setting
    • superset-frontend/package-lock.json - Reason: Filter setting
    • superset-frontend/package.json - Reason: Filter setting
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

…g transformed by Jest

Signed-off-by: hainenber <dotronghai96@gmail.com>
@codecov

codecov Bot commented Jul 11, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.91%. Comparing base (5e6b29d) to head (347ebbe).

Files with missing lines Patch % Lines
...rc/SqlLab/components/ScheduleQueryButton/index.tsx 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #41955      +/-   ##
==========================================
+ Coverage   64.88%   64.91%   +0.02%     
==========================================
  Files        2742     2740       -2     
  Lines      153378   153102     -276     
  Branches    35168    35139      -29     
==========================================
- Hits        99516    99380     -136     
+ Misses      51958    51826     -132     
+ Partials     1904     1896       -8     
Flag Coverage Δ
javascript 70.01% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bito-code-review

bito-code-review Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Code Review Agent Run #517682

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: cf5e221..0d8486f
    • superset-frontend/jest.config.js
  • Files skipped - 0
  • Tools
    • Eslint (Linter) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

// @ant-design/icons >= 6.3 deep-imports the ESM build of @ant-design/colors
// from its CJS output, so babel-jest must transform those files.
'node_modules/(?!@ant-design/(colors|fast-color)|@formatjs/.*|d3-(array|interpolate|color|time|scale|time-format|format)|internmap|@mapbox/tiny-sdf|remark-gfm|(?!@ngrx|(?!deck.gl)|d3-scale)|markdown-table|micromark-*.|decode-named-character-reference|character-entities|mdast-util-*.|unist-util-*.|ccount|escape-string-regexp|nanoid|uuid|@rjsf/*.|echarts|zrender|fetch-mock|pretty-ms|parse-ms|ol|@babel/runtime|@emotion|cheerio|cheerio/lib|parse5|dom-serializer|entities|htmlparser2|rehype-sanitize|hast-util-sanitize|unified|unist-.*|hast-.*|rehype-.*|remark-.*|mdast-.*|micromark-.*|parse-entities|property-information|space-separated-tokens|comma-separated-tokens|bail|devlop|zwitch|longest-streak|geostyler|geostyler-.*|(?!geostyler)lodash|react-error-boundary|react-json-tree|react-base16-styling|lodash-es|rbush|quickselect|react-diff-viewer-continued|storybook/*.|json-stringify-pretty-compact)',
'node_modules/(?!@ant-design/(colors|fast-color)|@formatjs/.*|d3-(array|interpolate|color|time|scale|time-format|format)|internmap|@mapbox/tiny-sdf|remark-gfm|(?!@ngrx|(?!deck.gl)|d3-scale)|markdown-table|micromark-*.|decode-named-character-reference|character-entities|mdast-util-*.|unist-util-*.|ccount|escape-string-regexp|nanoid|uuid|@rjsf/*.|echarts|zrender|fetch-mock|pretty-ms|parse-ms|ol|@babel/runtime|@emotion|cheerio|cheerio/lib|parse5|dom-serializer|entities|htmlparser2|rehype-sanitize|hast-util-sanitize|unified|unist-.*|hast-.*|rehype-.*|remark-.*|mdast-.*|micromark-.*|parse-entities|property-information|space-separated-tokens|comma-separated-tokens|bail|devlop|zwitch|longest-streak|geostyler|geostyler-.*|(?!geostyler)lodash|react-error-boundary|react-json-tree|react-base16-styling|lodash-es|rbush|quickselect|react-diff-viewer-continued|storybook/*.|json-stringify-pretty-compact|@x0k/json-schema-merge)',

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.

Suggestion: The allowlist regex for @rjsf packages is malformed (@rjsf/*.), which is a typo in regex syntax and can fail to reliably match all @rjsf/* module paths for Babel transformation. Replace it with a proper scoped-package pattern (for example @rjsf/.*) so Jest consistently transpiles @rjsf ESM dependencies instead of intermittently throwing module parse errors. [typo]

Severity Level: Minor 🧹
- Warning: existing regex already matches @rjsf packages.
- Warning: suggestion targets stylistic pattern, not functional bug.
Steps of Reproduction ✅
1. Open `superset-frontend/jest.config.js` and locate `transformIgnorePatterns` at lines
15–20 (as shown in the current file, with the long `node_modules/(?!...)` pattern at line
19).

2. Inspect the subpattern `@rjsf/*.` inside the negative lookahead at
`superset-frontend/jest.config.js:19`; this is the exact code added in this PR and
referenced in the suggestion.

3. Evaluate this subpattern as a JavaScript regular expression: `*` quantifies the
preceding `/`, so `@rjsf/*.` matches `@rjsf/` followed by zero or more `/` characters and
then at least one arbitrary character, which means paths like `@rjsf/core`, `@rjsf/utils`,
and `@rjsf/validator-ajv8` (actually used imports in
`superset-frontend/src/SqlLab/components/ScheduleQueryButton/index.tsx:21-23`) all match
this allowlist.

4. Because module paths under `node_modules/@rjsf/*` (e.g. `node_modules/@rjsf/core/...`)
satisfy this regex, Jest will still treat these packages as allowed for transformation;
there is no concrete scenario where this specific `@rjsf/*.` pattern fails to match while
`@rjsf/.*` would succeed, so the reported issue is effectively a stylistic preference
rather than a reproducible malfunction.

Fix in Cursor Fix in VSCode Claude

(Use Cmd/Ctrl + Click for best experience)

Prompt for AI Agent 🤖
This is a comment left during a code review.

**Path:** superset-frontend/jest.config.js
**Line:** 78:78
**Comment:**
	*Typo: The allowlist regex for `@rjsf` packages is malformed (`@rjsf/*.`), which is a typo in regex syntax and can fail to reliably match all `@rjsf/*` module paths for Babel transformation. Replace it with a proper scoped-package pattern (for example `@rjsf/.*`) so Jest consistently transpiles `@rjsf` ESM dependencies instead of intermittently throwing module parse errors.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
👍 | 👎

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The newly added dep to exclude from Jest code transform is a transitive dependency of @rjsf/* libraries so your comment doesn't make sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies:npm javascript Dependabot - Pull requests that update Javascript code size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant