You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ha...@apache.org on 2026/07/18 03:54:47 UTC

(superset) branch master updated: build(deps): update @rjsf deps to v6 (#41955)

This is an automated email from the ASF dual-hosted git repository.

hainenber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 45354994a62 build(deps): update @rjsf deps to v6 (#41955)
45354994a62 is described below

commit 45354994a62b1ecdd4f1141c478391c73f9c385a
Author: Đỗ Trọng Hải <41...@users.noreply.github.com>
AuthorDate: Sat Jul 18 10:54:40 2026 +0700

    build(deps): update @rjsf deps to v6 (#41955)
    
    Signed-off-by: hainenber <do...@gmail.com>
---
 .github/dependabot.yml                                 | 18 +++++++++++++++++-
 superset-frontend/jest.config.js                       |  2 +-
 superset-frontend/package-lock.json                    | 10 +++++++---
 .../SqlLab/components/ScheduleQueryButton/index.tsx    | 13 ++++++++-----
 4 files changed, 33 insertions(+), 10 deletions(-)

diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index dff11ed37c9..6746194595f 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -10,7 +10,6 @@ updates:
 
   - package-ecosystem: "npm"
     ignore:
-      - dependency-name: "@rjsf/*"
       # TODO: remove below entries once the application supports React >= 19.0.0
       - dependency-name: "react"
         update-types: ["version-update:semver-major"]
@@ -49,6 +48,23 @@ updates:
     labels:
       - npm
       - dependabot
+    groups:
+      rjsf:
+        patterns:
+          - "@rjsf/*"
+      typescript-eslint:
+        patterns:
+          - "@typescript-eslint/*"
+          - "typescript-eslint"
+      babel:
+        patterns:
+          - "@babel/*"
+      deckgl:
+        patterns:
+          - "@deck.gl/*"
+      lumagl:
+        patterns:
+          - "@luma.gl/*"
     open-pull-requests-limit: 30
     versioning-strategy: increase
     cooldown:
diff --git a/superset-frontend/jest.config.js b/superset-frontend/jest.config.js
index 6272d277ea3..f02863dc2c0 100644
--- a/superset-frontend/jest.config.js
+++ b/superset-frontend/jest.config.js
@@ -75,7 +75,7 @@ module.exports = {
     // @ant-design/colors and @ant-design/fast-color are allowed through because
     // @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/*.|@x0k/.*|echarts|zrender|fetch-mock|pretty-ms|parse-ms|ol|@babel/runtime|@emotion|cheerio|cheerio/lib|parse5|dom-serializer|entities|htmlparse [...]
+    '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/*.|@x0k/.*|echarts|zrender|fetch-mock|pretty-ms|parse-ms|ol|@babel/runtime|@emotion|cheerio|cheerio/lib|parse5|dom-serializer|entities|htmlparse [...]
   ],
   preset: 'ts-jest',
   transform: {
diff --git a/superset-frontend/package-lock.json b/superset-frontend/package-lock.json
index 15e9e70fded..860a7f292b1 100644
--- a/superset-frontend/package-lock.json
+++ b/superset-frontend/package-lock.json
@@ -20373,9 +20373,9 @@
       "license": "Apache-2.0"
     },
     "node_modules/fast-equals": {
-      "version": "6.0.0",
-      "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-6.0.0.tgz",
-      "integrity": "sha512-PFhhIGgdM79r5Uztdj9Zb6Tt1zKafqVfdMGwVca1z5z6fbX7DmsySSuJd8HiP6I1j505DCS83cLxo5rmSNeVEA==",
+      "version": "6.0.2",
+      "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-6.0.2.tgz",
+      "integrity": "sha512-sAjhj9ZhOxYCGiNMnZLaucOqf5ZeFnHNoKoAZiD9thhJ0N8RP85qJK759/97C/3L7NzzmGVB5uiX9AUpySZmUQ==",
       "license": "MIT",
       "engines": {
         "node": ">=6.0.0"
@@ -44218,6 +44218,10 @@
       "license": "Apache-2.0",
       "devDependencies": {
         "@babel/types": "^7.29.7",
+        "@testing-library/dom": "^9.3.4",
+        "@testing-library/jest-dom": "*",
+        "@testing-library/react": "^14.0.0",
+        "@testing-library/user-event": "*",
         "@types/jest": "^30.0.0",
         "jest": "^30.4.2"
       },
diff --git a/superset-frontend/src/SqlLab/components/ScheduleQueryButton/index.tsx b/superset-frontend/src/SqlLab/components/ScheduleQueryButton/index.tsx
index 2d2d6b98472..ccfb19cb532 100644
--- a/superset-frontend/src/SqlLab/components/ScheduleQueryButton/index.tsx
+++ b/superset-frontend/src/SqlLab/components/ScheduleQueryButton/index.tsx
@@ -18,8 +18,8 @@
  */
 import { FunctionComponent, useState, useRef, ChangeEvent } from 'react';
 
-import SchemaForm, { FormProps } from '@rjsf/core';
-import { FormValidation } from '@rjsf/utils';
+import SchemaForm from '@rjsf/core';
+import { type FormValidation } from '@rjsf/utils';
 import validator from '@rjsf/validator-ajv8';
 import { t } from '@apache-superset/core/translation';
 import { styled } from '@apache-superset/core/theme';
@@ -74,10 +74,13 @@ const getValidationRules = () => scheduledQueriesConf?.VALIDATION || [];
 
 const getValidator = () => {
   const rules: any = getValidationRules();
-  return (formData: Record<string, any>, errors: FormValidation) => {
+  return (
+    formData: Record<string, any> | undefined,
+    errors: FormValidation,
+  ) => {
     rules.forEach((rule: any) => {
       const test = validators[rule.name as keyof typeof validators];
-      const args = rule.arguments.map((name: string) => formData[name]);
+      const args = rule.arguments.map((name: string) => formData?.[name]);
       const container = rule.container || rule.arguments.slice(-1)[0];
       if (!test(args[0], args[1])) {
         errors[container]?.addError(rule.message);
@@ -160,7 +163,7 @@ const ScheduleQueryButton: FunctionComponent<ScheduleQueryButtonProps> = ({
   const onScheduleSubmit = ({
     formData,
   }: {
-    formData?: Omit<FormProps<Record<string, any>>, 'schema'>;
+    formData?: Record<string, any>;
   }) => {
     const query = {
       label,