Skip to content

Commit 375d10d

Browse files
Merge branch 'master' of https://github.com/apache/superset into alexandrusoare/fix/time-shift-color-matching
2 parents c42fedc + cc8ad23 commit 375d10d

1,312 files changed

Lines changed: 15067 additions & 5470 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.asf.yaml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ notifications:
2424
discussions: [email protected]
2525

2626
github:
27-
del_branch_on_merge: true
27+
pull_requests:
28+
del_branch_on_merge: true
29+
allow_update_branch: true
2830
description: "Apache Superset is a Data Visualization and Data Exploration Platform"
2931
homepage: https://superset.apache.org/
3032
labels:

‎.github/workflows/docker.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
# Scan for vulnerabilities in built container image after pushes to mainline branch.
105105
- name: Run Trivy container image vulnerabity scan
106106
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && (steps.check.outputs.python || steps.check.outputs.frontend || steps.check.outputs.docker) && matrix.build_preset == 'lean'
107-
uses: aquasecurity/trivy-action@97e0b3872f55f89b95b2f65b3dbab56962816478 # v0.34.2
107+
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
108108
with:
109109
image-ref: ${{ env.IMAGE_TAG }}
110110
format: 'sarif'

‎.github/workflows/pre-commit.yml‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,17 @@ jobs:
6464
restore-keys: |
6565
pre-commit-v2-${{ runner.os }}-py${{ matrix.python-version }}-
6666
67+
- name: Get changed files
68+
id: changed_files
69+
uses: ./.github/actions/file-changes-action
70+
with:
71+
output: ' '
72+
6773
- name: pre-commit
6874
run: |
6975
set +e # Don't exit immediately on failure
70-
export SKIP=eslint-frontend,type-checking-frontend
71-
pre-commit run --all-files
76+
export SKIP=type-checking-frontend
77+
pre-commit run --files ${{ steps.changed_files.outputs.files }}
7278
PRE_COMMIT_EXIT_CODE=$?
7379
git diff --quiet --exit-code
7480
GIT_DIFF_EXIT_CODE=$?

‎RESOURCES/INTHEWILD.yaml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,9 @@ categories:
625625
- name: Stockarea
626626
url: https://stockarea.io
627627

628+
- name: VTG
629+
url: https://www.vtg.de
630+
628631
Sports:
629632
- name: Club 25 de Agosto (Femenino / Women's Team)
630633
url: https://www.instagram.com/25deagosto.basketfemenino/

‎docs/.nvmrc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v20.20.0
1+
v22.22.0

‎docs/admin_docs/configuration/alerts-reports.mdx‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,20 @@ def alert_dynamic_minimal_interval(**kwargs) -> int:
233233
ALERT_MINIMUM_INTERVAL = alert_dynamic_minimal_interval
234234
```
235235

236+
## External Link Redirection
237+
238+
For security, Superset rewrites external links in alert/report email HTML so
239+
they go through a warning page before the user is navigated to the external
240+
site. Internal links (matching your configured base URL) are not affected.
241+
242+
```python
243+
# Disable external link redirection entirely (default: True)
244+
ALERT_REPORTS_ENABLE_LINK_REDIRECT = False
245+
```
246+
247+
The feature uses `WEBDRIVER_BASEURL_USER_FRIENDLY` (or `WEBDRIVER_BASEURL`)
248+
to determine which hosts are internal.
249+
236250
## Troubleshooting
237251

238252
There are many reasons that reports might not be working. Try these steps to check for specific issues.

‎docs/developer_docs/extensions/architecture.md‎

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -33,34 +33,39 @@ The extension architecture is built on six core principles that guide all techni
3333
### 1. Lean Core
3434

3535
Superset's core should remain minimal, with many features delegated to extensions. Built-in features use the same APIs and extension mechanisms available to external developers. This approach:
36+
3637
- Reduces maintenance burden and complexity
3738
- Encourages modularity
3839
- Allows the community to innovate independently of the main codebase
3940

4041
### 2. Explicit Contribution Points
4142

42-
All extension points are clearly defined and documented. Extension authors know exactly where and how they can interact with the host system. Backend contributions are declared in `extension.json`. Frontend contributions are registered directly in code at module load time, giving the host clear visibility into what each extension provides:
43+
All extension points are clearly defined and documented. Extension authors know exactly where and how they can interact with the host system. Both backend and frontend contributions are registered directly in code — backend contributions via classes decorated with `@api` (and other decorators) imported from the auto-discovered entrypoint, frontend contributions via calls like `views.registerView` and `commands.registerCommand` executed at module load time in `index.tsx`. This gives the host clear visibility into what each extension provides:
44+
4345
- Manage the extension lifecycle
4446
- Provide a consistent user experience
4547
- Validate extension compatibility
4648

4749
### 3. Versioned and Stable APIs
4850

4951
Public interfaces for extensions follow semantic versioning, allowing for:
52+
5053
- Safe evolution of the platform
5154
- Backward compatibility
5255
- Clear upgrade paths for extension authors
5356

5457
### 4. Lazy Loading and Activation
5558

5659
Extensions are loaded and activated only when needed, which:
60+
5761
- Minimizes performance overhead
5862
- Reduces resource consumption
5963
- Improves startup time
6064

6165
### 5. Composability and Reuse
6266

6367
The architecture encourages reusing extension points and patterns across different modules, promoting:
68+
6469
- Consistency across extensions
6570
- Reduced duplication
6671
- Shared best practices
@@ -80,6 +85,7 @@ Two core packages provide the foundation for extension development:
8085
**Frontend: `@apache-superset/core`**
8186

8287
This package provides essential building blocks for frontend extensions and the host application:
88+
8389
- Shared UI components
8490
- Utility functions
8591
- APIs and hooks
@@ -90,6 +96,7 @@ By centralizing these resources, both extensions and built-in features use the s
9096
**Backend: `apache-superset-core`**
9197

9298
This package exposes key classes and APIs for backend extensions:
99+
93100
- Database connectors
94101
- API extensions
95102
- Security manager customization
@@ -102,6 +109,7 @@ It includes dependencies on critical libraries like Flask-AppBuilder and SQLAlch
102109
**`apache-superset-extensions-cli`**
103110

104111
The CLI provides comprehensive commands for extension development:
112+
105113
- Project scaffolding
106114
- Code generation
107115
- Building and bundling
@@ -114,13 +122,15 @@ By standardizing these processes, the CLI ensures extensions are built consisten
114122
The Superset host application serves as the runtime environment for extensions:
115123

116124
**Extension Management**
125+
117126
- Exposes `/api/v1/extensions` endpoint for registration and management
118127
- Provides a dedicated UI for managing extensions
119128
- Stores extension metadata in the `extensions` database table
120129

121130
**Extension Storage**
122131

123132
The extensions table contains:
133+
124134
- Extension name, version, and author
125135
- Metadata and configuration
126136
- Built frontend and/or backend code
@@ -132,6 +142,7 @@ The following diagram illustrates how these components work together:
132142
<img width="955" height="586" alt="Extension System Architecture" src="https://github.com/user-attachments/assets/cc2a41df-55a4-48c8-b056-35f7a1e567c6" />
133143

134144
The diagram shows:
145+
135146
1. **Extension projects** depend on core packages for development
136147
2. **Core packages** provide APIs and type definitions
137148
3. **The host application** implements the APIs and manages extensions
@@ -151,23 +162,25 @@ The architecture leverages Webpack's Module Federation to enable dynamic loading
151162

152163
Extensions configure Webpack to expose their entry points:
153164

154-
``` typescript
155-
new ModuleFederationPlugin({
156-
name: 'my_extension',
157-
filename: 'remoteEntry.[contenthash].js',
158-
exposes: {
159-
'./index': './src/index.tsx',
160-
},
161-
externalsType: 'window',
162-
externals: {
163-
'@apache-superset/core': 'superset',
164-
},
165-
shared: {
166-
react: { singleton: true },
167-
'react-dom': { singleton: true },
168-
'antd-v5': { singleton: true }
169-
}
170-
})
165+
```javascript
166+
externalsType: 'window',
167+
externals: {
168+
'@apache-superset/core': 'superset',
169+
},
170+
plugins: [
171+
new ModuleFederationPlugin({
172+
name: 'my_extension',
173+
filename: 'remoteEntry.[contenthash].js',
174+
exposes: {
175+
'./index': './src/index.tsx',
176+
},
177+
shared: {
178+
react: { singleton: true, import: false },
179+
'react-dom': { singleton: true, import: false },
180+
antd: { singleton: true, import: false },
181+
},
182+
}),
183+
]
171184
```
172185

173186
This configuration does several important things:
@@ -195,24 +208,12 @@ Here's what happens at runtime:
195208

196209
On the Superset side, the APIs are mapped to `window.superset` during application bootstrap:
197210

198-
``` typescript
211+
```typescript
199212
import * as supersetCore from '@apache-superset/core';
200-
import {
201-
authentication,
202-
core,
203-
commands,
204-
extensions,
205-
sqlLab,
206-
} from 'src/extensions';
207213

208214
export default function setupExtensionsAPI() {
209215
window.superset = {
210216
...supersetCore,
211-
authentication,
212-
core,
213-
commands,
214-
extensions,
215-
sqlLab,
216217
};
217218
}
218219
```

‎docs/developer_docs/extensions/components/alert.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ sidebar_label: Alert
2323
-->
2424

2525
import { StoryWithControls } from '../../../src/components/StorybookWrapper';
26-
import { Alert } from '@apache-superset/core/ui';
26+
import { Alert } from '@apache-superset/core/components';
2727

2828
# Alert
2929

@@ -105,10 +105,10 @@ function Demo() {
105105

106106
## Usage in Extensions
107107

108-
This component is available in the `@apache-superset/core/ui` package, which is automatically available to Superset extensions.
108+
This component is available in the `@apache-superset/core/components` package, which is automatically available to Superset extensions.
109109

110110
```tsx
111-
import { Alert } from '@apache-superset/core/ui';
111+
import { Alert } from '@apache-superset/core/components';
112112

113113
function MyExtension() {
114114
return (

‎docs/developer_docs/extensions/components/index.mdx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@ sidebar_position: 1
2525

2626
# Extension Components
2727

28-
These UI components are available to Superset extension developers through the `@apache-superset/core/ui` package. They provide a consistent look and feel with the rest of Superset and are designed to be used in extension panels, views, and other UI elements.
28+
These UI components are available to Superset extension developers through the `@apache-superset/core/components` package. They provide a consistent look and feel with the rest of Superset and are designed to be used in extension panels, views, and other UI elements.
2929

3030
## Available Components
3131

3232
- [Alert](./alert)
3333

3434
## Usage
3535

36-
All components are exported from the `@apache-superset/core/ui` package:
36+
All components are exported from the `@apache-superset/core/components` package:
3737

3838
```tsx
39-
import { Alert } from '@apache-superset/core/ui';
39+
import { Alert } from '@apache-superset/core/components';
4040

4141
export function MyExtensionPanel() {
4242
return (
@@ -49,7 +49,7 @@ export function MyExtensionPanel() {
4949

5050
## Adding New Components
5151

52-
Components in `@apache-superset/core/ui` are automatically documented here. To add a new extension component:
52+
Components in `@apache-superset/core/components` are automatically documented here. To add a new extension component:
5353

5454
1. Add the component to `superset-frontend/packages/superset-core/src/ui/components/`
5555
2. Export it from `superset-frontend/packages/superset-core/src/ui/components/index.ts`

0 commit comments

Comments
 (0)