Nagarajkalasagonda opened a new issue, #33746:
URL: https://github.com/apache/superset/issues/33746

   ### Bug description
   
   **Description:**
   I am experiencing an issue where my Calendar Heatmap chart in Apache 
Superset (version 4.0) is not emitting cross-filters when clicked, preventing a 
linked Table Chart on the same dashboard from updating.
   
   The goal is to click a day cell in the Calendar Heatmap (which shows 
`COUNT_DISTINCT(change_request_id)` by `planned_start_time` at a daily grain) 
and have an adjacent Table Chart filter to show the raw records for that 
specific `planned_start_time`.
   
   **Observed Behavior:**
   When a cell in the Calendar Heatmap is clicked:
   1.  No filter is applied to the dashboard.
   2.  The linked Table Chart does not update.
   3.  The browser's developer console (F12) remains completely silent, showing 
no errors, warnings, or network requests related to filter emission or data 
fetching.
   
   **Context / Environment:**
   * **Apache Superset Version:** 4.0
   * **Database:** (Please insert your specific database type here, e.g., 
PostgreSQL, MySQL, SQL Server, Oracle, etc.)
   * **Dataset:** `vedanta_dn_ut2.mart_cm_...`
   
   **Steps I Have Followed (and Verified):**
   
   1.  **Global Cross-Filtering Status:**
       * Confirmed that `DASHBOARD_CROSS_FILTERS` feature flag is enabled in 
`superset_config.py`.
       * Verified that cross-filtering works correctly on *other* dashboards 
with different chart types (e.g., Bar Chart -> Table Chart).
   
   2.  **Dataset Configuration (`vedanta_dn_ut2.mart_cm_...`):**
       * **`planned_start_time` column:**
           * Verified its data type in the dataset definition is `DATETIME` (or 
`DATE`/`TIMESTAMP`).
           * Confirmed "Is temporal" checkbox is checked.
           * Confirmed "Is filterable" checkbox is checked.
   
   3.  **Calendar Heatmap Chart Configuration (e.g., "Test change"):**
       * **Chart Source:** `vedanta_dn_ut2.mart_cm_...`
       * **Time Column:** `planned_start_time`
       * **Query Domain:** `month`
       * **Query Subdomain:** `day`
       * **Metric:** `COUNT_DISTINCT(change_request_id)`
       * The chart renders correctly and shows data as expected.
   
   4.  **Table Chart Configuration (e.g., "Test change Calender"):**
       * **Chart Source:** `vedanta_dn_ut2.mart_cm_...` (same dataset as 
heatmap).
       * **Query Mode:** `RAW RECORDS` selected.
       * **Columns:** `change_request_id`, `planned_start_time`, `log_date`, 
etc., are listed as raw columns (no aggregation or grouping applied to 
`planned_start_time`).
       * **Time Section:** No specific Time Column or Time Grain selected, or 
set to "No filter" / "Raw" to allow for granular filtering.
       * **Removed** any persistent filters from the Table Chart's 
configuration.
       * The Table Chart renders correctly and shows all raw data.
   
   5.  **Dashboard Configuration:**
       * Both Calendar Heatmap and Table Chart are placed on the **same 
dashboard**.
       * Dashboard is in **Edit mode**, and the global **`Cross-filtering`** 
toggle is **ON**.
       * Inspected individual chart properties on the dashboard:
           * Calendar Heatmap: Confirmed it's set to "Emit filters" or "Apply 
to all charts" (if such options are available).
           * Table Chart: Confirmed it's set to "Respond to filters."
       * Saved all dashboard changes.
   
   6.  **Troubleshooting Attempts:**
       * Performed hard refreshes (Ctrl+Shift+R) of the browser.
       * Monitored browser console (F12) during clicks: No errors or warnings 
appear. No network requests are initiated for filtering the Table Chart.
   
   **Issue Still Facing:**
   Despite all configurations appearing correct and cross-filtering working 
elsewhere, the Calendar Heatmap chart still does not emit filters when its 
cells are clicked, and the Table Chart remains unaffected. This suggests a 
potential limitation with the Calendar Heatmap visualization type itself 
regarding filter emission.
   
   **Proposed Resolution (if applicable):**
   (You can add this if you have a specific hypothesis, e.g., "Requesting 
confirmation if the Calendar Heatmap chart type in Superset 4.0 is indeed 
designed to emit cross-filters, or if there's a specific setting I'm missing.")
   
   
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
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-unsubscr...@superset.apache.org.apache.org

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


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

Reply via email to