You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "Vitor-Avila (via GitHub)" <gi...@apache.org> on 2025/07/25 15:55:10 UTC

[PR] feat: Enable drilling in embedded [superset]

Vitor-Avila opened a new pull request, #34319:
URL: https://github.com/apache/superset/pull/34319

   ### SUMMARY
   This PR exposes drilling capabilities to embedded users via a new FF: `DRILLING_IN_EMBEDDED`. Highlights:
   
   **New API endpoint**
   A new API endpoint was created for drilling: `/api/v1/dataset/{{pk}}/drill_info/`. Previously, the drilling context (columns to drill, dataset info to display in the `useDatasetMetadataBar` etc) were loaded from `/api/v1/dataset/{{pk}}`. Exposing this entire endpoint to embedded users is not ideal, as it exposes a lot of metadata.
   
   **Server-side validations**
   * Previously, the backend would return all dataset columns, and then the client would filter out columns that have `groupby=False`. This would allow embedded users to find out names of other columns that should not be exposed. 
   * Specifically for embedded users, there's also server-side validation to prevent a user to manipulate the API call and drill by a column that has `groupby=False`.
   
   **Bonus**
   * This PR also fixes drilling for `DASHBOARD_RBAC`,
   * It improves performance by reducing repetitive calls. The call to load the drill context was moved up to `ChartContextMenu` and it's passed to `DrillDetail`, `DrillBy` and `useDatasetMetadataBar`.
   * The new API endpoint relies on FAB's `select_columns`, to filter the returned columns at the SQL query level (not at the response level) which also improves performance.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   I'll add a video soon
   
   ### TESTING INSTRUCTIONS
   Test coverage added. For manual testing:
   **Embedded**
   1. Make sure the embedded role has the required permissions to perform drilling operations.
   2. Enable the `DRILLING_IN_EMBEDDED` FF.
   3. Load a dashboard in embedded mode.
   4. Validate the right-click menu on a chart exposes the drilling options.
   5. Confirm the dialogs don't expose additional information or not useful buttons.
   
   Same thing for `DASHBOARD_RBAC`, just replace step 1 with:
   1. Make sure the user is added to a role that 1) does not have access to the dashboard datasets and 2) has the required permissions to drill. 
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351))
     - [ ] 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
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on PR #34319:
URL: https://github.com/apache/superset/pull/34319#issuecomment-3130556763

   @michael-s-molina I've changed the approach here to remove the FF. Could you please take a look? 🙏 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on code in PR #34319:
URL: https://github.com/apache/superset/pull/34319#discussion_r2248243872


##########
superset-frontend/src/features/datasets/metadataBar/useDatasetMetadataBar.tsx:
##########
@@ -16,49 +16,31 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-import { useEffect, useMemo, useState } from 'react';
+import { useMemo } from 'react';
 import { css, t, useTheme } from '@superset-ui/core';
-import { Alert } from '@superset-ui/core/components';
 import { Dataset } from 'src/components/Chart/types';
 import MetadataBar from '@superset-ui/core/components/MetadataBar';
 import {
   ContentType,
   MetadataType,
 } from '@superset-ui/core/components/MetadataBar/ContentType';
-import { ResourceStatus } from 'src/hooks/apiResources/apiResources';
-import { cachedSupersetGet } from 'src/utils/cachedSupersetGet';
+import { isEmbedded } from 'src/dashboard/util/isEmbedded';
+
+export interface UseDatasetMetadataBarProps {
+  dataset?: Dataset;
+}
 
-export type UseDatasetMetadataBarProps =
-  | { datasetId?: undefined; dataset: Dataset }
-  | { datasetId: number | string; dataset?: undefined };
 export const useDatasetMetadataBar = ({
-  dataset: datasetProps,
-  datasetId,
-}: UseDatasetMetadataBarProps) => {
+  dataset,
+}: UseDatasetMetadataBarProps): { metadataBar: React.ReactElement | null } => {
   const theme = useTheme();
-  const [result, setResult] = useState<Dataset>();
-  const [status, setStatus] = useState<ResourceStatus>(
-    datasetProps ? ResourceStatus.Complete : ResourceStatus.Loading,
-  );
-
-  useEffect(() => {
-    if (!datasetProps && datasetId) {
-      cachedSupersetGet({
-        endpoint: `/api/v1/dataset/${datasetId}`,
-      })
-        .then(({ json: { result } }) => {
-          setResult(result);
-          setStatus(ResourceStatus.Complete);
-        })
-        .catch(() => {
-          setStatus(ResourceStatus.Error);
-        });
-    }
-  }, [datasetId, datasetProps]);

Review Comment:
   Dataset fetched in `ChartContextMenu` and passed through



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "eschutho (via GitHub)" <gi...@apache.org>.
eschutho commented on code in PR #34319:
URL: https://github.com/apache/superset/pull/34319#discussion_r2248501608


##########
superset/security/manager.py:
##########
@@ -570,6 +571,32 @@ def can_access_datasource(self, datasource: "BaseDatasource") -> bool:
 
         return True
 
+    def can_drill_dataset_via_dashboard_access(
+        self, dataset: "BaseDatasource", dashboard: "Dashboard"
+    ) -> bool:
+        """
+        Return True if an embedded user or DASHBOARD_RBAC user can drill a dataset.

Review Comment:
   @Vitor-Avila since drilling exposes more data, is there a way to disable this feature for embedded users if they don't want to turn it on?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on PR #34319:
URL: https://github.com/apache/superset/pull/34319#issuecomment-3119604366

   > Hmm open to suggestions here. We could potentially fully remove the FF and rely solely on validating if the role has the required perms to D2D. Would you say that's better?
   
   Definitely. Every time we introduce a new feature flag we increase the complexity and maintainability of the codebase. In this case, permissions seem the natural way. @rusackas pointed out that we could also have readonly embedded dashboards, which in this case a configuration like we have for cross-filtering would be more appropriate. Either way works for me and it's better than adding a new feature flag.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on PR #34319:
URL: https://github.com/apache/superset/pull/34319#issuecomment-3119589175

   > @Vitor-Avila Do we really need a new feature flag? Should this be a dashboard property such cross filters?
   
   Hmm open to suggestions here. We could potentially fully remove the FF and rely solely on validating if the role has the required perms to D2D. Would you say that's better?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on code in PR #34319:
URL: https://github.com/apache/superset/pull/34319#discussion_r2248256882


##########
tests/integration_tests/base_tests.py:
##########
@@ -180,33 +181,39 @@ def temporary_user(
         temp_user = ab_models.User(
             username=username, email=f"{username}@temp.com", active=True
         )
+        pvms = []
+
         if clone_user:
-            temp_user.roles = clone_user.roles
             temp_user.first_name = clone_user.first_name
             temp_user.last_name = clone_user.last_name
             temp_user.password = clone_user.password
+            if clone_user.roles:
+                for role in clone_user.roles:
+                    pvms.extend(role.permissions)

Review Comment:
   Moving away from doing `temp_user.roles = clone_user.roles` because now we support `pvms_to_remove` and we don't want to remove pvms from the copied role.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "betodealmeida (via GitHub)" <gi...@apache.org>.
betodealmeida commented on code in PR #34319:
URL: https://github.com/apache/superset/pull/34319#discussion_r2252409285


##########
superset/security/manager.py:
##########
@@ -2401,6 +2428,32 @@ def raise_for_access(  # noqa: C901
                             and slc in dashboard_.slices
                             and slc.datasource == datasource
                         )
+                        or (

Review Comment:
   Oh my, what is this monster expression stating on line 2379?!? 😱
   
   We should break this down into methods that are self-explanatotry, like:
   
   ```python
   return (
       self.is_d2d_allowed(form_data) or
       self.is_dashbaord_rbac(form_data) or
       ...
   )
   ```
   
   (Not saying _you_ should do it, but you could start by moving the code you're adding into a method and call that instead here.)



##########
superset-frontend/src/components/Chart/ChartContextMenu/ChartContextMenu.tsx:
##########
@@ -151,6 +166,75 @@ const ChartContextMenu = (
     canDrillBy &&
     isDisplayed(ContextMenuItem.DrillBy);
 
+  useEffect(() => {
+    async function fetchDataset() {
+      if (!visible || dataset || (!showDrillBy && !showDrillToDetail)) return;
+
+      const datasetId = Number(formData.datasource.split('__')[0]);
+      try {
+        setIsLoadingDataset(true);
+        let response;
+
+        if (loadDrillByOptionsExtension) {
+          response = await loadDrillByOptionsExtension(datasetId, formData);
+        } else {
+          const endpoint = `/api/v1/dataset/${datasetId}/drill_info/?q=(dashboard_id:${dashboardId})`;
+          response = await cachedSupersetGet({ endpoint });
+        }
+
+        const { json } = response;
+        const { result } = json;
+
+        setDataset(result);
+      } catch (error) {
+        logging.error('Failed to load dataset:', error);
+        supersetGetCache.delete(`/api/v1/dataset/${datasetId}/drill_info/`);
+      } finally {
+        setIsLoadingDataset(false);
+      }
+    }
+
+    fetchDataset();
+  }, [
+    visible,

Review Comment:
   Don't we need to add `dataset` here as well?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on PR #34319:
URL: https://github.com/apache/superset/pull/34319#issuecomment-3119668478

   > > Hmm open to suggestions here. We could potentially fully remove the FF and rely solely on validating if the role has the required perms to D2D. Would you say that's better?
   > 
   > Definitely. Every time we introduce a new feature flag we increase the complexity and maintainability of the codebase. In this case, permissions seem the natural way. @rusackas pointed out that we could also have readonly embedded dashboards, which in this case a configuration like we have for cross-filtering would be more appropriate. Either way works for me and it's better than adding a new feature flag.
   
   Awesome -- I'll work on moving to perm-based validation only and remove the FF. I would prefer on that because then we can potentially scope it by user, as opposed to by dashboard. Users can decide what's the desired perms for their embedded users, and if they need it dynamically they could have two roles and dynamically change the role assigned. In the future, if drilling can be disabled at the dashboard level, we can then respect that too in the embedded context (like a dashboard-level override) that could potentially be controlled via the embedded SDK too.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "eschutho (via GitHub)" <gi...@apache.org>.
eschutho commented on code in PR #34319:
URL: https://github.com/apache/superset/pull/34319#discussion_r2248499245


##########
UPDATING.md:
##########
@@ -32,6 +32,7 @@ assists people when migrating to a new version.
 - [32317](https://github.com/apache/superset/pull/32317) The horizontal filter bar feature is now out of testing/beta development and its feature flag `HORIZONTAL_FILTER_BAR` has been removed.
 - [31590](https://github.com/apache/superset/pull/31590) Marks the begining of intricate work around supporting dynamic Theming, and breaks support for [THEME_OVERRIDES](https://github.com/apache/superset/blob/732de4ac7fae88e29b7f123b6cbb2d7cd411b0e4/superset/config.py#L671) in favor of a new theming system based on AntD V5. Likely this will be in disrepair until settling over the 5.x lifecycle.
 - [32432](https://github.com/apache/superset/pull/31260) Moves the List Roles FAB view to the frontend and requires `FAB_ADD_SECURITY_API` to be enabled in the configuration and `superset init` to be executed.
+- [34319](https://github.com/apache/superset/pull/34319) Drill to Detail and Drill By is now supported in Embedded mode, and also with the `DASHBOARD_RBAC` FF. If you don't want to expose these features in Embedded / `DASHBOARD_RBAC`, make sure the roles used for Embedded / `DASHBOARD_RBAC`don't have the required permissions to perform D2D actions.

Review Comment:
   Can we highlight what the roles are to turn this on/off?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on code in PR #34319:
URL: https://github.com/apache/superset/pull/34319#discussion_r2248531221


##########
superset/security/manager.py:
##########
@@ -570,6 +571,32 @@ def can_access_datasource(self, datasource: "BaseDatasource") -> bool:
 
         return True
 
+    def can_drill_dataset_via_dashboard_access(
+        self, dataset: "BaseDatasource", dashboard: "Dashboard"
+    ) -> bool:
+        """
+        Return True if an embedded user or DASHBOARD_RBAC user can drill a dataset.

Review Comment:
   @eschutho initially I had a FF to gate this, but was advised against here : https://github.com/apache/superset/pull/34319#issuecomment-3119476516
   
   This will still be controlled by regular role perm. If the embedded role has `can_drill_info` on `Dataset` they'll have access to this endpoint, otherwise they won't have it. Then the UI also checks for the regular permissions to show (or not) the **Drill by** and **Drill to Detail** options.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "korbit-ai[bot] (via GitHub)" <gi...@apache.org>.
korbit-ai[bot] commented on code in PR #34319:
URL: https://github.com/apache/superset/pull/34319#discussion_r2253057565


##########
superset/datasets/schemas.py:
##########
@@ -19,14 +19,29 @@
 
 from dateutil.parser import isoparse
 from flask_babel import lazy_gettext as _
-from marshmallow import fields, pre_load, Schema, validates_schema, ValidationError
+from marshmallow import (
+    fields,
+    post_dump,
+    pre_load,
+    Schema,
+    validates_schema,
+    ValidationError,
+)
 from marshmallow.validate import Length, OneOf
 
+from superset import security_manager
+from superset.connectors.sqla.models import SqlaTable
 from superset.exceptions import SupersetMarshmallowValidationError
 from superset.utils import json
 
 get_delete_ids_schema = {"type": "array", "items": {"type": "integer"}}
 get_export_ids_schema = {"type": "array", "items": {"type": "integer"}}
+get_drill_info_schema = {
+    "type": "object",
+    "properties": {
+        "dashboard_id": {"type": "integer"},
+    },
+}

Review Comment:
   I see - since dashboard_id is only required for limited roles but optional for admins/users with dataset access, keeping it as an optional parameter in the schema makes sense. Thanks for clarifying.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "korbit-ai[bot] (via GitHub)" <gi...@apache.org>.
korbit-ai[bot] commented on code in PR #34319:
URL: https://github.com/apache/superset/pull/34319#discussion_r2231510386


##########
superset-frontend/src/features/datasets/metadataBar/DatasetMetadataBar.skipped-stories.tsx:
##########
@@ -52,7 +52,23 @@ export default {
 export const DatasetSpecific = () => {
   SupersetClient.reset();
   SupersetClient.configure({ csrfToken: '1234' }).init();
-  const { metadataBar } = useDatasetMetadataBar({ datasetId: 1 });
+
+  const mockDataset = {

Review Comment:
   ### Undocumented mock dataset structure <sub>![category Documentation](https://img.shields.io/badge/Documentation-7c3aed)</sub>
   
   <details>
     <summary>Tell me more</summary>
   
   ###### What is the issue?
   The mockDataset object lacks documentation explaining what it represents and why specific mock values were chosen.
   
   
   ###### Why this matters
   Future developers might modify the mock values without understanding their significance in demonstrating the component's features.
   
   ###### Suggested change ∙ *Feature Preview*
   ```typescript
     // Mock dataset representing a typical dataset entity with all required
     // fields for metadata bar display
     const mockDataset = {
   ```
   
   
   ###### Provide feedback to improve future suggestions
   [![Nice Catch](https://img.shields.io/badge/👍%20Nice%20Catch-71BC78)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/7ee0996a-5af0-40a1-8aec-cecaaed6607a/upvote) [![Incorrect](https://img.shields.io/badge/👎%20Incorrect-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/7ee0996a-5af0-40a1-8aec-cecaaed6607a?what_not_true=true)  [![Not in Scope](https://img.shields.io/badge/👎%20Out%20of%20PR%20scope-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/7ee0996a-5af0-40a1-8aec-cecaaed6607a?what_out_of_scope=true) [![Not in coding standard](https://img.shields.io/badge/👎%20Not%20in%20our%20standards-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/7ee0996a-5af0-40a1-8aec-cecaaed6607a?what_not_in_standard=true) [![Other](https://img.shields.io/badge/👎%20Other-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/7ee0996a-5af0-40a1-8aec-cecaaed6607a)
   </details>
   
   <sub>
   
   💬 Looking for more details? Reply to this comment to chat with Korbit.
   </sub>
   
   <!--- korbi internal id:26609def-565b-4d4a-b80f-9a4d523045fd -->
   
   
   [](26609def-565b-4d4a-b80f-9a4d523045fd)



##########
superset-frontend/packages/superset-ui-core/src/utils/featureFlags.ts:
##########
@@ -40,6 +40,7 @@ export enum FeatureFlag {
   EmbeddableCharts = 'EMBEDDABLE_CHARTS',
   EmbeddedSuperset = 'EMBEDDED_SUPERSET',
   EnableAdvancedDataTypes = 'ENABLE_ADVANCED_DATA_TYPES',
+  DrillingInEmbedded = 'DRILLING_IN_EMBEDDED',

Review Comment:
   ### Feature Flag Not Alphabetically Ordered <sub>![category Readability](https://img.shields.io/badge/Readability-0284c7)</sub>
   
   <details>
     <summary>Tell me more</summary>
   
   ###### What is the issue?
   The new feature flag DrillingInEmbedded is not added in alphabetical order as required by the code comment '// PLEASE KEEP THE LIST SORTED ALPHABETICALLY'.
   
   
   ###### Why this matters
   Breaking the alphabetical order makes it harder to locate specific feature flags and could lead to confusion when maintaining the codebase, especially when dealing with a large number of flags.
   
   ###### Suggested change ∙ *Feature Preview*
   Move the feature flag to maintain alphabetical order between 'DrillBy' and 'DynamicPlugins':
   ```typescript
     DrillBy = 'DRILL_BY',
     DrillingInEmbedded = 'DRILLING_IN_EMBEDDED',
     DynamicPlugins = 'DYNAMIC_PLUGINS',
   ```
   
   
   
   ###### Provide feedback to improve future suggestions
   [![Nice Catch](https://img.shields.io/badge/👍%20Nice%20Catch-71BC78)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/cb827a67-267a-465c-804b-084327270cef/upvote) [![Incorrect](https://img.shields.io/badge/👎%20Incorrect-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/cb827a67-267a-465c-804b-084327270cef?what_not_true=true)  [![Not in Scope](https://img.shields.io/badge/👎%20Out%20of%20PR%20scope-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/cb827a67-267a-465c-804b-084327270cef?what_out_of_scope=true) [![Not in coding standard](https://img.shields.io/badge/👎%20Not%20in%20our%20standards-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/cb827a67-267a-465c-804b-084327270cef?what_not_in_standard=true) [![Other](https://img.shields.io/badge/👎%20Other-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/cb827a67-267a-465c-804b-084327270cef)
   </details>
   
   <sub>
   
   💬 Looking for more details? Reply to this comment to chat with Korbit.
   </sub>
   
   <!--- korbi internal id:a350b125-4af6-4a5f-934f-516ae4f97d30 -->
   
   
   [](a350b125-4af6-4a5f-934f-516ae4f97d30)



##########
superset/datasets/schemas.py:
##########
@@ -19,14 +19,29 @@
 
 from dateutil.parser import isoparse
 from flask_babel import lazy_gettext as _
-from marshmallow import fields, pre_load, Schema, validates_schema, ValidationError
+from marshmallow import (
+    fields,
+    post_dump,
+    pre_load,
+    Schema,
+    validates_schema,
+    ValidationError,
+)
 from marshmallow.validate import Length, OneOf
 
+from superset import security_manager
+from superset.connectors.sqla.models import SqlaTable
 from superset.exceptions import SupersetMarshmallowValidationError
 from superset.utils import json
 
 get_delete_ids_schema = {"type": "array", "items": {"type": "integer"}}
 get_export_ids_schema = {"type": "array", "items": {"type": "integer"}}
+get_drill_info_schema = {
+    "type": "object",
+    "properties": {
+        "dashboard_id": {"type": "integer"},
+    },
+}

Review Comment:
   ### Missing Required Field Specification in Schema <sub>![category Functionality](https://img.shields.io/badge/Functionality-0284c7)</sub>
   
   <details>
     <summary>Tell me more</summary>
   
   ###### What is the issue?
   The schema for dashboard_id in get_drill_info_schema lacks the 'required' field specification
   
   
   ###### Why this matters
   Without specifying if dashboard_id is required, the API may accept invalid requests without this crucial parameter, potentially causing drill functionality to fail
   
   ###### Suggested change ∙ *Feature Preview*
   Add the 'required' field to explicitly define whether dashboard_id is mandatory:
   ```python
   get_drill_info_schema = {
       "type": "object",
       "properties": {
           "dashboard_id": {"type": "integer"},
       },
       "required": ["dashboard_id"]
   }
   ```
   
   
   ###### Provide feedback to improve future suggestions
   [![Nice Catch](https://img.shields.io/badge/👍%20Nice%20Catch-71BC78)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/e99813f2-75e2-4618-9ab0-7a8768f977c3/upvote) [![Incorrect](https://img.shields.io/badge/👎%20Incorrect-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/e99813f2-75e2-4618-9ab0-7a8768f977c3?what_not_true=true)  [![Not in Scope](https://img.shields.io/badge/👎%20Out%20of%20PR%20scope-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/e99813f2-75e2-4618-9ab0-7a8768f977c3?what_out_of_scope=true) [![Not in coding standard](https://img.shields.io/badge/👎%20Not%20in%20our%20standards-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/e99813f2-75e2-4618-9ab0-7a8768f977c3?what_not_in_standard=true) [![Other](https://img.shields.io/badge/👎%20Other-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/e99813f2-75e2-4618-9ab0-7a8768f977c3)
   </details>
   
   <sub>
   
   💬 Looking for more details? Reply to this comment to chat with Korbit.
   </sub>
   
   <!--- korbi internal id:b7a64e65-ce08-4155-9594-fa5394022bd5 -->
   
   
   [](b7a64e65-ce08-4155-9594-fa5394022bd5)



##########
superset-frontend/src/components/Chart/DrillBy/DrillByModal.tsx:
##########
@@ -93,6 +94,8 @@ const ModalFooter = ({ formData, closeModal }: ModalFooterProps) => {
 
   const [datasource_id, datasource_type] = formData.datasource.split('__');
   useEffect(() => {
+    // short circuit if the user is embedded as explore is not available
+    if (isEmbedded()) return;

Review Comment:
   ### Incomplete State Handling in Embedded Mode <sub>![category Functionality](https://img.shields.io/badge/Functionality-0284c7)</sub>
   
   <details>
     <summary>Tell me more</summary>
   
   ###### What is the issue?
   The code prematurely returns when in embedded mode without setting the URL state, which might lead to incorrect button state handling.
   
   
   ###### Why this matters
   Without setting the URL state to a known value in embedded mode, the 'isEditDisabled' logic might behave inconsistently, as it relies on the URL state.
   
   ###### Suggested change ∙ *Feature Preview*
   Set the URL state to an explicit value when in embedded mode:
   ```typescript
   if (isEmbedded()) {
     setUrl('');
     return;
   }
   ```
   
   
   ###### Provide feedback to improve future suggestions
   [![Nice Catch](https://img.shields.io/badge/👍%20Nice%20Catch-71BC78)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/5963815c-f2a8-449c-a347-e17dc804360a/upvote) [![Incorrect](https://img.shields.io/badge/👎%20Incorrect-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/5963815c-f2a8-449c-a347-e17dc804360a?what_not_true=true)  [![Not in Scope](https://img.shields.io/badge/👎%20Out%20of%20PR%20scope-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/5963815c-f2a8-449c-a347-e17dc804360a?what_out_of_scope=true) [![Not in coding standard](https://img.shields.io/badge/👎%20Not%20in%20our%20standards-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/5963815c-f2a8-449c-a347-e17dc804360a?what_not_in_standard=true) [![Other](https://img.shields.io/badge/👎%20Other-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/5963815c-f2a8-449c-a347-e17dc804360a)
   </details>
   
   <sub>
   
   💬 Looking for more details? Reply to this comment to chat with Korbit.
   </sub>
   
   <!--- korbi internal id:a7752cd0-044f-40fa-86f8-0ae0937dc191 -->
   
   
   [](a7752cd0-044f-40fa-86f8-0ae0937dc191)



##########
superset-frontend/src/components/Chart/ChartContextMenu/ChartContextMenu.tsx:
##########
@@ -138,12 +153,73 @@ const ChartContextMenu = (
   const showDrillToDetail =
     isFeatureEnabled(FeatureFlag.DrillToDetail) &&
     canDrillToDetail &&
-    isDisplayed(ContextMenuItem.DrillToDetail);
+    (!isEmbedded() ||
+      (isEmbedded() && isFeatureEnabled(FeatureFlag.DrillingInEmbedded)));
+  isDisplayed(ContextMenuItem.DrillToDetail);
 
   const showDrillBy =
     isFeatureEnabled(FeatureFlag.DrillBy) &&
     canDrillBy &&
-    isDisplayed(ContextMenuItem.DrillBy);
+    (!isEmbedded() ||
+      (isEmbedded() && isFeatureEnabled(FeatureFlag.DrillingInEmbedded)));
+  isDisplayed(ContextMenuItem.DrillBy);
+
+  useEffect(() => {
+    async function fetchDataset() {
+      if (!visible || dataset || (!showDrillBy && !showDrillToDetail)) return;
+
+      const datasetId = Number(formData.datasource.split('__')[0]);
+      try {
+        setIsLoadingDataset(true);
+        let response;
+
+        if (loadDrillByOptions) {
+          response = await loadDrillByOptions(datasetId, formData);
+        } else {
+          const endpoint = `/api/v1/dataset/${datasetId}/drill_info/?q=(dashboard_id:${dashboardId})`;
+          response = await cachedSupersetGet({ endpoint });
+        }
+
+        const { json } = response;
+        const { result } = json;
+
+        // Filter columns for drill-by if needed
+        if (showDrillBy && result.columns) {
+          const filteredColumns = ensureIsArray(result.columns).filter(
+            column =>
+              // If using extensions, also filter by column.groupby since extensions might not do this
+              (!loadDrillByOptions || column.groupby) &&
+              !ensureIsArray(
+                formData[filters?.drillBy?.groupbyFieldName ?? ''],
+              ).includes(column.column_name) &&
+              column.column_name !== formData.x_axis &&
+              ensureIsArray(additionalConfig?.drillBy?.excludedColumns)?.every(
+                excludedCol => excludedCol.column_name !== column.column_name,
+              ),
+          );
+          result.columns = filteredColumns;
+        }
+
+        setDataset(result);
+      } catch (error) {
+        logging.error('Failed to load dataset:', error);
+        supersetGetCache.delete(`/api/v1/dataset/${datasetId}/drill_info/`);

Review Comment:
   ### Insufficient Error Context <sub>![category Error Handling](https://img.shields.io/badge/Error%20Handling-ea580c)</sub>
   
   <details>
     <summary>Tell me more</summary>
   
   ###### What is the issue?
   The error logging does not include important contextual information like the datasetId or dashboardId that could help with debugging.
   
   
   ###### Why this matters
   When troubleshooting production issues, having detailed error context is crucial for quick problem resolution. Without the dataset and dashboard identifiers, it would be harder to trace the exact failure.
   
   ###### Suggested change ∙ *Feature Preview*
   ```typescript
   } catch (error) {
       logging.error(`Failed to load dataset. datasetId: ${datasetId}, dashboardId: ${dashboardId}`, error);
       supersetGetCache.delete(`/api/v1/dataset/${datasetId}/drill_info/`);
   ```
   
   
   ###### Provide feedback to improve future suggestions
   [![Nice Catch](https://img.shields.io/badge/👍%20Nice%20Catch-71BC78)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/6359d328-0a34-4219-b795-764823b1e77e/upvote) [![Incorrect](https://img.shields.io/badge/👎%20Incorrect-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/6359d328-0a34-4219-b795-764823b1e77e?what_not_true=true)  [![Not in Scope](https://img.shields.io/badge/👎%20Out%20of%20PR%20scope-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/6359d328-0a34-4219-b795-764823b1e77e?what_out_of_scope=true) [![Not in coding standard](https://img.shields.io/badge/👎%20Not%20in%20our%20standards-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/6359d328-0a34-4219-b795-764823b1e77e?what_not_in_standard=true) [![Other](https://img.shields.io/badge/👎%20Other-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/6359d328-0a34-4219-b795-764823b1e77e)
   </details>
   
   <sub>
   
   💬 Looking for more details? Reply to this comment to chat with Korbit.
   </sub>
   
   <!--- korbi internal id:460a9b65-9c59-4e2a-a496-9503e70d7fa1 -->
   
   
   [](460a9b65-9c59-4e2a-a496-9503e70d7fa1)



##########
superset-frontend/src/components/Chart/DrillBy/DrillByMenuItems.tsx:
##########
@@ -104,18 +78,16 @@
   openNewModal = true,
   open,
   onDrillBy,
+  dataset,
+  isLoadingDataset = false,
   ...rest
 }: DrillByMenuItemsProps) => {
   const theme = useTheme();
-  const { addDangerToast } = useToasts();
-  const [isLoadingColumns, setIsLoadingColumns] = useState(true);
   const [searchInput, setSearchInput] = useState('');
   const [debouncedSearchInput, setDebouncedSearchInput] = useState('');
-  const [dataset, setDataset] = useState<Dataset>();
-  const [columns, setColumns] = useState<Column[]>([]);
   const ref = useRef<InputRef>(null);
-  const showSearch =
-    loadDrillByOptions || columns.length > SHOW_COLUMNS_SEARCH_THRESHOLD;
+  const columns = dataset ? ensureIsArray(dataset.columns) : [];

Review Comment:
   ### Missing Column Filtering Logic <sub>![category Functionality](https://img.shields.io/badge/Functionality-0284c7)</sub>
   
   <details>
     <summary>Tell me more</summary>
   
   ###### What is the issue?
   The code doesn't filter the columns based on groupby and excludedColumns criteria, which was present in the original code.
   
   
   ###### Why this matters
   Without proper column filtering, users might see and select columns that should not be available for drill-by operations, leading to incorrect functionality.
   
   ###### Suggested change ∙ *Feature Preview*
   Add the filtering logic back:
   ```typescript
   const columns = dataset
     ? ensureIsArray(dataset.columns)
         .filter(column => column.groupby)
         .filter(
           column =>
             !ensureIsArray(
               formData[drillByConfig?.groupbyFieldName ?? ''],
             ).includes(column.column_name) &&
             column.column_name !== formData.x_axis &&
             ensureIsArray(excludedColumns)?.every(
               excludedCol => excludedCol.column_name !== column.column_name,
             ),
         )
     : [];
   ```
   
   
   ###### Provide feedback to improve future suggestions
   [![Nice Catch](https://img.shields.io/badge/👍%20Nice%20Catch-71BC78)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/1c01f743-21fb-4ac9-9028-05046a795afa/upvote) [![Incorrect](https://img.shields.io/badge/👎%20Incorrect-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/1c01f743-21fb-4ac9-9028-05046a795afa?what_not_true=true)  [![Not in Scope](https://img.shields.io/badge/👎%20Out%20of%20PR%20scope-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/1c01f743-21fb-4ac9-9028-05046a795afa?what_out_of_scope=true) [![Not in coding standard](https://img.shields.io/badge/👎%20Not%20in%20our%20standards-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/1c01f743-21fb-4ac9-9028-05046a795afa?what_not_in_standard=true) [![Other](https://img.shields.io/badge/👎%20Other-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/1c01f743-21fb-4ac9-9028-05046a795afa)
   </details>
   
   <sub>
   
   💬 Looking for more details? Reply to this comment to chat with Korbit.
   </sub>
   
   <!--- korbi internal id:36052f13-2e27-47c1-ad2c-fa5f79d9c4c1 -->
   
   
   [](36052f13-2e27-47c1-ad2c-fa5f79d9c4c1)



##########
superset-frontend/src/components/Chart/DrillBy/DrillByMenuItems.tsx:
##########
@@ -104,18 +78,16 @@ export const DrillByMenuItems = ({
   openNewModal = true,
   open,
   onDrillBy,
+  dataset,
+  isLoadingDataset = false,
   ...rest
 }: DrillByMenuItemsProps) => {
   const theme = useTheme();
-  const { addDangerToast } = useToasts();
-  const [isLoadingColumns, setIsLoadingColumns] = useState(true);
   const [searchInput, setSearchInput] = useState('');
   const [debouncedSearchInput, setDebouncedSearchInput] = useState('');
-  const [dataset, setDataset] = useState<Dataset>();
-  const [columns, setColumns] = useState<Column[]>([]);
   const ref = useRef<InputRef>(null);
-  const showSearch =
-    loadDrillByOptions || columns.length > SHOW_COLUMNS_SEARCH_THRESHOLD;
+  const columns = dataset ? ensureIsArray(dataset.columns) : [];
+  const showSearch = columns.length > SHOW_COLUMNS_SEARCH_THRESHOLD;

Review Comment:
   ### Unmemoized Length Calculation <sub>![category Performance](https://img.shields.io/badge/Performance-4f46e5)</sub>
   
   <details>
     <summary>Tell me more</summary>
   
   ###### What is the issue?
   The columns.length computation is performed unnecessarily on every render since it's not memoized.
   
   
   ###### Why this matters
   Recalculating columns.length on every render when the columns array hasn't changed impacts performance, especially when dealing with large datasets.
   
   ###### Suggested change ∙ *Feature Preview*
   Memoize the showSearch calculation using useMemo to prevent unnecessary recalculations:
   ```typescript
   const showSearch = useMemo(
     () => columns.length > SHOW_COLUMNS_SEARCH_THRESHOLD,
     [columns]
   );
   ```
   
   
   ###### Provide feedback to improve future suggestions
   [![Nice Catch](https://img.shields.io/badge/👍%20Nice%20Catch-71BC78)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/d43e1a6b-6bce-4538-9e32-72ac55b6dea9/upvote) [![Incorrect](https://img.shields.io/badge/👎%20Incorrect-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/d43e1a6b-6bce-4538-9e32-72ac55b6dea9?what_not_true=true)  [![Not in Scope](https://img.shields.io/badge/👎%20Out%20of%20PR%20scope-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/d43e1a6b-6bce-4538-9e32-72ac55b6dea9?what_out_of_scope=true) [![Not in coding standard](https://img.shields.io/badge/👎%20Not%20in%20our%20standards-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/d43e1a6b-6bce-4538-9e32-72ac55b6dea9?what_not_in_standard=true) [![Other](https://img.shields.io/badge/👎%20Other-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/d43e1a6b-6bce-4538-9e32-72ac55b6dea9)
   </details>
   
   <sub>
   
   💬 Looking for more details? Reply to this comment to chat with Korbit.
   </sub>
   
   <!--- korbi internal id:83ad64ce-b0ae-4cc1-ae59-ea25966d498d -->
   
   
   [](83ad64ce-b0ae-4cc1-ae59-ea25966d498d)



##########
superset/datasets/schemas.py:
##########
@@ -373,3 +388,48 @@
             "description": "A list of each chart's warmup status and errors if any"
         },
     )
+
+
+class DatasetColumnDrillInfo(Schema):
+    column_name = fields.String(required=True)
+    verbose_name = fields.String(required=False)
+
+
+class UserSchema(Schema):
+    first_name = fields.String()
+    last_name = fields.String()
+
+
+class DatasetDrillInfo(Schema):
+    id = fields.Integer()
+    columns = fields.List(fields.Nested(DatasetColumnDrillInfo))
+    table_name = fields.String()
+    owners = fields.List(fields.Nested(UserSchema))
+    created_by = fields.Nested(UserSchema)
+    created_on_humanized = fields.String()
+    changed_by = fields.Nested(UserSchema)
+    changed_on_humanized = fields.String()
+
+    # pylint: disable=unused-argument
+    @post_dump(pass_original=True)
+    def post_dump(
+        self, serialized: dict[str, Any], obj: SqlaTable, **kwargs: Any
+    ) -> dict[str, Any]:

Review Comment:
   ### Missing Null Safety Checks in post_dump <sub>![category Functionality](https://img.shields.io/badge/Functionality-0284c7)</sub>
   
   <details>
     <summary>Tell me more</summary>
   
   ###### What is the issue?
   The post_dump method may fail if obj is None or doesn't have the expected columns attribute
   
   
   ###### Why this matters
   Lack of null checks could cause the application to crash when processing invalid or incomplete dataset objects
   
   ###### Suggested change ∙ *Feature Preview*
   Add null safety checks:
   ```python
   @post_dump(pass_original=True)
   def post_dump(
       self, serialized: dict[str, Any], obj: SqlaTable, **kwargs: Any
   ) -> dict[str, Any]:
       if not obj:
           return serialized
   
       dimensions = {        
           col.column_name
           for col in getattr(obj, "columns", [])
           if col and getattr(col, "groupby", False)
       }
   ```
   
   
   ###### Provide feedback to improve future suggestions
   [![Nice Catch](https://img.shields.io/badge/👍%20Nice%20Catch-71BC78)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/435be054-62c1-472a-a28a-063ac6961e5a/upvote) [![Incorrect](https://img.shields.io/badge/👎%20Incorrect-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/435be054-62c1-472a-a28a-063ac6961e5a?what_not_true=true)  [![Not in Scope](https://img.shields.io/badge/👎%20Out%20of%20PR%20scope-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/435be054-62c1-472a-a28a-063ac6961e5a?what_out_of_scope=true) [![Not in coding standard](https://img.shields.io/badge/👎%20Not%20in%20our%20standards-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/435be054-62c1-472a-a28a-063ac6961e5a?what_not_in_standard=true) [![Other](https://img.shields.io/badge/👎%20Other-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/435be054-62c1-472a-a28a-063ac6961e5a)
   </details>
   
   <sub>
   
   💬 Looking for more details? Reply to this comment to chat with Korbit.
   </sub>
   
   <!--- korbi internal id:8efcc130-e7e4-4954-b5c5-98c51ed82b05 -->
   
   
   [](8efcc130-e7e4-4954-b5c5-98c51ed82b05)



##########
superset-frontend/src/features/datasets/metadataBar/useDatasetMetadataBar.tsx:
##########
@@ -16,49 +16,31 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-import { useEffect, useMemo, useState } from 'react';
+import { useMemo } from 'react';
 import { css, t, useTheme } from '@superset-ui/core';
-import { Alert } from '@superset-ui/core/components';
 import { Dataset } from 'src/components/Chart/types';
 import MetadataBar from '@superset-ui/core/components/MetadataBar';
 import {
   ContentType,
   MetadataType,
 } from '@superset-ui/core/components/MetadataBar/ContentType';
-import { ResourceStatus } from 'src/hooks/apiResources/apiResources';
-import { cachedSupersetGet } from 'src/utils/cachedSupersetGet';
+import { isEmbedded } from 'src/dashboard/util/isEmbedded';
+
+export interface UseDatasetMetadataBarProps {
+  dataset?: Dataset;
+}
 
-export type UseDatasetMetadataBarProps =
-  | { datasetId?: undefined; dataset: Dataset }
-  | { datasetId: number | string; dataset?: undefined };
 export const useDatasetMetadataBar = ({
-  dataset: datasetProps,
-  datasetId,
-}: UseDatasetMetadataBarProps) => {
+  dataset,
+}: UseDatasetMetadataBarProps): { metadataBar: React.ReactElement | null } => {
   const theme = useTheme();
-  const [result, setResult] = useState<Dataset>();
-  const [status, setStatus] = useState<ResourceStatus>(
-    datasetProps ? ResourceStatus.Complete : ResourceStatus.Loading,
-  );
-
-  useEffect(() => {
-    if (!datasetProps && datasetId) {
-      cachedSupersetGet({
-        endpoint: `/api/v1/dataset/${datasetId}`,
-      })
-        .then(({ json: { result } }) => {
-          setResult(result);
-          setStatus(ResourceStatus.Complete);
-        })
-        .catch(() => {
-          setStatus(ResourceStatus.Error);
-        });
-    }
-  }, [datasetId, datasetProps]);
 
   const metadataBar = useMemo(() => {
+    // Short-circuit for embedded users - they don't need metadata bar

Review Comment:
   ### Unclear embedded context comment <sub>![category Documentation](https://img.shields.io/badge/Documentation-7c3aed)</sub>
   
   <details>
     <summary>Tell me more</summary>
   
   ###### What is the issue?
   The inline comment doesn't explain why embedded users don't need the metadata bar.
   
   
   ###### Why this matters
   Future developers might remove this optimization without understanding its purpose, potentially causing unnecessary renders.
   
   ###### Suggested change ∙ *Feature Preview*
   // Skip metadata bar for embedded views to reduce visual noise and improve performance in embedded contexts
   
   
   ###### Provide feedback to improve future suggestions
   [![Nice Catch](https://img.shields.io/badge/👍%20Nice%20Catch-71BC78)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/4731c6b1-325f-463c-b4ba-364c3c3aee3a/upvote) [![Incorrect](https://img.shields.io/badge/👎%20Incorrect-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/4731c6b1-325f-463c-b4ba-364c3c3aee3a?what_not_true=true)  [![Not in Scope](https://img.shields.io/badge/👎%20Out%20of%20PR%20scope-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/4731c6b1-325f-463c-b4ba-364c3c3aee3a?what_out_of_scope=true) [![Not in coding standard](https://img.shields.io/badge/👎%20Not%20in%20our%20standards-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/4731c6b1-325f-463c-b4ba-364c3c3aee3a?what_not_in_standard=true) [![Other](https://img.shields.io/badge/👎%20Other-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/4731c6b1-325f-463c-b4ba-364c3c3aee3a)
   </details>
   
   <sub>
   
   💬 Looking for more details? Reply to this comment to chat with Korbit.
   </sub>
   
   <!--- korbi internal id:bef1bf60-d88a-4863-967a-a0f59e7a7f7b -->
   
   
   [](bef1bf60-d88a-4863-967a-a0f59e7a7f7b)



##########
superset/config.py:
##########
@@ -279,10 +279,11 @@ def _try_json_readsha(filepath: str, length: int) -> str | None:
 
 # Add endpoints that need to be exempt from CSRF protection
 WTF_CSRF_EXEMPT_LIST = [
-    "superset.views.core.log",
-    "superset.views.core.explore_json",
     "superset.charts.data.api.data",
     "superset.dashboards.api.cache_dashboard_screenshot",
+    "superset.views.core.explore_json",
+    "superset.views.core.log",
+    "superset.views.datasource.views.samples",
 ]

Review Comment:
   ### Unjustified CSRF Protection Bypass <sub>![category Security](https://img.shields.io/badge/Security-e11d48)</sub>
   
   <details>
     <summary>Tell me more</summary>
   
   ###### What is the issue?
   Adding a new endpoint 'superset.views.datasource.views.samples' to the CSRF exempt list without proper security justification increases the attack surface for CSRF attacks.
   
   
   ###### Why this matters
   CSRF exempt endpoints bypass important protection against Cross-Site Request Forgery attacks. Each exempted endpoint needs strong justification and alternative protections. Adding new exemptions increases security risk.
   
   ###### Suggested change ∙ *Feature Preview*
   Remove the new endpoint from CSRF exempt list unless there is a critical technical requirement and alternative protections are in place:
   ```python
   WTF_CSRF_EXEMPT_LIST = [
       "superset.charts.data.api.data",
       "superset.dashboards.api.cache_dashboard_screenshot", 
       "superset.views.core.explore_json",
       "superset.views.core.log",
   ]
   ```
   
   
   ###### Provide feedback to improve future suggestions
   [![Nice Catch](https://img.shields.io/badge/👍%20Nice%20Catch-71BC78)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/c3e4949d-2361-4891-927d-76c80d631aa2/upvote) [![Incorrect](https://img.shields.io/badge/👎%20Incorrect-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/c3e4949d-2361-4891-927d-76c80d631aa2?what_not_true=true)  [![Not in Scope](https://img.shields.io/badge/👎%20Out%20of%20PR%20scope-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/c3e4949d-2361-4891-927d-76c80d631aa2?what_out_of_scope=true) [![Not in coding standard](https://img.shields.io/badge/👎%20Not%20in%20our%20standards-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/c3e4949d-2361-4891-927d-76c80d631aa2?what_not_in_standard=true) [![Other](https://img.shields.io/badge/👎%20Other-white)](https://app.korbit.ai/feedback/aa91ff46-6083-4491-9416-b83dd1994b51/c3e4949d-2361-4891-927d-76c80d631aa2)
   </details>
   
   <sub>
   
   💬 Looking for more details? Reply to this comment to chat with Korbit.
   </sub>
   
   <!--- korbi internal id:d06e9eeb-84fb-4ac7-b25b-9e5a59dfa5fa -->
   
   
   [](d06e9eeb-84fb-4ac7-b25b-9e5a59dfa5fa)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on code in PR #34319:
URL: https://github.com/apache/superset/pull/34319#discussion_r2253057127


##########
superset/datasets/schemas.py:
##########
@@ -19,14 +19,29 @@
 
 from dateutil.parser import isoparse
 from flask_babel import lazy_gettext as _
-from marshmallow import fields, pre_load, Schema, validates_schema, ValidationError
+from marshmallow import (
+    fields,
+    post_dump,
+    pre_load,
+    Schema,
+    validates_schema,
+    ValidationError,
+)
 from marshmallow.validate import Length, OneOf
 
+from superset import security_manager
+from superset.connectors.sqla.models import SqlaTable
 from superset.exceptions import SupersetMarshmallowValidationError
 from superset.utils import json
 
 get_delete_ids_schema = {"type": "array", "items": {"type": "integer"}}
 get_export_ids_schema = {"type": "array", "items": {"type": "integer"}}
+get_drill_info_schema = {
+    "type": "object",
+    "properties": {
+        "dashboard_id": {"type": "integer"},
+    },
+}

Review Comment:
   The parameter is only required for limited roles -- it works for admins or users with proper dataset acces without this param. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on code in PR #34319:
URL: https://github.com/apache/superset/pull/34319#discussion_r2248245182


##########
superset/config.py:
##########
@@ -279,10 +279,11 @@ def _try_json_readsha(filepath: str, length: int) -> str | None:
 
 # Add endpoints that need to be exempt from CSRF protection
 WTF_CSRF_EXEMPT_LIST = [
-    "superset.views.core.log",
-    "superset.views.core.explore_json",
     "superset.charts.data.api.data",
     "superset.dashboards.api.cache_dashboard_screenshot",
+    "superset.views.core.explore_json",
+    "superset.views.core.log",
+    "superset.views.datasource.views.samples",

Review Comment:
   Just really adding `"superset.views.datasource.views.samples". Moved the other two to keep the list alphabetically sorted



##########
superset/config.py:
##########
@@ -279,10 +279,11 @@ def _try_json_readsha(filepath: str, length: int) -> str | None:
 
 # Add endpoints that need to be exempt from CSRF protection
 WTF_CSRF_EXEMPT_LIST = [
-    "superset.views.core.log",
-    "superset.views.core.explore_json",
     "superset.charts.data.api.data",
     "superset.dashboards.api.cache_dashboard_screenshot",
+    "superset.views.core.explore_json",
+    "superset.views.core.log",
+    "superset.views.datasource.views.samples",

Review Comment:
   Just really adding `"superset.views.datasource.views.samples"`. Moved the other two to keep the list alphabetically sorted



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila merged PR #34319:
URL: https://github.com/apache/superset/pull/34319


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on code in PR #34319:
URL: https://github.com/apache/superset/pull/34319#discussion_r2253128786


##########
superset/security/manager.py:
##########
@@ -2401,6 +2428,32 @@ def raise_for_access(  # noqa: C901
                             and slc in dashboard_.slices
                             and slc.datasource == datasource
                         )
+                        or (

Review Comment:
   Great idea! Will do with this new block and then open a dedicated follow up later



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on code in PR #34319:
URL: https://github.com/apache/superset/pull/34319#discussion_r2248225243


##########
superset-frontend/src/components/Chart/DrillBy/DrillByMenuItems.tsx:
##########
@@ -151,56 +123,6 @@ export const DrillByMenuItems = ({
     [formData.viz_type],
   );
 
-  useEffect(() => {
-    async function loadOptions() {
-      const datasetId = Number(formData.datasource.split('__')[0]);
-      try {
-        setIsLoadingColumns(true);
-        let response: JsonResponse;
-        if (loadDrillByOptions) {
-          response = await loadDrillByOptions(datasetId, formData);
-        } else {
-          response = await cachedSupersetGet({
-            endpoint: `/api/v1/dataset/${datasetId}?q=${queryString}`,
-          });
-        }
-        const { json } = response;
-        const { result } = json;
-        setDataset(result);
-        setColumns(
-          ensureIsArray(result.columns)
-            .filter(column => column.groupby)
-            .filter(
-              column =>
-                !ensureIsArray(
-                  formData[drillByConfig?.groupbyFieldName ?? ''],
-                ).includes(column.column_name) &&
-                column.column_name !== formData.x_axis &&
-                ensureIsArray(excludedColumns)?.every(
-                  excludedCol => excludedCol.column_name !== column.column_name,
-                ),
-            ),
-        );
-      } catch (error) {
-        logging.error(error);
-        supersetGetCache.delete(`/api/v1/dataset/${datasetId}`);
-        addDangerToast(t('Failed to load dimensions for drill by'));
-      } finally {
-        setIsLoadingColumns(false);
-      }
-    }
-    if (handlesDimensionContextMenu && hasDrillBy) {
-      loadOptions();
-    }
-  }, [
-    addDangerToast,
-    drillByConfig?.groupbyFieldName,
-    excludedColumns,
-    formData,
-    handlesDimensionContextMenu,
-    hasDrillBy,
-  ]);
-

Review Comment:
   Logic moved to `ChartContextMenu`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on code in PR #34319:
URL: https://github.com/apache/superset/pull/34319#discussion_r2248537465


##########
UPDATING.md:
##########
@@ -32,6 +32,7 @@ assists people when migrating to a new version.
 - [32317](https://github.com/apache/superset/pull/32317) The horizontal filter bar feature is now out of testing/beta development and its feature flag `HORIZONTAL_FILTER_BAR` has been removed.
 - [31590](https://github.com/apache/superset/pull/31590) Marks the begining of intricate work around supporting dynamic Theming, and breaks support for [THEME_OVERRIDES](https://github.com/apache/superset/blob/732de4ac7fae88e29b7f123b6cbb2d7cd411b0e4/superset/config.py#L671) in favor of a new theming system based on AntD V5. Likely this will be in disrepair until settling over the 5.x lifecycle.
 - [32432](https://github.com/apache/superset/pull/31260) Moves the List Roles FAB view to the frontend and requires `FAB_ADD_SECURITY_API` to be enabled in the configuration and `superset init` to be executed.
+- [34319](https://github.com/apache/superset/pull/34319) Drill to Detail and Drill By is now supported in Embedded mode, and also with the `DASHBOARD_RBAC` FF. If you don't want to expose these features in Embedded / `DASHBOARD_RBAC`, make sure the roles used for Embedded / `DASHBOARD_RBAC`don't have the required permissions to perform D2D actions.

Review Comment:
   @eschutho I think these are configureable by deployment, so unsure if we could highlight it. IIRC the embedded role is set in `superset_config.py` via the `GUEST_ROLE_NAME` config, then for RBAC access users can use any role they had created in the Superset UI.
   Let me know if you want me to rephrase this in a better way.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on PR #34319:
URL: https://github.com/apache/superset/pull/34319#issuecomment-3119476516

   @Vitor-Avila Do we really need a new feature flag? Should this be a dashboard property such cross filters?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on code in PR #34319:
URL: https://github.com/apache/superset/pull/34319#discussion_r2248258137


##########
tests/integration_tests/base_tests.py:
##########
@@ -180,33 +181,39 @@ def temporary_user(
         temp_user = ab_models.User(
             username=username, email=f"{username}@temp.com", active=True
         )
+        pvms = []
+
         if clone_user:
-            temp_user.roles = clone_user.roles
             temp_user.first_name = clone_user.first_name
             temp_user.last_name = clone_user.last_name
             temp_user.password = clone_user.password
+            if clone_user.roles:
+                for role in clone_user.roles:
+                    pvms.extend(role.permissions)
         else:
             temp_user.first_name = temp_user.last_name = username
 
-        if clone_user:
-            temp_user.roles = clone_user.roles
-

Review Comment:
   this was redundant here, unsure if there was a purpose but tests still work without it



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on code in PR #34319:
URL: https://github.com/apache/superset/pull/34319#discussion_r2248537465


##########
UPDATING.md:
##########
@@ -32,6 +32,7 @@ assists people when migrating to a new version.
 - [32317](https://github.com/apache/superset/pull/32317) The horizontal filter bar feature is now out of testing/beta development and its feature flag `HORIZONTAL_FILTER_BAR` has been removed.
 - [31590](https://github.com/apache/superset/pull/31590) Marks the begining of intricate work around supporting dynamic Theming, and breaks support for [THEME_OVERRIDES](https://github.com/apache/superset/blob/732de4ac7fae88e29b7f123b6cbb2d7cd411b0e4/superset/config.py#L671) in favor of a new theming system based on AntD V5. Likely this will be in disrepair until settling over the 5.x lifecycle.
 - [32432](https://github.com/apache/superset/pull/31260) Moves the List Roles FAB view to the frontend and requires `FAB_ADD_SECURITY_API` to be enabled in the configuration and `superset init` to be executed.
+- [34319](https://github.com/apache/superset/pull/34319) Drill to Detail and Drill By is now supported in Embedded mode, and also with the `DASHBOARD_RBAC` FF. If you don't want to expose these features in Embedded / `DASHBOARD_RBAC`, make sure the roles used for Embedded / `DASHBOARD_RBAC`don't have the required permissions to perform D2D actions.

Review Comment:
   @eschutho I think these are configureable by deployment, so unsure if we could highlight it. IIRC the embedded role is set in `superset_config.py` via the `GUEST_ROLE_NAME` config, then for `DASHBOARD_RBAC` access users can use any role they had created in the Superset UI.
   Let me know if you want me to rephrase this in a better way.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [PR] feat: Enable drilling in embedded [superset]

Posted by "Vitor-Avila (via GitHub)" <gi...@apache.org>.
Vitor-Avila commented on code in PR #34319:
URL: https://github.com/apache/superset/pull/34319#discussion_r2253072552


##########
superset-frontend/src/components/Chart/ChartContextMenu/ChartContextMenu.tsx:
##########
@@ -151,6 +166,75 @@ const ChartContextMenu = (
     canDrillBy &&
     isDisplayed(ContextMenuItem.DrillBy);
 
+  useEffect(() => {
+    async function fetchDataset() {
+      if (!visible || dataset || (!showDrillBy && !showDrillToDetail)) return;
+
+      const datasetId = Number(formData.datasource.split('__')[0]);
+      try {
+        setIsLoadingDataset(true);
+        let response;
+
+        if (loadDrillByOptionsExtension) {
+          response = await loadDrillByOptionsExtension(datasetId, formData);
+        } else {
+          const endpoint = `/api/v1/dataset/${datasetId}/drill_info/?q=(dashboard_id:${dashboardId})`;
+          response = await cachedSupersetGet({ endpoint });
+        }
+
+        const { json } = response;
+        const { result } = json;
+
+        setDataset(result);
+      } catch (error) {
+        logging.error('Failed to load dataset:', error);
+        supersetGetCache.delete(`/api/v1/dataset/${datasetId}/drill_info/`);
+      } finally {
+        setIsLoadingDataset(false);
+      }
+    }
+
+    fetchDataset();
+  }, [
+    visible,

Review Comment:
   I've thought so too and checked with Claude and it advised not to, because this block also does `setDataset(result)` so if `dataset` was a dependency it would re-render one more time as the `dataset` value would change with `setDataset(result)`.
   
   From my manual tests it's working properly.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org