You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by be...@apache.org on 2026/05/14 15:19:02 UTC

(superset) branch single-sv updated: Improvements

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

betodealmeida pushed a commit to branch single-sv
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/single-sv by this push:
     new 137c9fca6da Improvements
137c9fca6da is described below

commit 137c9fca6da5f3571d980f6423c9ee11c50bf20b
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Thu May 14 11:18:33 2026 -0400

    Improvements
---
 .../src/features/semanticViews/AddSemanticViewModal.tsx           | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/superset-frontend/src/features/semanticViews/AddSemanticViewModal.tsx b/superset-frontend/src/features/semanticViews/AddSemanticViewModal.tsx
index 4bdc7bf37d3..14bb9e42191 100644
--- a/superset-frontend/src/features/semanticViews/AddSemanticViewModal.tsx
+++ b/superset-frontend/src/features/semanticViews/AddSemanticViewModal.tsx
@@ -254,7 +254,9 @@ export default function AddSemanticViewModal({
           !schema?.properties ||
           Object.keys(schema.properties).length === 0
         ) {
-          // No runtime config needed — fetch views right away
+          // Preserve top-level runtime metadata (e.g. x-singleView) even when
+          // there are no form fields, then fetch views right away.
+          applyRuntimeSchema(schema);
           fetchViews(uuid, {}, gen);
         } else {
           applyRuntimeSchema(schema);
@@ -468,7 +470,9 @@ export default function AddSemanticViewModal({
     if (!singleViewMode) return;
     const namesToAdd = availableViews
       .filter(v => !v.already_added)
-      .map(v => v.name);
+      .map(v => v.name)
+      .sort((a, b) => a.localeCompare(b))
+      .slice(0, 1);
     setSelectedViewNames(prev => {
       if (
         prev.length === namesToAdd.length &&