Joe Li 69879986e6 fix(dataset): add timeout cleanup in DatasetUsageTab to prevent async updates after unmount
Add proper setTimeout cleanup using useRef + useEffect to prevent intermittent
"document global was defined..." errors during test execution.

Component changes:
- Add scrollTimeoutRef to track timeout IDs with proper TypeScript typing
- Add cleanup useEffect to clear timeout on component unmount
- Update handlePageChange to clear pending timeouts before setting new ones
- Set scrollTimeoutRef to null after timeout executes

Test changes:
- Add Table component mock to capture onChange handlers for pagination tests
- Add 3 comprehensive test cases validating timeout cleanup:
  * Cleanup on unmount prevents async updates after component removal
  * Rapid pagination clears pending timeouts (only last scroll executes)
  * Normal pagination scrolls to top with 100ms delay
- Use fake timers with proper cleanup in afterEach
- Mock Element.prototype.scrollTo for JSDOM compatibility

Benefits:
- Prevents memory leaks from lingering timeouts
- Prevents stale DOM references in production
- Fixes test flakiness from async callback race conditions
- Prevents duplicate scroll operations on rapid pagination clicks

All tests passing (12/12). No intermittent errors when running with
ExploreChartPanel tests (20/20 total).

Fixes #34707

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-02 22:30:20 -07:00
2024-04-15 11:21:42 -06:00
2025-09-12 09:21:37 +01:00

Superset

License Latest Release on Github Build Status PyPI version Coverage Status PyPI Get on Slack Documentation

Superset logo (light)

A modern, enterprise-ready business intelligence web application.

Why Superset? | Supported Databases | Installation and Configuration | Release Notes | Get Involved | Contributor Guide | Resources | Organizations Using Superset

Why Superset?

Superset is a modern data exploration and data visualization platform. Superset can replace or augment proprietary business intelligence tools for many teams. Superset integrates well with a variety of data sources.

Superset provides:

  • A no-code interface for building charts quickly
  • A powerful, web-based SQL Editor for advanced querying
  • A lightweight semantic layer for quickly defining custom dimensions and metrics
  • Out of the box support for nearly any SQL database or data engine
  • A wide array of beautiful visualizations to showcase your data, ranging from simple bar charts to geospatial visualizations
  • Lightweight, configurable caching layer to help ease database load
  • Highly extensible security roles and authentication options
  • An API for programmatic customization
  • A cloud-native architecture designed from the ground up for scale

Screenshots & Gifs

Video Overview

superset-video-1080p.webm


Large Gallery of Visualizations


Craft Beautiful, Dynamic Dashboards


No-Code Chart Builder


Powerful SQL Editor


Supported Databases

Superset can query data from any SQL-speaking datastore or data engine (Presto, Trino, Athena, and more) that has a Python DB-API driver and a SQLAlchemy dialect.

Here are some of the major database solutions that are supported:

redshift google-bigquery snowflake trino presto databricks druid firebolt timescale postgresql mysql mssql-server db2 sqlite sybase mariadb vertica oracle firebird greenplum clickhouse exasol monet-db apache-kylin hologres netezza pinot teradata yugabyte databend starrocks doris oceanbase sap-hana denodo ydb TDengine

A more comprehensive list of supported databases along with the configuration instructions can be found here.

Want to add support for your datastore or data engine? Read more here about the technical requirements.

Installation and Configuration

Try out Superset's quickstart guide or learn about the options for production deployments.

Get Involved

Contributor Guide

Interested in contributing? Check out our CONTRIBUTING.md to find resources around contributing along with a detailed guide on how to set up a development environment.

Resources

  • Superset "In the Wild" - open a PR to add your org to the list!
  • Feature Flags - the status of Superset's Feature Flags.
  • Standard Roles - How RBAC permissions map to roles.
  • Superset Wiki - Tons of additional community resources: best practices, community content and other information.
  • Superset SIPs - The status of Superset's SIPs (Superset Improvement Proposals) for both consensus and implementation status.

Understanding the Superset Points of View

Repo Activity

Performance Stats of apache/superset - Last 28 days
Languages
Python 38%
TypeScript 37.7%
Jupyter Notebook 21.3%
HTML 2.4%
JavaScript 0.3%
Other 0.2%