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 2025/07/17 22:31:17 UTC
(superset) 05/07: Checkpoint
This is an automated email from the ASF dual-hosted git repository.
beto pushed a commit to branch dbt-metricflow
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 81cf3ca0242393447e2e34d6c96926930941a139
Author: Beto Dealmeida <ro...@dealmeida.net>
AuthorDate: Thu Jul 17 18:21:34 2025 -0400
Checkpoint
---
.../components/controls/SemanticLayerVerification.tsx | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/superset-frontend/src/explore/components/controls/SemanticLayerVerification.tsx b/superset-frontend/src/explore/components/controls/SemanticLayerVerification.tsx
index 7b0610f27d..c9b0eba3f3 100644
--- a/superset-frontend/src/explore/components/controls/SemanticLayerVerification.tsx
+++ b/superset-frontend/src/explore/components/controls/SemanticLayerVerification.tsx
@@ -141,9 +141,10 @@ async function callValidationAPI(
apiCallCache.set(cacheKey, apiPromise);
// Remove from cache after a short delay to allow for immediate duplicates
+ // Increased timeout to handle rapid successive calls from multiple controls
setTimeout(() => {
apiCallCache.delete(cacheKey);
- }, 100);
+ }, 500);
return await apiPromise;
} catch (error) {
@@ -177,6 +178,15 @@ export function createMetricsVerification(controlName?: string): AsyncVerify {
const queryFields = collectQueryFields(updatedFormData || {});
// Call validation API
+ console.log('Metrics verification API call:', {
+ controlName,
+ originalFormData: form_data,
+ updatedFormData,
+ value,
+ dimensions: queryFields.dimensions,
+ metrics: queryFields.metrics,
+ });
+
const validationResult = await callValidationAPI(
datasource as Dataset,
queryFields.dimensions,
@@ -279,6 +289,9 @@ export function createColumnsVerification(controlName?: string): AsyncVerify {
// Call validation API
console.log('Columns verification API call:', {
controlName,
+ originalFormData: form_data,
+ updatedFormData,
+ value,
dimensions: queryFields.dimensions,
metrics: queryFields.metrics,
});