You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "shashbha14 (via GitHub)" <gi...@apache.org> on 2026/01/07 12:02:03 UTC

[PR] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [superset]

shashbha14 opened a new pull request, #36951:
URL: https://github.com/apache/superset/pull/36951

   SUMMARY
   This PR addresses user confusion regarding customizing the loading icon and resolves a bug where `LOGO_TARGET_PATH` was being ignored by the default theme system in Superset 6.0.0.
   
   Specifically, it:
   1.  **Documents Custom Loading Icon**: Explicitly documents `brandSpinnerUrl` in `THEME_DEFAULT` within [config.py](cci:7://file:///c:/Users/ishwet/superset/superset/config.py:0:0-0:0). This clarifies that users can set a custom GIF/image loader via config without needing to replace source files or rebuild assets.
   2.  **Fixes Logo Link**: Updates `THEME_DEFAULT` to correctly use `LOGO_TARGET_PATH` for `brandLogoHref`. Previously, `LOGO_TARGET_PATH` was ignored by the default theme, forcing users to override the entire theme object just to change the logo link.
   3.  **Clarifies Configuration**: Added comments to `APP_ICON`, `LOGO_TOOLTIP`, `LOGO_RIGHT_TEXT`, and `APP_ICON_WIDTH` (deprecation note) to clarify their interaction with `THEME_DEFAULT` or their deprecated status.
   
   BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   N/A (Configuration and Documentation changes only)
   
   TESTING INSTRUCTIONS
   To verify these changes locally:
   
   1.  **Verify Logo Link Fix**:
       *   In `superset_config.py`, set `LOGO_TARGET_PATH = "https://custom.url"`.
       *   Restart Superset and click the top-left logo.
       *   **Result**: It should navigate to `https://custom.url` (previously it would stay on `/` unless the theme was overridden).
   
   2.  **Verify Custom Spinner**:
       *   In `superset_config.py`, set:
           ```python
           THEME_DEFAULT = {
               "token": {
                   "brandSpinnerUrl": "/static/assets/images/my-custom-spinner.gif"
               }
           }
           ```
       *   Restart Superset.
       *   **Result**: The custom GIF should appear during loading.
   
   ADDITIONAL INFORMATION
   - [x] Has associated issue: Fixes #36940
   - [ ] 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] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [superset]

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #36951:
URL: https://github.com/apache/superset/pull/36951#issuecomment-3739909382

   ## [Codecov](https://app.codecov.io/gh/apache/superset/pull/36951?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   :white_check_mark: All modified and coverable lines are covered by tests.
   :white_check_mark: Project coverage is 48.49%. Comparing base ([`9968393`](https://app.codecov.io/gh/apache/superset/commit/9968393e4c3a269d6a36c4ec1a8704ce184f0851?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`4e6b533`](https://app.codecov.io/gh/apache/superset/commit/4e6b53394c645672764fc2eeb9f9cde25c6013af?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
   :warning: Report is 47 commits behind head on master.
   
   <details><summary>Additional details and impacted files</summary>
   
   
   
   ```diff
   @@             Coverage Diff             @@
   ##           master   #36951       +/-   ##
   ===========================================
   + Coverage        0   48.49%   +48.49%     
   ===========================================
     Files           0      639      +639     
     Lines           0    47657    +47657     
     Branches        0     5204     +5204     
   ===========================================
   + Hits            0    23111    +23111     
   - Misses          0    23891    +23891     
   - Partials        0      655      +655     
   ```
   
   | [Flag](https://app.codecov.io/gh/apache/superset/pull/36951/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
   |---|---|---|
   | [hive](https://app.codecov.io/gh/apache/superset/pull/36951/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `43.09% <ø> (?)` | |
   | [presto](https://app.codecov.io/gh/apache/superset/pull/36951/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `46.69% <ø> (?)` | |
   | [python](https://app.codecov.io/gh/apache/superset/pull/36951/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `48.49% <ø> (?)` | |
   | [unit](https://app.codecov.io/gh/apache/superset/pull/36951/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `100.00% <ø> (?)` | |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/superset/pull/36951?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   <details><summary> :rocket: New features to boost your workflow: </summary>
   
   - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
   - :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
   </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] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [superset]

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

   @shashbha14 this is good to go on my end (already approved) — but the branch is way behind master and pre-commit is red because of it. I'll see if I can help rebase it and get it merged.


-- 
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] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [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 #36951:
URL: https://github.com/apache/superset/pull/36951#discussion_r3454016187


##########
superset/config.py:
##########
@@ -1008,9 +1019,10 @@ class D3TimeFormat(TypedDict, total=False):
         "brandLogoAlt": "Apache Superset",
         "brandLogoUrl": APP_ICON,
         "brandLogoMargin": "18px 0",
-        "brandLogoHref": "/",
+        "brandLogoHref": LOGO_TARGET_PATH or "/",

Review Comment:
   **Suggestion:** `THEME_DEFAULT` is built before `superset_config.py` overrides are imported, so this expression captures the initial `LOGO_TARGET_PATH` value and will not reflect user overrides made in `superset_config.py`. As a result, setting only `LOGO_TARGET_PATH` still won't update the logo link at runtime. Recompute `THEME_DEFAULT["token"]["brandLogoHref"]` after local config overrides are loaded (or derive it lazily at bootstrap time) so `LOGO_TARGET_PATH` actually takes effect. [incomplete implementation]
   
   <details>
   <summary><b>Severity Level:</b> Major ⚠️</summary>
   
   ```mdx
   - ⚠️ Brand logo link ignores LOGO_TARGET_PATH overrides.
   - ⚠️ Admin-configured logo URL never reflected in UI.
   ```
   </details>
   <details>
   <summary><b>Steps of Reproduction ✅ </b></summary>
   
   ```mdx
   1. Note the documented override mechanism in `superset/config.py:17-21`, which states that
   all configuration in this file can be overridden by providing a `superset_config` module
   (`from superset_config import *` at the end of the file).
   
   2. Observe where `LOGO_TARGET_PATH` and `THEME_DEFAULT` are defined: `LOGO_TARGET_PATH` is
   set near `superset/config.py:407-423`, and `THEME_DEFAULT["token"]["brandLogoHref"]` is
   initialized earlier at `superset/config.py:65-75` with `"brandLogoHref": LOGO_TARGET_PATH
   or "/"` (shown in the diff at line 1022), meaning this expression is evaluated once when
   the module is imported.
   
   3. At the bottom of `superset/config.py:2785-2824`, see that `superset_config` overrides
   are loaded *after* `THEME_DEFAULT` has been built (`import superset_config` and `from
   superset_config import *`), so a `superset_config.py` that only sets `LOGO_TARGET_PATH =
   "https://example.com"` will update `config.LOGO_TARGET_PATH` but will not recompute
   `config.THEME_DEFAULT["token"]["brandLogoHref"]`, which remains the value computed when
   `LOGO_TARGET_PATH` was `None` (i.e., "/").
   
   4. Follow the runtime usage of `THEME_DEFAULT`:
   `superset/views/base.py:get_theme_bootstrap_data()` at lines 12–21 reads
   `config_theme_default = get_config_value("THEME_DEFAULT")` and
   `common_bootstrap_payload()` at `superset/views/base.py:20-24` updates the SPA bootstrap
   data with `bootstrap_data.update(get_theme_bootstrap_data())` (lines 14–15 of the
   snippet), so the frontend receives the stale `"brandLogoHref": "/"` even when
   `LOGO_TARGET_PATH` has been overridden in `superset_config`, confirming that computing
   `"brandLogoHref": LOGO_TARGET_PATH or "/"` at import time ignores later user overrides.
   ```
   </details>
   
   [![Fix in Cursor](https://new-codeant-butcket.s3.us-west-1.amazonaws.com/badges/fix-in-cursor-flat.svg)](https://app.codeant.ai/fix-in-ide?tool=cursor&prompt_id=308c8caa58f142f3959c34bbda78503c&service=github&base_url=https%3A%2F%2Fgithub.com&org=apache&repo=apache%2Fsuperset) [![Fix in VSCode Claude](https://new-codeant-butcket.s3.us-west-1.amazonaws.com/badges/fix-in-vscode-claude-flat.svg)](https://app.codeant.ai/fix-in-ide?tool=vscode-claude&prompt_id=308c8caa58f142f3959c34bbda78503c&service=github&base_url=https%3A%2F%2Fgithub.com&org=apache&repo=apache%2Fsuperset)
   
   *(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:** superset/config.py
   **Line:** 1022:1022
   **Comment:**
   	*Incomplete Implementation: `THEME_DEFAULT` is built before `superset_config.py` overrides are imported, so this expression captures the initial `LOGO_TARGET_PATH` value and will not reflect user overrides made in `superset_config.py`. As a result, setting only `LOGO_TARGET_PATH` still won't update the logo link at runtime. Recompute `THEME_DEFAULT["token"]["brandLogoHref"]` after local config overrides are loaded (or derive it lazily at bootstrap time) so `LOGO_TARGET_PATH` actually takes 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.
   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%2F36951&comment_hash=747569e3409730170f597dd74d108a3701e1317e52d56a450587a732d2930cf3&reaction=like'>👍</a> | <a href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F36951&comment_hash=747569e3409730170f597dd74d108a3701e1317e52d56a450587a732d2930cf3&reaction=dislike'>👎</a>



##########
tests/unit_tests/config_test.py:
##########
@@ -312,3 +312,24 @@ def test_full_setting(
     assert dttm_col.is_dttm
     assert dttm_col.python_date_format == "epoch_s"
     assert dttm_col.expression == "CAST(dttm as INTEGER)"
+
+
+def test_theme_default_logo_target_path() -> None:
+    """
+    Test that THEME_DEFAULT properly uses LOGO_TARGET_PATH for brandLogoHref.
+
+    When LOGO_TARGET_PATH is None (default), brandLogoHref should be "/".
+    When LOGO_TARGET_PATH is set, it should be used instead.
+    """
+    from superset import config
+
+    # Verify default behavior: LOGO_TARGET_PATH is None, so brandLogoHref is "/"
+    assert config.LOGO_TARGET_PATH is None
+    assert config.THEME_DEFAULT["token"]["brandLogoHref"] == "/"
+
+    # Verify the expression logic works correctly for custom values
+    custom_path = "https://example.com"
+    assert (custom_path or "/") == custom_path

Review Comment:
   **Suggestion:** This assertion is a tautology and does not validate the config wiring at all, so the test can pass even when `THEME_DEFAULT` ignores `LOGO_TARGET_PATH`. Replace this with a real override test (e.g., patch/reload config with a custom `LOGO_TARGET_PATH` and assert `THEME_DEFAULT["token"]["brandLogoHref"]` changes accordingly) to catch the integration bug. [code quality]
   
   <details>
   <summary><b>Severity Level:</b> Major ⚠️</summary>
   
   ```mdx
   - ⚠️ Test cannot detect regressions in logo href wiring.
   - ⚠️ Gives false confidence about theme configuration coverage.
   ```
   </details>
   <details>
   <summary><b>Steps of Reproduction ✅ </b></summary>
   
   ```mdx
   1. Inspect `test_theme_default_logo_target_path` in
   `tests/unit_tests/config_test.py:18-36`, which imports `from superset import config` and
   asserts the default wiring (`config.LOGO_TARGET_PATH is None` and
   `config.THEME_DEFAULT["token"]["brandLogoHref"] == "/"`) before reaching the lines under
   review.
   
   2. At lines 331–332 in the diff, the test introduces a local variable and assertion:
   `custom_path = "https://example.com"` and `assert (custom_path or "/") == custom_path`;
   this expression uses only the local variable and does not reference `config` or
   `THEME_DEFAULT` at all.
   
   3. Evaluate the assertion logic: in Python, a non-empty string is truthy, so `(custom_path
   or "/")` always evaluates to `custom_path` when `custom_path = "https://example.com"`,
   making `assert (custom_path or "/") == custom_path` a tautology that will always pass
   regardless of how `LOGO_TARGET_PATH` or `THEME_DEFAULT["token"]["brandLogoHref"]` are
   wired.
   
   4. Because this assertion never consults `config.LOGO_TARGET_PATH` or
   `config.THEME_DEFAULT`, any future regression where `"brandLogoHref"` stops honoring a
   custom `LOGO_TARGET_PATH` set in `superset_config` (as described in
   `superset/config.py:17-21` and wired at `superset/config.py:65-75`) would still see this
   test passing, demonstrating that the current test does not validate the configuration
   behavior it claims to cover.
   ```
   </details>
   
   [![Fix in Cursor](https://new-codeant-butcket.s3.us-west-1.amazonaws.com/badges/fix-in-cursor-flat.svg)](https://app.codeant.ai/fix-in-ide?tool=cursor&prompt_id=a0a8ea5e781f4f7fadab58efd8d0fc52&service=github&base_url=https%3A%2F%2Fgithub.com&org=apache&repo=apache%2Fsuperset) [![Fix in VSCode Claude](https://new-codeant-butcket.s3.us-west-1.amazonaws.com/badges/fix-in-vscode-claude-flat.svg)](https://app.codeant.ai/fix-in-ide?tool=vscode-claude&prompt_id=a0a8ea5e781f4f7fadab58efd8d0fc52&service=github&base_url=https%3A%2F%2Fgithub.com&org=apache&repo=apache%2Fsuperset)
   
   *(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:** tests/unit_tests/config_test.py
   **Line:** 331:332
   **Comment:**
   	*Code Quality: This assertion is a tautology and does not validate the config wiring at all, so the test can pass even when `THEME_DEFAULT` ignores `LOGO_TARGET_PATH`. Replace this with a real override test (e.g., patch/reload config with a custom `LOGO_TARGET_PATH` and assert `THEME_DEFAULT["token"]["brandLogoHref"]` changes accordingly) to catch the integration bug.
   
   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%2F36951&comment_hash=c2e6feb9f86dd35729db7ca3db583537ea910d6e684a38f952d5f0a27925b762&reaction=like'>👍</a> | <a href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F36951&comment_hash=c2e6feb9f86dd35729db7ca3db583537ea910d6e684a38f952d5f0a27925b762&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] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [superset]

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


##########
superset/config.py:
##########
@@ -780,9 +790,10 @@ class D3TimeFormat(TypedDict, total=False):
         "brandLogoAlt": "Apache Superset",
         "brandLogoUrl": APP_ICON,
         "brandLogoMargin": "18px 0",
-        "brandLogoHref": "/",
+        "brandLogoHref": LOGO_TARGET_PATH or "/",
         "brandLogoHeight": "24px",
         # Spinner
+        # "brandSpinnerUrl": "/static/assets/images/loading.gif",  # Set this to use a custom GIF/image loader

Review Comment:
   ```suggestion
           # Spinner - Set this to use a custom GIF/image loader
           # "brandSpinnerUrl": "/static/assets/images/loading.gif", 
   ```



-- 
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] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [superset]

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


##########
superset/config.py:
##########
@@ -1008,9 +1019,10 @@ class D3TimeFormat(TypedDict, total=False):
         "brandLogoAlt": "Apache Superset",
         "brandLogoUrl": APP_ICON,
         "brandLogoMargin": "18px 0",
-        "brandLogoHref": "/",
+        "brandLogoHref": LOGO_TARGET_PATH or "/",

Review Comment:
   Yep, you're right... THEME_DEFAULT is built way up top, long before superset_config.py loads at the bottom of config.py, so setting just LOGO_TARGET_PATH never took. Pushed a fix (26d5129f9c) that re-syncs the logo link from the final LOGO_TARGET_PATH after the overrides are applied (covers THEME_DARK too). Confirmed an override actually propagates now.



##########
tests/unit_tests/config_test.py:
##########
@@ -312,3 +312,24 @@ def test_full_setting(
     assert dttm_col.is_dttm
     assert dttm_col.python_date_format == "epoch_s"
     assert dttm_col.expression == "CAST(dttm as INTEGER)"
+
+
+def test_theme_default_logo_target_path() -> None:
+    """
+    Test that THEME_DEFAULT properly uses LOGO_TARGET_PATH for brandLogoHref.
+
+    When LOGO_TARGET_PATH is None (default), brandLogoHref should be "/".
+    When LOGO_TARGET_PATH is set, it should be used instead.
+    """
+    from superset import config
+
+    # Verify default behavior: LOGO_TARGET_PATH is None, so brandLogoHref is "/"
+    assert config.LOGO_TARGET_PATH is None
+    assert config.THEME_DEFAULT["token"]["brandLogoHref"] == "/"
+
+    # Verify the expression logic works correctly for custom values
+    custom_path = "https://example.com"
+    assert (custom_path or "/") == custom_path

Review Comment:
   Good call, that assertion wasn't really testing anything. Replaced it with one that exercises the wiring itself (sync_theme_logo_href with a custom path, and a None no-op) in 26d5129f9c.



-- 
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] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [superset]

Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #36951:
URL: https://github.com/apache/superset/pull/36951#issuecomment-3930569980

   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] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [superset]

Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #36951:
URL: https://github.com/apache/superset/pull/36951#issuecomment-4772393923

   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] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [superset]

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

   I've added a test to help see this 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] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [superset]

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


##########
superset/config.py:
##########
@@ -355,20 +355,30 @@ def _try_json_readsha(filepath: str, length: int) -> str | None:
 APP_NAME = "Superset"
 
 # Specify the App icon
+# NOTE: This variable is used to populate THEME_DEFAULT. If you override this in
+# superset_config.py, you must also override THEME_DEFAULT to see the change,
+# or set THEME_DEFAULT["token"]["brandLogoUrl"] directly.
 APP_ICON = "/static/assets/images/superset-logo-horiz.png"
 
 # Specify where clicking the logo would take the user'

Review Comment:
   There is a typo in this comment. The word "user" should not have an apostrophe at the end.
   ```suggestion
   # Specify where clicking the logo would take the user
   ```



-- 
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] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [superset]

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

   Looks simple enough, but can you perhaps add a simple test where you add a LOGO_TARGET_PATH and assert that it shows up in the code?


-- 
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] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [superset]

Posted by "netlify[bot] (via GitHub)" <gi...@apache.org>.
netlify[bot] commented on PR #36951:
URL: https://github.com/apache/superset/pull/36951#issuecomment-3718565336

   ### <span aria-hidden="true">✅</span> Deploy Preview for *superset-docs-preview* ready!
   
   
   |  Name | Link |
   |:-:|------------------------|
   |<span aria-hidden="true">🔨</span> Latest commit | 4e6b53394c645672764fc2eeb9f9cde25c6013af |
   |<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/superset-docs-preview/deploys/695e4b3c25d1df00089b71ec |
   |<span aria-hidden="true">😎</span> Deploy Preview | [https://deploy-preview-36951--superset-docs-preview.netlify.app](https://deploy-preview-36951--superset-docs-preview.netlify.app) |
   |<span aria-hidden="true">📱</span> Preview on mobile | <details><summary> Toggle QR Code... </summary><br /><br />![QR Code](https://app.netlify.com/qr-code/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1cmwiOiJodHRwczovL2RlcGxveS1wcmV2aWV3LTM2OTUxLS1zdXBlcnNldC1kb2NzLXByZXZpZXcubmV0bGlmeS5hcHAifQ.VZBGxBFcTcZIKPncCkz3Uin0eLXb6P0L0BrEBTnYoeg)<br /><br />_Use your smartphone camera to open QR code link._</details> |
   ---
   <!-- [superset-docs-preview Preview](https://deploy-preview-36951--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] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [superset]

Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #36951:
URL: https://github.com/apache/superset/pull/36951#issuecomment-4788863580

   **Bito Automatic Review Skipped – PR Already Merged**<br/><br/>Bito scheduled an automatic review for this pull request, but the review was skipped because this PR was merged before the review could be run.<br/>No action is needed if you didn't intend to review it. To get a review, you can type `/review` in a comment and save 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] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [superset]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #36951:
URL: https://github.com/apache/superset/pull/36951#issuecomment-4773740726

   <!-- translation-regression-bot -->
   ## ⚠️ Translation Regression Detected
   
   A source change in this PR renamed or reworded strings, invalidating existing translations (they are now `#, fuzzy`) in `fi`, `it`, `ko`, `th`. Please resolve the affected `.po` files before merging.
   
   _Note: intentionally **deleting** a translatable string is not a regression and is not flagged here — only translations invalidated by a renamed/reworded source string are._
   
   | Language | Fuzzy before | Fuzzy after | New |
   |----------|-------------:|------------:|----:|
   | `fi` | 4815 | 4817 | +2 |
   | `it` | 1665 | 1667 | +2 |
   | `ko` | 1519 | 1521 | +2 |
   | `th` | 4815 | 4817 | +2 |
   
   ### How to fix
   
   **1. Install dependencies** (if not already set up):
   
   ```bash
   pip install -r superset/translations/requirements.txt
   sudo apt-get install gettext   # or: brew install gettext
   ```
   
   **2. Re-extract strings and sync `.po` files:**
   
   ```bash
   ./scripts/translations/babel_update.sh
   ```
   
   This rewrites `superset/translations/messages.pot` from the current source files and merges the changes into every `.po` file. Strings whose `msgid` changed will be marked `#, fuzzy`.
   
   **3. Resolve the fuzzy entries** in the affected language files (`fi`, `it`, `ko`, `th`):
   
   ```bash
   grep -n '#, fuzzy' superset/translations/<lang>/LC_MESSAGES/messages.po
   ```
   
   For each fuzzy entry, either rewrite the `msgstr` to match the new string and remove the `#, fuzzy` line, or clear the `msgstr` to `""` if you cannot provide a translation.
   
   **4. Commit your changes to the `.po` files.**
   


-- 
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] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [superset]

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


-- 
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] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [superset]

Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #36951:
URL: https://github.com/apache/superset/pull/36951#issuecomment-4774841049

   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] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [superset]

Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #36951:
URL: https://github.com/apache/superset/pull/36951#issuecomment-3718554665

   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] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [superset]

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


##########
superset/config.py:
##########
@@ -355,20 +355,30 @@ def _try_json_readsha(filepath: str, length: int) -> str | None:
 APP_NAME = "Superset"
 
 # Specify the App icon
+# NOTE: This variable is used to populate THEME_DEFAULT. If you override this in
+# superset_config.py, you must also override THEME_DEFAULT to see the change,
+# or set THEME_DEFAULT["token"]["brandLogoUrl"] directly.
 APP_ICON = "/static/assets/images/superset-logo-horiz.png"
 
 # Specify where clicking the logo would take the user'
 # Default value of None will take you to '/superset/welcome'
 # You can also specify a relative URL e.g. '/superset/welcome' or '/dashboards/list'
 # or you can specify a full URL e.g. 'https://foo.bar'
+# NOTE: This variable is used to populate THEME_DEFAULT. If you override this in
+# superset_config.py, you must also override THEME_DEFAULT to see the change,
+# or set THEME_DEFAULT["token"]["brandLogoHref"] directly.
 LOGO_TARGET_PATH = None
 
 # Specify tooltip that should appear when hovering over the App Icon/Logo
+# NOTE: This variable is deprecated and not used in the new theme system.
 LOGO_TOOLTIP = ""
 
 # Specify any text that should appear to the right of the logo
+# NOTE: This variable is deprecated and not used in the new theme system.
 LOGO_RIGHT_TEXT: Callable[[], str] | str = ""
 
+# APP_ICON_WIDTH is deprecated. Use THEME_DEFAULT["token"]["brandLogoHeight"] instead (default: "24px").

Review Comment:
   ```suggestion
   # APP_ICON_WIDTH is deprecated. 
   # Use THEME_DEFAULT["token"]["brandLogoHeight"] instead (default: "24px").
   ```



-- 
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] fix(config): Wire LOGO_TARGET_PATH and document custom spinner usage [superset]

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


##########
superset/config.py:
##########
@@ -780,9 +790,10 @@ class D3TimeFormat(TypedDict, total=False):
         "brandLogoAlt": "Apache Superset",
         "brandLogoUrl": APP_ICON,
         "brandLogoMargin": "18px 0",
-        "brandLogoHref": "/",
+        "brandLogoHref": LOGO_TARGET_PATH or "/",
         "brandLogoHeight": "24px",
         # Spinner
+        # "brandSpinnerUrl": "/static/assets/images/loading.gif",  # Set this to use a custom GIF/image loader

Review Comment:
   ```suggestion
   # Spinner - Set this to use a custom GIF/image loader
           # "brandSpinnerUrl": "/static/assets/images/loading.gif", 
   ```



-- 
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