You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "rusackas (via GitHub)" <gi...@apache.org> on 2026/04/17 15:55:18 UTC
[PR] docs: Superset 6.1 documentation catch-up — batch 2 [superset]
rusackas opened a new pull request, #39441:
URL: https://github.com/apache/superset/pull/39441
### SUMMARY
Second batch of documentation updates for features merged after 6.0. Continues from apache/superset#39440.
- **`brandAppName` theme token** (`theming.mdx`) — documents the new `brandAppName` token (PR #37370) that controls the application name in browser titles, navigation, and email notifications, taking precedence over the legacy `APP_NAME` Python config key.
- **Cache warmup user config** (`cache.mdx`) — documents the new `SUPERSET_CACHE_WARMUP_USER` config key (PR #38449) that controls which user account Selenium WebDriver authenticates as when rendering thumbnails and warming up caches.
- **SQL Lab RBAC permissions** (`security.mdx`) — documents two permissions that must be explicitly granted for SQL Lab users: `can_estimate_query_cost` and `can_format_sql` (PR #36263, which fixed these being missing from the RBAC model).
- **Jinja in calculated columns + Format SQL improvements** (`sql-templating.mdx`) — documents that Jinja macros (`current_username()`, etc.) are now supported in dataset calculated column expressions (PR #37791); adds a tip that "Format SQL" correctly preserves Jinja syntax and applies the database's specific SQL dialect (PRs #36277, #39393).
- **Dashboard features** (`creating-your-first-dashboard.mdx`) — four new dashboard capability sections:
- Tab URLs — shareable links that open a specific tab directly (PR #38660)
- Auto-refresh — configure periodic data reloads without user interaction (PR #37459)
- Last queried timestamp — show data freshness indicator on charts (PR #36934)
- Saving charts to specific tabs — tab tree-select in the "Add to dashboard" flow (PR #36332)
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A — documentation-only changes.
### TESTING INSTRUCTIONS
- Review each section for accuracy
- Optionally: `cd docs && npm start` to verify MDX renders correctly
### ADDITIONAL INFORMATION
- [ ] Has associated issue:
- [ ] Required feature flags:
- [ ] Changes UI
- [ ] Includes DB Migration
- [ ] Introduces new feature or API
- [ ] Removes existing feature or API
Third PR in the 6.1 docs series (alongside apache/superset#39422 and apache/superset#39440).
--
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] docs: Superset 6.1 documentation catch-up — batch 2 [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #39441:
URL: https://github.com/apache/superset/pull/39441#issuecomment-4270267427
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers a full AI review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
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] docs: Superset 6.1 documentation catch-up — batch 2 [superset]
Posted by "netlify[bot] (via GitHub)" <gi...@apache.org>.
netlify[bot] commented on PR #39441:
URL: https://github.com/apache/superset/pull/39441#issuecomment-4269495869
### <span aria-hidden="true">✅</span> Deploy Preview for *superset-docs-preview* ready!
| Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 5cd2816dcf8ef27fbcd6becffd8aab33be84810e |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/superset-docs-preview/deploys/69e257e7a2f1e90008cff040 |
|<span aria-hidden="true">😎</span> Deploy Preview | [https://deploy-preview-39441--superset-docs-preview.netlify.app](https://deploy-preview-39441--superset-docs-preview.netlify.app) |
|<span aria-hidden="true">📱</span> Preview on mobile | <details><summary> Toggle QR Code... </summary><br /><br /><br /><br />_Use your smartphone camera to open QR code link._</details> |
---
<!-- [superset-docs-preview Preview](https://deploy-preview-39441--superset-docs-preview.netlify.app) -->
_To edit notification comments on pull requests, go to your [Netlify project configuration](https://app.netlify.com/projects/superset-docs-preview/configuration/notifications#deploy-notifications)._
--
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] docs: Superset 6.1 documentation catch-up — batch 2 [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #39441:
URL: https://github.com/apache/superset/pull/39441#issuecomment-4301707331
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers a full AI review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
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] docs: Superset 6.1 documentation catch-up — batch 2 [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #39441:
URL: https://github.com/apache/superset/pull/39441#issuecomment-4272936665
<!-- Bito Reply -->
Moving the 'Using Jinja in Calculated Columns' section right after the main header would improve visibility for this new feature in the documentation.
--
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] docs: Superset 6.1 documentation catch-up — batch 2 [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #39441:
URL: https://github.com/apache/superset/pull/39441#issuecomment-4269483506
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
--
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] docs: Superset 6.1 documentation catch-up — batch 2 [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on code in PR #39441:
URL: https://github.com/apache/superset/pull/39441#discussion_r3128864807
##########
docs/admin_docs/configuration/cache.mdx:
##########
@@ -138,14 +138,24 @@ THUMBNAIL_CACHE_CONFIG = init_thumbnail_cache
```
Using the above example cache keys for dashboards will be `superset_thumb__dashboard__{ID}`. You can
-override the base URL for selenium using:
+override the base URL for Selenium using:
```
WEBDRIVER_BASEURL = "https://superset.company.com"
```
-Additional selenium web drive configuration can be set using `WEBDRIVER_CONFIGURATION`. You can
-implement a custom function to authenticate selenium. The default function uses the `flask-login`
+To control which user account Selenium authenticates as when rendering thumbnails and warming
+up caches, set:
Review Comment:
Fixed in 2baecf7 — `SUPERSET_CACHE_WARMUP_USER` wasn't a real config key. The section now documents `THUMBNAIL_EXECUTORS` / `CACHE_WARMUP_EXECUTORS` with `FixedExecutor` instead.
##########
docs/docs/using-superset/sql-templating.mdx:
##########
@@ -173,6 +173,26 @@ FROM sales
GROUP BY category
```
+## Using Jinja in Calculated Columns
+
+Jinja template macros are available in calculated column expressions in the dataset editor — not just in SQL Lab queries and virtual datasets. This allows column expressions to reference the current user or dynamic context.
+
+**Example: User-scoped calculated column**
+
+```sql
+CASE WHEN sales_rep = '{{ current_username() }}' THEN amount ELSE 0 END
+```
+
+**Example: Conditional display based on role**
+
+```sql
+CASE WHEN '{{ current_user_roles() }}' LIKE '%Finance%' THEN revenue ELSE NULL END
+```
+
+:::note
Review Comment:
Moved in 8c9d6c5 — the Calculated Columns section now sits right under the intro, before Basic Usage.
##########
docs/admin_docs/configuration/cache.mdx:
##########
@@ -138,14 +138,24 @@ THUMBNAIL_CACHE_CONFIG = init_thumbnail_cache
```
Using the above example cache keys for dashboards will be `superset_thumb__dashboard__{ID}`. You can
-override the base URL for selenium using:
+override the base URL for Selenium using:
```
WEBDRIVER_BASEURL = "https://superset.company.com"
```
-Additional selenium web drive configuration can be set using `WEBDRIVER_CONFIGURATION`. You can
-implement a custom function to authenticate selenium. The default function uses the `flask-login`
+To control which user account Selenium authenticates as when rendering thumbnails and warming
+up caches, set:
+
+```python
+SUPERSET_CACHE_WARMUP_USER = "admin" # default; must have access to all dashboards/charts
Review Comment:
Agreed and fixed in 2baecf7 — replaced the fabricated `SUPERSET_CACHE_WARMUP_USER` with the actual `CACHE_WARMUP_EXECUTORS` / `THUMBNAIL_EXECUTORS` config (using `FixedExecutor("admin")` for the service-account case) and noted the real defaults.
##########
docs/admin_docs/configuration/theming.mdx:
##########
@@ -84,6 +84,33 @@ THEME_DARK = {
# - OS preference detection is automatically enabled
```
+### App Branding
+
+The application name shown in the browser title bar, navigation, and email notifications can be
+set via the `brandAppName` theme token:
Review Comment:
Fixed in 0a5ceac — dropped the email-notification claim, and added a sentence clarifying that email/report subjects are driven by `EMAIL_REPORTS_SUBJECT_PREFIX` and `APP_NAME`, not by `brandAppName`.
##########
docs/admin_docs/security/security.mdx:
##########
@@ -52,6 +52,15 @@ only see the objects that they have access to.
The **sql_lab** role grants access to SQL Lab. Note that while **Admin** users have access
to all databases by default, both **Alpha** and **Gamma** users need to be given access on a per database basis.
+Beyond the base `sql_lab` role, two additional SQL Lab permissions must be explicitly granted for users who need these capabilities:
+
+| Permission | Feature |
+|------------|---------|
+| `can_estimate_query_cost` on `SQL Lab` | Estimate query cost before running |
+| `can_format_sql` on `SQL Lab` | Format SQL using the database's dialect |
Review Comment:
Fixed in da20a2a — the table now uses the canonical `SQLLab` view name (no space) so it matches what shows up in the permission picker.
##########
docs/admin_docs/configuration/cache.mdx:
##########
@@ -138,14 +138,24 @@ THUMBNAIL_CACHE_CONFIG = init_thumbnail_cache
```
Using the above example cache keys for dashboards will be `superset_thumb__dashboard__{ID}`. You can
-override the base URL for selenium using:
+override the base URL for Selenium using:
```
WEBDRIVER_BASEURL = "https://superset.company.com"
```
-Additional selenium web drive configuration can be set using `WEBDRIVER_CONFIGURATION`. You can
-implement a custom function to authenticate selenium. The default function uses the `flask-login`
+To control which user account Selenium authenticates as when rendering thumbnails and warming
+up caches, set:
+
+```python
+SUPERSET_CACHE_WARMUP_USER = "admin" # default; must have access to all dashboards/charts
+```
Review Comment:
Fixed in 2baecf7 — the section now documents `THUMBNAIL_EXECUTORS` and `CACHE_WARMUP_EXECUTORS` (with `FixedExecutor("admin")` examples and the real defaults: `CURRENT_USER` for thumbnails, `OWNER` for warmup) instead of the non-existent `SUPERSET_CACHE_WARMUP_USER`.
##########
docs/admin_docs/configuration/theming.mdx:
##########
@@ -84,6 +84,33 @@ THEME_DARK = {
# - OS preference detection is automatically enabled
```
+### App Branding
+
+The application name shown in the browser title bar, navigation, and email notifications can be
+set via the `brandAppName` theme token:
+
+```python
+THEME_DEFAULT = {
+ "token": {
+ "brandAppName": "Acme Analytics",
+ # ... other tokens
+ }
+}
+```
+
+Or in the theme CRUD UI JSON editor:
+
+```json
+{
+ "token": {
+ "brandAppName": "Acme Analytics"
+ }
+}
+```
+
+The existing `APP_NAME` Python config key continues to work for backward compatibility.
+`brandAppName` takes precedence when both are set, and allows different themes to carry different brand names.
+
Review Comment:
Fixed in 0a5ceac — narrowed the description to UI surfaces (browser title bar and navigation) and explicitly noted that email/alert/report subjects remain driven by backend config (`EMAIL_REPORTS_SUBJECT_PREFIX`, `APP_NAME`).
##########
docs/docs/using-superset/sql-templating.mdx:
##########
@@ -173,6 +173,26 @@ FROM sales
GROUP BY category
```
+## Using Jinja in Calculated Columns
+
+Jinja template macros are available in calculated column expressions in the dataset editor — not just in SQL Lab queries and virtual datasets. This allows column expressions to reference the current user or dynamic context.
+
+**Example: User-scoped calculated column**
+
+```sql
+CASE WHEN sales_rep = '{{ current_username() }}' THEN amount ELSE 0 END
+```
+
+**Example: Conditional display based on role**
+
+```sql
+CASE WHEN '{{ current_user_roles() }}' LIKE '%Finance%' THEN revenue ELSE NULL END
Review Comment:
Good catch — fixed in 8c9d6c5. The example now uses a Jinja `{% if 'Finance' in current_user_roles() %}` conditional so it does real membership testing at template time instead of substring-matching the list's string form.
--
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] docs: Superset 6.1 documentation catch-up — batch 2 [superset]
Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina merged PR #39441:
URL: https://github.com/apache/superset/pull/39441
--
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] docs: Superset 6.1 documentation catch-up — batch 2 [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on code in PR #39441:
URL: https://github.com/apache/superset/pull/39441#discussion_r3126792961
##########
docs/docs/using-superset/sql-templating.mdx:
##########
@@ -173,6 +173,26 @@ FROM sales
GROUP BY category
```
+## Using Jinja in Calculated Columns
+
+Jinja template macros are available in calculated column expressions in the dataset editor — not just in SQL Lab queries and virtual datasets. This allows column expressions to reference the current user or dynamic context.
+
+**Example: User-scoped calculated column**
+
+```sql
+CASE WHEN sales_rep = '{{ current_username() }}' THEN amount ELSE 0 END
+```
+
+**Example: Conditional display based on role**
+
+```sql
+CASE WHEN '{{ current_user_roles() }}' LIKE '%Finance%' THEN revenue ELSE NULL END
Review Comment:
<div>
<div id="suggestion">
<div id="issue"><b>Incorrect SQL Example</b></div>
<div id="fix">
The example for role-based conditional display is incorrect. Using LIKE on the string representation of the roles list ('{{ current_user_roles() }}') does not properly check if 'Finance' is in the user's roles, as it performs substring matching on the list's string form rather than membership testing. This could lead to incorrect behavior, such as matching 'SuperFinance' or failing to match properly formatted roles.
</div>
</div>
<small><i>Code Review Run #9e251f</i></small>
</div>
---
Should Bito avoid suggestions like this for future reviews? (<a href=https://alpha.bito.ai/home/ai-agents/review-rules>Manage Rules</a>)
- [ ] Yes, avoid them
--
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] docs: Superset 6.1 documentation catch-up — batch 2 [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on code in PR #39441:
URL: https://github.com/apache/superset/pull/39441#discussion_r3102509652
##########
docs/admin_docs/configuration/cache.mdx:
##########
@@ -138,14 +138,24 @@ THUMBNAIL_CACHE_CONFIG = init_thumbnail_cache
```
Using the above example cache keys for dashboards will be `superset_thumb__dashboard__{ID}`. You can
-override the base URL for selenium using:
+override the base URL for Selenium using:
```
WEBDRIVER_BASEURL = "https://superset.company.com"
```
-Additional selenium web drive configuration can be set using `WEBDRIVER_CONFIGURATION`. You can
-implement a custom function to authenticate selenium. The default function uses the `flask-login`
+To control which user account Selenium authenticates as when rendering thumbnails and warming
+up caches, set:
Review Comment:
<div>
<div id="suggestion">
<div id="issue"><b>Misleading Documentation</b></div>
<div id="fix">
The documentation incorrectly states that SUPERSET_CACHE_WARMUP_USER controls Selenium authentication for rendering thumbnails and warming caches. However, cache warmup in Superset uses API calls with user sessions (via `cache_warmup` in `superset/tasks/cache.py`), not Selenium. Thumbnails use Selenium via `THUMBNAIL_EXECUTORS`, while cache warmup uses `CACHE_WARMUP_EXECUTORS`. This could mislead users about the config's purpose.
</div>
<details>
<summary>
<b>Code suggestion</b>
</summary>
<blockquote>Check the AI-generated fix before applying</blockquote>
<div id="code">
````suggestion
To control which user account is used for warming up caches, set:
````
</div>
</details>
</div>
<small><i>Code Review Run #73319e</i></small>
</div>
---
Should Bito avoid suggestions like this for future reviews? (<a href=https://alpha.bito.ai/home/ai-agents/review-rules>Manage Rules</a>)
- [ ] Yes, avoid them
--
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] docs: Superset 6.1 documentation catch-up — batch 2 [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on code in PR #39441:
URL: https://github.com/apache/superset/pull/39441#discussion_r3126377054
##########
docs/admin_docs/configuration/cache.mdx:
##########
@@ -138,14 +138,24 @@ THUMBNAIL_CACHE_CONFIG = init_thumbnail_cache
```
Using the above example cache keys for dashboards will be `superset_thumb__dashboard__{ID}`. You can
-override the base URL for selenium using:
+override the base URL for Selenium using:
```
WEBDRIVER_BASEURL = "https://superset.company.com"
```
-Additional selenium web drive configuration can be set using `WEBDRIVER_CONFIGURATION`. You can
-implement a custom function to authenticate selenium. The default function uses the `flask-login`
+To control which user account Selenium authenticates as when rendering thumbnails and warming
+up caches, set:
+
+```python
+SUPERSET_CACHE_WARMUP_USER = "admin" # default; must have access to all dashboards/charts
Review Comment:
**Suggestion:** The documented config key is incorrect: `SUPERSET_CACHE_WARMUP_USER` is not read by Superset, so setting it has no effect and cache warmup will continue using `CACHE_WARMUP_EXECUTORS` behavior. Update this section to use the actual executor-based configuration (`CACHE_WARMUP_EXECUTORS` with `FixedExecutor`) to avoid a silent misconfiguration. [logic error]
<details>
<summary><b>Severity Level:</b> Major ⚠️</summary>
```mdx
- ❌ Cache warmup tasks in superset/tasks/cache.py ignore documented config.
- ⚠️ Misleads admins configuring CACHE_WARMUP_EXECUTORS for service account usage.
```
</details>
<details>
<summary><b>Steps of Reproduction ✅ </b></summary>
```mdx
1. In your `superset_config.py`, add the line `SUPERSET_CACHE_WARMUP_USER =
"service-account"` following the new documentation in
`docs/admin_docs/configuration/cache.mdx` lines 18–23 (PR hunk line 151).
2. Leave `CACHE_WARMUP_EXECUTORS` at its default value in `superset/config.py` lines
11–18, where it is defined as `[ExecutorType.OWNER]` and documented as the mechanism for
selecting the cache warmup user.
3. Trigger cache warmup (for example via a Celery beat schedule configured to use a
`Strategy` that calls `superset.tasks.cache.get_task()` as shown in
`superset/tasks/cache.py` lines 17–31, which reads `executors =
current_app.config["CACHE_WARMUP_EXECUTORS"]` and builds tasks with a `username` taken
from those executors).
4. Observe that `SUPERSET_CACHE_WARMUP_USER` is never read anywhere in the codebase
(verified via `Grep` showing matches only in `docs/admin_docs/configuration/cache.mdx`),
so cache warmup continues to execute as the owner determined by `CACHE_WARMUP_EXECUTORS`,
silently ignoring the documented `SUPERSET_CACHE_WARMUP_USER` setting.
```
</details>
[Fix in Cursor](https://app.codeant.ai/fix-in-ide?tool=cursor&prompt=This%20is%20a%20comment%20left%20during%20a%20code%20review.%0A%0A%2A%2APath%3A%2A%2A%20docs%2Fadmin_docs%2Fconfiguration%2Fcache.mdx%0A%2A%2ALine%3A%2A%2A%20151%3A151%0A%2A%2AComment%3A%2A%2A%0A%09%2ALogic%20Error%3A%20The%20documented%20config%20key%20is%20incorrect%3A%20%60SUPERSET_CACHE_WARMUP_USER%60%20is%20not%20read%20by%20Superset%2C%20so%20setting%20it%20has%20no%20effect%20and%20cache%20warmup%20will%20continue%20using%20%60CACHE_WARMUP_EXECUTORS%60%20behavior.%20Update%20this%20section%20to%20use%20the%20actual%20executor-based%20configuration%20%28%60CACHE_WARMUP_EXECUTORS%60%20with%20%60FixedExecutor%60%29%20to%20avoid%20a%20silent%20misconfiguration.%0A%0AValidate%20the%20correctness%20of%20the%20flagged%20issue.%20If%20correct%2C%20How%20can%20I%20resolve%20this%3F%20If%20you%20propose%20a%20fix%2C%20implement%20it%20and%20please%20make%20it%20concise.%0AOnce%20fix%20is%20implemented%2C%20also%20ch
eck%20other%20comments%20on%20the%20same%20PR%2C%20and%20ask%20user%20if%20the%20user%20wants%20to%20fix%20the%20rest%20of%20the%20comments%20as%20well.%20if%20said%20yes%2C%20then%20fetch%20all%20the%20comments%20validate%20the%20correctness%20and%20implement%20a%20minimal%20fix%0A) | [Fix in VSCode Claude](https://app.codeant.ai/fix-in-ide?tool=vscode-claude&prompt=This%20is%20a%20comment%20left%20during%20a%20code%20review.%0A%0A%2A%2APath%3A%2A%2A%20docs%2Fadmin_docs%2Fconfiguration%2Fcache.mdx%0A%2A%2ALine%3A%2A%2A%20151%3A151%0A%2A%2AComment%3A%2A%2A%0A%09%2ALogic%20Error%3A%20The%20documented%20config%20key%20is%20incorrect%3A%20%60SUPERSET_CACHE_WARMUP_USER%60%20is%20not%20read%20by%20Superset%2C%20so%20setting%20it%20has%20no%20effect%20and%20cache%20warmup%20will%20continue%20using%20%60CACHE_WARMUP_EXECUTORS%60%20behavior.%20Update%20this%20section%20to%20use%20the%20actual%20executor-based%20configuration%20%28%60CACHE_WARMUP_EXECUTORS%60%20with%20%60FixedExecutor%60%29%
20to%20avoid%20a%20silent%20misconfiguration.%0A%0AValidate%20the%20correctness%20of%20the%20flagged%20issue.%20If%20correct%2C%20How%20can%20I%20resolve%20this%3F%20If%20you%20propose%20a%20fix%2C%20implement%20it%20and%20please%20make%20it%20concise.%0AOnce%20fix%20is%20implemented%2C%20also%20check%20other%20comments%20on%20the%20same%20PR%2C%20and%20ask%20user%20if%20the%20user%20wants%20to%20fix%20the%20rest%20of%20the%20comments%20as%20well.%20if%20said%20yes%2C%20then%20fetch%20all%20the%20comments%20validate%20the%20correctness%20and%20implement%20a%20minimal%20fix%0A)
*(Use Cmd/Ctrl + Click for best experience)*
<details>
<summary><b>Prompt for AI Agent 🤖 </b></summary>
```mdx
This is a comment left during a code review.
**Path:** docs/admin_docs/configuration/cache.mdx
**Line:** 151:151
**Comment:**
*Logic Error: The documented config key is incorrect: `SUPERSET_CACHE_WARMUP_USER` is not read by Superset, so setting it has no effect and cache warmup will continue using `CACHE_WARMUP_EXECUTORS` behavior. Update this section to use the actual executor-based configuration (`CACHE_WARMUP_EXECUTORS` with `FixedExecutor`) to avoid a silent misconfiguration.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
```
</details>
<a href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F39441&comment_hash=c88bf2abf86033a5470025f70edfc0fec14b25346a7eadb956ed4ecb685a7c83&reaction=like'>👍</a> | <a href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F39441&comment_hash=c88bf2abf86033a5470025f70edfc0fec14b25346a7eadb956ed4ecb685a7c83&reaction=dislike'>👎</a>
##########
docs/admin_docs/configuration/theming.mdx:
##########
@@ -84,6 +84,33 @@ THEME_DARK = {
# - OS preference detection is automatically enabled
```
+### App Branding
+
+The application name shown in the browser title bar, navigation, and email notifications can be
+set via the `brandAppName` theme token:
Review Comment:
**Suggestion:** This statement overclaims behavior: `brandAppName` affects SPA branding/title tokens, but email report subjects/content are generated from report notification settings (such as `EMAIL_REPORTS_SUBJECT_PREFIX`) rather than this theme token. Clarify this to avoid broken operator expectations that changing theme branding will rename email notifications. [logic error]
<details>
<summary><b>Severity Level:</b> Major ⚠️</summary>
```mdx
- ⚠️ Operators may expect theme changes to rename emails.
- ⚠️ Email report branding remains unchanged despite theme updates.
- ⚠️ Confusing separation between SPA branding and email settings.
```
</details>
<details>
<summary><b>Steps of Reproduction ✅ </b></summary>
```mdx
1. Configure theme branding with `brandAppName` as documented in
`docs/admin_docs/configuration/theming.mdx:89-96`, e.g. set `"brandAppName": "Acme
Analytics"` in the theme token.
2. Configure email report subject prefix using `EMAIL_REPORTS_SUBJECT_PREFIX` as described
in `docs/admin_docs/configuration/alerts-reports.mdx:166`, or leave the default from
`superset/config.py:1994` (`EMAIL_REPORTS_SUBJECT_PREFIX = "[Report] "`).
3. Create and schedule an email report so that Superset generates a notification email;
the subject line is built in `superset/reports/notifications/email.py:208-213` using
`"%(prefix)s %(title)s"` where `prefix=current_app.config["EMAIL_REPORTS_SUBJECT_PREFIX"]`
and `title=self._name` (no use of theme or `brandAppName`).
4. Observe that changing `brandAppName` only affects SPA titles (e.g.,
`superset-frontend/src/dashboard/containers/DashboardPage.tsx:243-249` and
`superset-frontend/src/explore/components/ExploreViewContainer/index.tsx:406-412`) and
does not change email notification subjects, contradicting the claim in
`theming.mdx:89-90` that email notifications are controlled by the `brandAppName` token.
```
</details>
[Fix in Cursor](https://app.codeant.ai/fix-in-ide?tool=cursor&prompt=This%20is%20a%20comment%20left%20during%20a%20code%20review.%0A%0A%2A%2APath%3A%2A%2A%20docs%2Fadmin_docs%2Fconfiguration%2Ftheming.mdx%0A%2A%2ALine%3A%2A%2A%2089%3A90%0A%2A%2AComment%3A%2A%2A%0A%09%2ALogic%20Error%3A%20This%20statement%20overclaims%20behavior%3A%20%60brandAppName%60%20affects%20SPA%20branding%2Ftitle%20tokens%2C%20but%20email%20report%20subjects%2Fcontent%20are%20generated%20from%20report%20notification%20settings%20%28such%20as%20%60EMAIL_REPORTS_SUBJECT_PREFIX%60%29%20rather%20than%20this%20theme%20token.%20Clarify%20this%20to%20avoid%20broken%20operator%20expectations%20that%20changing%20theme%20branding%20will%20rename%20email%20notifications.%0A%0AValidate%20the%20correctness%20of%20the%20flagged%20issue.%20If%20correct%2C%20How%20can%20I%20resolve%20this%3F%20If%20you%20propose%20a%20fix%2C%20implement%20it%20and%20please%20make%20it%20concise.%0AOnce%20fix%20is%20implemented%2C%20also%20c
heck%20other%20comments%20on%20the%20same%20PR%2C%20and%20ask%20user%20if%20the%20user%20wants%20to%20fix%20the%20rest%20of%20the%20comments%20as%20well.%20if%20said%20yes%2C%20then%20fetch%20all%20the%20comments%20validate%20the%20correctness%20and%20implement%20a%20minimal%20fix%0A) | [Fix in VSCode Claude](https://app.codeant.ai/fix-in-ide?tool=vscode-claude&prompt=This%20is%20a%20comment%20left%20during%20a%20code%20review.%0A%0A%2A%2APath%3A%2A%2A%20docs%2Fadmin_docs%2Fconfiguration%2Ftheming.mdx%0A%2A%2ALine%3A%2A%2A%2089%3A90%0A%2A%2AComment%3A%2A%2A%0A%09%2ALogic%20Error%3A%20This%20statement%20overclaims%20behavior%3A%20%60brandAppName%60%20affects%20SPA%20branding%2Ftitle%20tokens%2C%20but%20email%20report%20subjects%2Fcontent%20are%20generated%20from%20report%20notification%20settings%20%28such%20as%20%60EMAIL_REPORTS_SUBJECT_PREFIX%60%29%20rather%20than%20this%20theme%20token.%20Clarify%20this%20to%20avoid%20broken%20operator%20expectations%20that%20changing%20theme%20br
anding%20will%20rename%20email%20notifications.%0A%0AValidate%20the%20correctness%20of%20the%20flagged%20issue.%20If%20correct%2C%20How%20can%20I%20resolve%20this%3F%20If%20you%20propose%20a%20fix%2C%20implement%20it%20and%20please%20make%20it%20concise.%0AOnce%20fix%20is%20implemented%2C%20also%20check%20other%20comments%20on%20the%20same%20PR%2C%20and%20ask%20user%20if%20the%20user%20wants%20to%20fix%20the%20rest%20of%20the%20comments%20as%20well.%20if%20said%20yes%2C%20then%20fetch%20all%20the%20comments%20validate%20the%20correctness%20and%20implement%20a%20minimal%20fix%0A)
*(Use Cmd/Ctrl + Click for best experience)*
<details>
<summary><b>Prompt for AI Agent 🤖 </b></summary>
```mdx
This is a comment left during a code review.
**Path:** docs/admin_docs/configuration/theming.mdx
**Line:** 89:90
**Comment:**
*Logic Error: This statement overclaims behavior: `brandAppName` affects SPA branding/title tokens, but email report subjects/content are generated from report notification settings (such as `EMAIL_REPORTS_SUBJECT_PREFIX`) rather than this theme token. Clarify this to avoid broken operator expectations that changing theme branding will rename email notifications.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
```
</details>
<a href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F39441&comment_hash=a00eccee62582c54112416b7e36f640821258fd1c106c8a0e85d515b80aebb5b&reaction=like'>👍</a> | <a href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F39441&comment_hash=a00eccee62582c54112416b7e36f640821258fd1c106c8a0e85d515b80aebb5b&reaction=dislike'>👎</a>
##########
docs/admin_docs/security/security.mdx:
##########
@@ -52,6 +52,15 @@ only see the objects that they have access to.
The **sql_lab** role grants access to SQL Lab. Note that while **Admin** users have access
to all databases by default, both **Alpha** and **Gamma** users need to be given access on a per database basis.
+Beyond the base `sql_lab` role, two additional SQL Lab permissions must be explicitly granted for users who need these capabilities:
+
+| Permission | Feature |
+|------------|---------|
+| `can_estimate_query_cost` on `SQL Lab` | Estimate query cost before running |
+| `can_format_sql` on `SQL Lab` | Format SQL using the database's dialect |
Review Comment:
**Suggestion:** The permission resource name is documented as `SQL Lab`, but Superset permission tuples use `SQLLab` (no space), so admins searching for the exact permission pair may not find/apply the correct entries. Use the canonical permission-view names to prevent RBAC misconfiguration. [logic error]
<details>
<summary><b>Severity Level:</b> Major ⚠️</summary>
```mdx
- ⚠️ Docs mislabel SQLLab permission resource; actual view name `SQLLab`.
- ⚠️ Admins may misconfigure SQL Lab RBAC following incorrect docs.
```
</details>
<details>
<summary><b>Steps of Reproduction ✅ </b></summary>
```mdx
1. Start Superset with this PR's docs and log in as an Admin user.
2. Go to **Security → List Roles**, edit a role (e.g. `sql_lab`), and open the permission
picker; permission tuples are populated from `superset/security/manager.py:465-470`, where
SQL Lab permissions are defined as view `SQLLab` (no space), e.g.
`("can_estimate_query_cost", "SQLLab")` and `("can_format_sql", "SQLLab")`.
3. In another tab, open the documentation at
`docs/admin_docs/security/security.mdx:55-62`, which instructs that the permission tuples
are `can_estimate_query_cost` on `SQL Lab` and `can_format_sql` on `SQL Lab` (with a
space).
4. Following the docs literally, search in the permission list UI for a resource named
`SQL Lab`; observe that the actual entries are on `SQLLab` (no space), so the documented
name does not match the real permission-view pair, which can lead to confusion or failure
to grant the correct permissions.
```
</details>
[Fix in Cursor](https://app.codeant.ai/fix-in-ide?tool=cursor&prompt=This%20is%20a%20comment%20left%20during%20a%20code%20review.%0A%0A%2A%2APath%3A%2A%2A%20docs%2Fadmin_docs%2Fsecurity%2Fsecurity.mdx%0A%2A%2ALine%3A%2A%2A%2059%3A60%0A%2A%2AComment%3A%2A%2A%0A%09%2ALogic%20Error%3A%20The%20permission%20resource%20name%20is%20documented%20as%20%60SQL%20Lab%60%2C%20but%20Superset%20permission%20tuples%20use%20%60SQLLab%60%20%28no%20space%29%2C%20so%20admins%20searching%20for%20the%20exact%20permission%20pair%20may%20not%20find%2Fapply%20the%20correct%20entries.%20Use%20the%20canonical%20permission-view%20names%20to%20prevent%20RBAC%20misconfiguration.%0A%0AValidate%20the%20correctness%20of%20the%20flagged%20issue.%20If%20correct%2C%20How%20can%20I%20resolve%20this%3F%20If%20you%20propose%20a%20fix%2C%20implement%20it%20and%20please%20make%20it%20concise.%0AOnce%20fix%20is%20implemented%2C%20also%20check%20other%20comments%20on%20the%20same%20PR%2C%20and%20ask%20user%20if%20the%20use
r%20wants%20to%20fix%20the%20rest%20of%20the%20comments%20as%20well.%20if%20said%20yes%2C%20then%20fetch%20all%20the%20comments%20validate%20the%20correctness%20and%20implement%20a%20minimal%20fix%0A) | [Fix in VSCode Claude](https://app.codeant.ai/fix-in-ide?tool=vscode-claude&prompt=This%20is%20a%20comment%20left%20during%20a%20code%20review.%0A%0A%2A%2APath%3A%2A%2A%20docs%2Fadmin_docs%2Fsecurity%2Fsecurity.mdx%0A%2A%2ALine%3A%2A%2A%2059%3A60%0A%2A%2AComment%3A%2A%2A%0A%09%2ALogic%20Error%3A%20The%20permission%20resource%20name%20is%20documented%20as%20%60SQL%20Lab%60%2C%20but%20Superset%20permission%20tuples%20use%20%60SQLLab%60%20%28no%20space%29%2C%20so%20admins%20searching%20for%20the%20exact%20permission%20pair%20may%20not%20find%2Fapply%20the%20correct%20entries.%20Use%20the%20canonical%20permission-view%20names%20to%20prevent%20RBAC%20misconfiguration.%0A%0AValidate%20the%20correctness%20of%20the%20flagged%20issue.%20If%20correct%2C%20How%20can%20I%20resolve%20this%3F%20If
%20you%20propose%20a%20fix%2C%20implement%20it%20and%20please%20make%20it%20concise.%0AOnce%20fix%20is%20implemented%2C%20also%20check%20other%20comments%20on%20the%20same%20PR%2C%20and%20ask%20user%20if%20the%20user%20wants%20to%20fix%20the%20rest%20of%20the%20comments%20as%20well.%20if%20said%20yes%2C%20then%20fetch%20all%20the%20comments%20validate%20the%20correctness%20and%20implement%20a%20minimal%20fix%0A)
*(Use Cmd/Ctrl + Click for best experience)*
<details>
<summary><b>Prompt for AI Agent 🤖 </b></summary>
```mdx
This is a comment left during a code review.
**Path:** docs/admin_docs/security/security.mdx
**Line:** 59:60
**Comment:**
*Logic Error: The permission resource name is documented as `SQL Lab`, but Superset permission tuples use `SQLLab` (no space), so admins searching for the exact permission pair may not find/apply the correct entries. Use the canonical permission-view names to prevent RBAC misconfiguration.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
```
</details>
<a href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F39441&comment_hash=79afa691cb5f3a621123a3007b81893bce352566750c4e4aa13a79b8dd2d3cd2&reaction=like'>👍</a> | <a href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F39441&comment_hash=79afa691cb5f3a621123a3007b81893bce352566750c4e4aa13a79b8dd2d3cd2&reaction=dislike'>👎</a>
--
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] docs: Superset 6.1 documentation catch-up — batch 2 [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on code in PR #39441:
URL: https://github.com/apache/superset/pull/39441#discussion_r3126381762
##########
docs/admin_docs/configuration/cache.mdx:
##########
@@ -138,14 +138,24 @@ THUMBNAIL_CACHE_CONFIG = init_thumbnail_cache
```
Using the above example cache keys for dashboards will be `superset_thumb__dashboard__{ID}`. You can
-override the base URL for selenium using:
+override the base URL for Selenium using:
```
WEBDRIVER_BASEURL = "https://superset.company.com"
```
-Additional selenium web drive configuration can be set using `WEBDRIVER_CONFIGURATION`. You can
-implement a custom function to authenticate selenium. The default function uses the `flask-login`
+To control which user account Selenium authenticates as when rendering thumbnails and warming
+up caches, set:
+
+```python
+SUPERSET_CACHE_WARMUP_USER = "admin" # default; must have access to all dashboards/charts
+```
Review Comment:
**🟠 Architect Review — HIGH**
The docs introduce `SUPERSET_CACHE_WARMUP_USER` (with an implied `"admin"` default) as a cache warmup/thumbnail user config key, but no such key exists in Superset's runtime config; cache warmup uses `CACHE_WARMUP_EXECUTORS` and thumbnails use `THUMBNAIL_EXECUTORS`, so setting `SUPERSET_CACHE_WARMUP_USER` has no effect.
**Suggestion:** Replace this section with the actual executor-based configuration (`CACHE_WARMUP_EXECUTORS` and `THUMBNAIL_EXECUTORS`), including examples using `FixedExecutor("admin")` and documenting the real defaults.
[Fix in Cursor](https://app.codeant.ai/fix-in-ide?tool=cursor&prompt=This%20is%20an%20%2A%2AArchitect%20%2F%20Logical%20Review%2A%2A%20comment%20left%20during%20a%20code%20review.%20These%20reviews%20are%20first-class%2C%20important%20findings%20%E2%80%94%20not%20optional%20suggestions.%20Do%20NOT%20dismiss%20this%20as%20a%20%27big%20architectural%20change%27%20just%20because%20the%20title%20says%20architect%20review%3B%20most%20of%20these%20can%20be%20resolved%20with%20a%20small%2C%20localized%20fix%20once%20the%20intent%20is%20understood.%0A%0A%2A%2APath%3A%2A%2A%20docs%2Fadmin_docs%2Fconfiguration%2Fcache.mdx%0A%2A%2ALine%3A%2A%2A%20147%3A152%0A%2A%2AComment%3A%2A%2A%0A%09%2AHIGH%3A%20The%20docs%20introduce%20%60SUPERSET_CACHE_WARMUP_USER%60%20%28with%20an%20implied%20%60%22admin%22%60%20default%29%20as%20a%20cache%20warmup%2Fthumbnail%20user%20config%20key%2C%20but%20no%20such%20key%20exists%20in%20Superset%27s%20runtime%20config%3B%20cache%20warmup%20uses%20%60CACHE_WARMUP_EX
ECUTORS%60%20and%20thumbnails%20use%20%60THUMBNAIL_EXECUTORS%60%2C%20so%20setting%20%60SUPERSET_CACHE_WARMUP_USER%60%20has%20no%20effect.%0A%0AValidate%20the%20correctness%20of%20the%20flagged%20issue.%20If%20correct%2C%20How%20can%20I%20resolve%20this%3F%20If%20you%20propose%20a%20fix%2C%20implement%20it%20and%20please%20make%20it%20concise.%0AIf%20a%20suggested%20approach%20is%20provided%20above%2C%20use%20it%20as%20the%20authoritative%20instruction.%20If%20no%20explicit%20code%20suggestion%20is%20given%2C%20you%20MUST%20still%20draft%20and%20apply%20your%20own%20minimal%2C%20localized%20fix%20%E2%80%94%20do%20not%20punt%20back%20with%20%27no%20suggestion%20provided%2C%20review%20manually%27.%20Keep%20the%20change%20as%20small%20as%20possible%3A%20add%20a%20guard%20clause%2C%20gate%20on%20a%20loading%20state%2C%20reorder%20an%20await%2C%20wrap%20in%20a%20conditional%2C%20etc.%20Do%20not%20refactor%20surrounding%20code%20or%20expand%20scope%20beyond%20the%20finding.%0AOnce%20fix%20
is%20implemented%2C%20also%20check%20other%20comments%20on%20the%20same%20PR%2C%20and%20ask%20user%20if%20the%20user%20wants%20to%20fix%20the%20rest%20of%20the%20comments%20as%20well.%20if%20said%20yes%2C%20then%20fetch%20all%20the%20comments%20validate%20the%20correctness%20and%20implement%20a%20minimal%20fix%0A) | [Fix in VSCode Claude](https://app.codeant.ai/fix-in-ide?tool=vscode-claude&prompt=This%20is%20an%20%2A%2AArchitect%20%2F%20Logical%20Review%2A%2A%20comment%20left%20during%20a%20code%20review.%20These%20reviews%20are%20first-class%2C%20important%20findings%20%E2%80%94%20not%20optional%20suggestions.%20Do%20NOT%20dismiss%20this%20as%20a%20%27big%20architectural%20change%27%20just%20because%20the%20title%20says%20architect%20review%3B%20most%20of%20these%20can%20be%20resolved%20with%20a%20small%2C%20localized%20fix%20once%20the%20intent%20is%20understood.%0A%0A%2A%2APath%3A%2A%2A%20docs%2Fadmin_docs%2Fconfiguration%2Fcache.mdx%0A%2A%2ALine%3A%2A%2A%20147%3A152%0A%2A%2ACom
ment%3A%2A%2A%0A%09%2AHIGH%3A%20The%20docs%20introduce%20%60SUPERSET_CACHE_WARMUP_USER%60%20%28with%20an%20implied%20%60%22admin%22%60%20default%29%20as%20a%20cache%20warmup%2Fthumbnail%20user%20config%20key%2C%20but%20no%20such%20key%20exists%20in%20Superset%27s%20runtime%20config%3B%20cache%20warmup%20uses%20%60CACHE_WARMUP_EXECUTORS%60%20and%20thumbnails%20use%20%60THUMBNAIL_EXECUTORS%60%2C%20so%20setting%20%60SUPERSET_CACHE_WARMUP_USER%60%20has%20no%20effect.%0A%0AValidate%20the%20correctness%20of%20the%20flagged%20issue.%20If%20correct%2C%20How%20can%20I%20resolve%20this%3F%20If%20you%20propose%20a%20fix%2C%20implement%20it%20and%20please%20make%20it%20concise.%0AIf%20a%20suggested%20approach%20is%20provided%20above%2C%20use%20it%20as%20the%20authoritative%20instruction.%20If%20no%20explicit%20code%20suggestion%20is%20given%2C%20you%20MUST%20still%20draft%20and%20apply%20your%20own%20minimal%2C%20localized%20fix%20%E2%80%94%20do%20not%20punt%20back%20with%20%27no%20suggestion%2
0provided%2C%20review%20manually%27.%20Keep%20the%20change%20as%20small%20as%20possible%3A%20add%20a%20guard%20clause%2C%20gate%20on%20a%20loading%20state%2C%20reorder%20an%20await%2C%20wrap%20in%20a%20conditional%2C%20etc.%20Do%20not%20refactor%20surrounding%20code%20or%20expand%20scope%20beyond%20the%20finding.%0AOnce%20fix%20is%20implemented%2C%20also%20check%20other%20comments%20on%20the%20same%20PR%2C%20and%20ask%20user%20if%20the%20user%20wants%20to%20fix%20the%20rest%20of%20the%20comments%20as%20well.%20if%20said%20yes%2C%20then%20fetch%20all%20the%20comments%20validate%20the%20correctness%20and%20implement%20a%20minimal%20fix%0A)
*(Use Cmd/Ctrl + Click for best experience)*
<details>
<summary><b>Prompt for AI Agent 🤖 </b></summary>
```mdx
This is an **Architect / Logical Review** comment left during a code review. These reviews are first-class, important findings — not optional suggestions. Do NOT dismiss this as a 'big architectural change' just because the title says architect review; most of these can be resolved with a small, localized fix once the intent is understood.
**Path:** docs/admin_docs/configuration/cache.mdx
**Line:** 147:152
**Comment:**
*HIGH: The docs introduce `SUPERSET_CACHE_WARMUP_USER` (with an implied `"admin"` default) as a cache warmup/thumbnail user config key, but no such key exists in Superset's runtime config; cache warmup uses `CACHE_WARMUP_EXECUTORS` and thumbnails use `THUMBNAIL_EXECUTORS`, so setting `SUPERSET_CACHE_WARMUP_USER` has no effect.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
If a suggested approach is provided above, use it as the authoritative instruction. If no explicit code suggestion is given, you MUST still draft and apply your own minimal, localized fix — do not punt back with 'no suggestion provided, review manually'. Keep the change as small as possible: add a guard clause, gate on a loading state, reorder an await, wrap in a conditional, etc. Do not refactor surrounding code or expand scope beyond the finding.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
```
</details>
##########
docs/admin_docs/configuration/theming.mdx:
##########
@@ -84,6 +84,33 @@ THEME_DARK = {
# - OS preference detection is automatically enabled
```
+### App Branding
+
+The application name shown in the browser title bar, navigation, and email notifications can be
+set via the `brandAppName` theme token:
+
+```python
+THEME_DEFAULT = {
+ "token": {
+ "brandAppName": "Acme Analytics",
+ # ... other tokens
+ }
+}
+```
+
+Or in the theme CRUD UI JSON editor:
+
+```json
+{
+ "token": {
+ "brandAppName": "Acme Analytics"
+ }
+}
+```
+
+The existing `APP_NAME` Python config key continues to work for backward compatibility.
+`brandAppName` takes precedence when both are set, and allows different themes to carry different brand names.
+
Review Comment:
**🟠 Architect Review — HIGH**
The new `brandAppName` section claims it controls the application name in email notifications, but `brandAppName` is only used in SPA/theme bootstrap (e.g., `get_spa_template_context`); email/alert/report code does not reference `brandAppName` and instead relies on backend config such as `APP_NAME` and email-specific settings.
**Suggestion:** Narrow the description to UI surfaces that actually consume theme tokens (browser titles, navigation, etc.), and explicitly note that email/report naming remains driven by backend configuration until wired to theme branding.
[Fix in Cursor](https://app.codeant.ai/fix-in-ide?tool=cursor&prompt=This%20is%20an%20%2A%2AArchitect%20%2F%20Logical%20Review%2A%2A%20comment%20left%20during%20a%20code%20review.%20These%20reviews%20are%20first-class%2C%20important%20findings%20%E2%80%94%20not%20optional%20suggestions.%20Do%20NOT%20dismiss%20this%20as%20a%20%27big%20architectural%20change%27%20just%20because%20the%20title%20says%20architect%20review%3B%20most%20of%20these%20can%20be%20resolved%20with%20a%20small%2C%20localized%20fix%20once%20the%20intent%20is%20understood.%0A%0A%2A%2APath%3A%2A%2A%20docs%2Fadmin_docs%2Fconfiguration%2Ftheming.mdx%0A%2A%2ALine%3A%2A%2A%2089%3A113%0A%2A%2AComment%3A%2A%2A%0A%09%2AHIGH%3A%20The%20new%20%60brandAppName%60%20section%20claims%20it%20controls%20the%20application%20name%20in%20email%20notifications%2C%20but%20%60brandAppName%60%20is%20only%20used%20in%20SPA%2Ftheme%20bootstrap%20%28e.g.%2C%20%60get_spa_template_context%60%29%3B%20email%2Falert%2Freport%20code%20does%20no
t%20reference%20%60brandAppName%60%20and%20instead%20relies%20on%20backend%20config%20such%20as%20%60APP_NAME%60%20and%20email-specific%20settings.%0A%0AValidate%20the%20correctness%20of%20the%20flagged%20issue.%20If%20correct%2C%20How%20can%20I%20resolve%20this%3F%20If%20you%20propose%20a%20fix%2C%20implement%20it%20and%20please%20make%20it%20concise.%0AIf%20a%20suggested%20approach%20is%20provided%20above%2C%20use%20it%20as%20the%20authoritative%20instruction.%20If%20no%20explicit%20code%20suggestion%20is%20given%2C%20you%20MUST%20still%20draft%20and%20apply%20your%20own%20minimal%2C%20localized%20fix%20%E2%80%94%20do%20not%20punt%20back%20with%20%27no%20suggestion%20provided%2C%20review%20manually%27.%20Keep%20the%20change%20as%20small%20as%20possible%3A%20add%20a%20guard%20clause%2C%20gate%20on%20a%20loading%20state%2C%20reorder%20an%20await%2C%20wrap%20in%20a%20conditional%2C%20etc.%20Do%20not%20refactor%20surrounding%20code%20or%20expand%20scope%20beyond%20the%20finding.%0AOnc
e%20fix%20is%20implemented%2C%20also%20check%20other%20comments%20on%20the%20same%20PR%2C%20and%20ask%20user%20if%20the%20user%20wants%20to%20fix%20the%20rest%20of%20the%20comments%20as%20well.%20if%20said%20yes%2C%20then%20fetch%20all%20the%20comments%20validate%20the%20correctness%20and%20implement%20a%20minimal%20fix%0A) | [Fix in VSCode Claude](https://app.codeant.ai/fix-in-ide?tool=vscode-claude&prompt=This%20is%20an%20%2A%2AArchitect%20%2F%20Logical%20Review%2A%2A%20comment%20left%20during%20a%20code%20review.%20These%20reviews%20are%20first-class%2C%20important%20findings%20%E2%80%94%20not%20optional%20suggestions.%20Do%20NOT%20dismiss%20this%20as%20a%20%27big%20architectural%20change%27%20just%20because%20the%20title%20says%20architect%20review%3B%20most%20of%20these%20can%20be%20resolved%20with%20a%20small%2C%20localized%20fix%20once%20the%20intent%20is%20understood.%0A%0A%2A%2APath%3A%2A%2A%20docs%2Fadmin_docs%2Fconfiguration%2Ftheming.mdx%0A%2A%2ALine%3A%2A%2A%2089%3A113%
0A%2A%2AComment%3A%2A%2A%0A%09%2AHIGH%3A%20The%20new%20%60brandAppName%60%20section%20claims%20it%20controls%20the%20application%20name%20in%20email%20notifications%2C%20but%20%60brandAppName%60%20is%20only%20used%20in%20SPA%2Ftheme%20bootstrap%20%28e.g.%2C%20%60get_spa_template_context%60%29%3B%20email%2Falert%2Freport%20code%20does%20not%20reference%20%60brandAppName%60%20and%20instead%20relies%20on%20backend%20config%20such%20as%20%60APP_NAME%60%20and%20email-specific%20settings.%0A%0AValidate%20the%20correctness%20of%20the%20flagged%20issue.%20If%20correct%2C%20How%20can%20I%20resolve%20this%3F%20If%20you%20propose%20a%20fix%2C%20implement%20it%20and%20please%20make%20it%20concise.%0AIf%20a%20suggested%20approach%20is%20provided%20above%2C%20use%20it%20as%20the%20authoritative%20instruction.%20If%20no%20explicit%20code%20suggestion%20is%20given%2C%20you%20MUST%20still%20draft%20and%20apply%20your%20own%20minimal%2C%20localized%20fix%20%E2%80%94%20do%20not%20punt%20back%20with%20
%27no%20suggestion%20provided%2C%20review%20manually%27.%20Keep%20the%20change%20as%20small%20as%20possible%3A%20add%20a%20guard%20clause%2C%20gate%20on%20a%20loading%20state%2C%20reorder%20an%20await%2C%20wrap%20in%20a%20conditional%2C%20etc.%20Do%20not%20refactor%20surrounding%20code%20or%20expand%20scope%20beyond%20the%20finding.%0AOnce%20fix%20is%20implemented%2C%20also%20check%20other%20comments%20on%20the%20same%20PR%2C%20and%20ask%20user%20if%20the%20user%20wants%20to%20fix%20the%20rest%20of%20the%20comments%20as%20well.%20if%20said%20yes%2C%20then%20fetch%20all%20the%20comments%20validate%20the%20correctness%20and%20implement%20a%20minimal%20fix%0A)
*(Use Cmd/Ctrl + Click for best experience)*
<details>
<summary><b>Prompt for AI Agent 🤖 </b></summary>
```mdx
This is an **Architect / Logical Review** comment left during a code review. These reviews are first-class, important findings — not optional suggestions. Do NOT dismiss this as a 'big architectural change' just because the title says architect review; most of these can be resolved with a small, localized fix once the intent is understood.
**Path:** docs/admin_docs/configuration/theming.mdx
**Line:** 89:113
**Comment:**
*HIGH: The new `brandAppName` section claims it controls the application name in email notifications, but `brandAppName` is only used in SPA/theme bootstrap (e.g., `get_spa_template_context`); email/alert/report code does not reference `brandAppName` and instead relies on backend config such as `APP_NAME` and email-specific settings.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
If a suggested approach is provided above, use it as the authoritative instruction. If no explicit code suggestion is given, you MUST still draft and apply your own minimal, localized fix — do not punt back with 'no suggestion provided, review manually'. Keep the change as small as possible: add a guard clause, gate on a loading state, reorder an await, wrap in a conditional, etc. Do not refactor surrounding code or expand scope beyond the finding.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
```
</details>
--
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] docs: Superset 6.1 documentation catch-up — batch 2 [superset]
Posted by "hainenber (via GitHub)" <gi...@apache.org>.
hainenber commented on code in PR #39441:
URL: https://github.com/apache/superset/pull/39441#discussion_r3104643308
##########
docs/docs/using-superset/sql-templating.mdx:
##########
@@ -173,6 +173,26 @@ FROM sales
GROUP BY category
```
+## Using Jinja in Calculated Columns
+
+Jinja template macros are available in calculated column expressions in the dataset editor — not just in SQL Lab queries and virtual datasets. This allows column expressions to reference the current user or dynamic context.
+
+**Example: User-scoped calculated column**
+
+```sql
+CASE WHEN sales_rep = '{{ current_username() }}' THEN amount ELSE 0 END
+```
+
+**Example: Conditional display based on role**
+
+```sql
+CASE WHEN '{{ current_user_roles() }}' LIKE '%Finance%' THEN revenue ELSE NULL END
+```
+
+:::note
Review Comment:
IMO this should move right after the header for visibility
--
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] docs: Superset 6.1 documentation catch-up — batch 2 [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #39441:
URL: https://github.com/apache/superset/pull/39441#issuecomment-4299689085
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers a full AI review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
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