Re: [I] Ephemeral instances no longer have any example data [superset]

2024-07-24 Thread via GitHub


dosubot[bot] commented on issue #29694:
URL: https://github.com/apache/superset/issues/29694#issuecomment-2249132157

   
   Hey @sadpandajoe! I'm here to assist you with any bugs, questions, or 
contributions while we wait for a human maintainer. Let's tackle this together!
   
   
   The example data such as dashboards and charts no longer exist when spinning 
up an ephemeral instance in a PR because the provided workflow configuration 
does not include any steps to load or initialize example data. To include 
example data, you need to add steps in the workflow to load the example data 
after the environment is spun up. You can use scripts like `misc_dashboard.py` 
to load example dashboards and charts, or leverage the `ImportAssetsCommand` 
from the `superset.commands.importers.v1.assets` module to import predefined 
configurations for databases, datasets, charts, and dashboards 
[[1]](https://github.com/apache/superset/blob/master/.github/workflows/ephemeral-env.yml)[[2]](https://github.com/apache/superset/blob/master/superset/examples/misc_dashboard.py)[[3]](https://github.com/apache/superset/blob/master/tests/unit_tests/commands/importers/v1/assets_test.py).
   
   
   
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



[I] Ephemeral instances no longer have any example data [superset]

2024-07-24 Thread via GitHub


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

   ### Bug description
   
   When you spin up an ephemeral instance in a PR, example data such as 
dashboard, charts, etc. no longer exist.
   
   ### How to reproduce the bug
   
   1. Go to a PR
   2. Spin up an ephemeral
   3. Log into the ephemeral
   4. Go to the dashboard list
   
   Notice that the dashboard list is empty where we used to have example 
dashboards.
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org.apache.org

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


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



Re: [PR] feat(alert/reports): adding logic to handle downstream reports when tab is deleted from dashboard [superset]

2024-07-24 Thread via GitHub


codecov[bot] commented on PR #29333:
URL: https://github.com/apache/superset/pull/29333#issuecomment-2249108552

   ## 
[Codecov](https://app.codecov.io/gh/apache/superset/pull/29333?dropdown=coverage=pr=h1_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 Report
   Attention: Patch coverage is `39.72603%` with `44 lines` in your changes 
missing coverage. Please review.
   > Project coverage is 61.40%. Comparing base 
[(`76d897e`)](https://app.codecov.io/gh/apache/superset/commit/76d897eaa2f9e137102bc194c2e3109c29d0348f?dropdown=coverage=desc_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 to head 
[(`8984dd6`)](https://app.codecov.io/gh/apache/superset/commit/8984dd6596eb7fc87549f64c82ecdc9db1678abf?dropdown=coverage=desc_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache).
   > Report is 477 commits behind head on master.
   
   | 
[Files](https://app.codecov.io/gh/apache/superset/pull/29333?dropdown=coverage=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 | Patch % | Lines |
   |---|---|---|
   | 
[superset/commands/dashboard/update.py](https://app.codecov.io/gh/apache/superset/pull/29333?src=pr=tree=superset%2Fcommands%2Fdashboard%2Fupdate.py_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache#diff-c3VwZXJzZXQvY29tbWFuZHMvZGFzaGJvYXJkL3VwZGF0ZS5weQ==)
 | 18.75% | [26 Missing :warning: 
](https://app.codecov.io/gh/apache/superset/pull/29333?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 |
   | 
[...-frontend/src/features/alerts/AlertReportModal.tsx](https://app.codecov.io/gh/apache/superset/pull/29333?src=pr=tree=superset-frontend%2Fsrc%2Ffeatures%2Falerts%2FAlertReportModal.tsx_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2ZlYXR1cmVzL2FsZXJ0cy9BbGVydFJlcG9ydE1vZGFsLnRzeA==)
 | 55.55% | [12 Missing and 4 partials :warning: 
](https://app.codecov.io/gh/apache/superset/pull/29333?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 |
   | 
[superset/commands/report/execute.py](https://app.codecov.io/gh/apache/superset/pull/29333?src=pr=tree=superset%2Fcommands%2Freport%2Fexecute.py_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache#diff-c3VwZXJzZXQvY29tbWFuZHMvcmVwb3J0L2V4ZWN1dGUucHk=)
 | 0.00% | [1 Missing :warning: 
](https://app.codecov.io/gh/apache/superset/pull/29333?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 |
   | 
[superset/daos/report.py](https://app.codecov.io/gh/apache/superset/pull/29333?src=pr=tree=superset%2Fdaos%2Freport.py_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache#diff-c3VwZXJzZXQvZGFvcy9yZXBvcnQucHk=)
 | 66.66% | [1 Missing :warning: 
](https://app.codecov.io/gh/apache/superset/pull/29333?src=pr=tree_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 |
   
   Additional details and impacted files
   
   
   ```diff
   @@Coverage Diff @@
   ##   master   #29333  +/-   ##
   ==
   + Coverage   60.48%   61.40%   +0.91% 
   ==
 Files1931 1969  +38 
 Lines   7623678911+2675 
 Branches 8568 8998 +430 
   ==
   + Hits4611448452+2338 
   - Misses  2801728257 +240 
   - Partials 2105 2202  +97 
   ```
   
   | 
[Flag](https://app.codecov.io/gh/apache/superset/pull/29333/flags?src=pr=flags_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 | Coverage Δ | |
   |---|---|---|
   | 
[hive](https://app.codecov.io/gh/apache/superset/pull/29333/flags?src=pr=flag_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 | `49.07% <24.32%> (-0.09%)` | :arrow_down: |
   | 
[presto](https://app.codecov.io/gh/apache/superset/pull/29333/flags?src=pr=flag_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 | `53.63% <24.32%> (-0.18%)` | :arrow_down: |
   | 
[python](https://app.codecov.io/gh/apache/superset/pull/29333/flags?src=pr=flag_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 | `64.94% <24.32%> (+1.45%)` | :arrow_up: |
   | 
[unit](https://app.codecov.io/gh/apache/superset/pull/29333/flags?src=pr=flag_medium=referral_source=github_content=comment_campaign=pr+comments_term=apache)
 | `59.85% <24.32%> (+2.23%)` | :arrow_up: |
   
   Flags with carried forward coverage won't be shown. [Click 

Re: [PR] DO NOT MERGE: test 4.1 release [superset]

2024-07-24 Thread via GitHub


github-actions[bot] commented on PR #29693:
URL: https://github.com/apache/superset/pull/29693#issuecomment-2249100889

   @eschutho Ephemeral environment spinning up at http://35.91.219.2:8080. 
Credentials are `admin`/`admin`. Please allow several minutes for bootstrapping 
and startup.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] DO NOT MERGE: test 4.1 release [superset]

2024-07-24 Thread via GitHub


eschutho commented on PR #29693:
URL: https://github.com/apache/superset/pull/29693#issuecomment-2249091221

   /testenv up


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



[PR] DO NOT MERGE: test 4.1 release [superset]

2024-07-24 Thread via GitHub


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

   
   
   ### SUMMARY
   
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   
   
   ### TESTING INSTRUCTIONS
   
   
   ### ADDITIONAL INFORMATION
   
   
   - [ ] Has associated issue:
   - [ ] 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-unsubscr...@superset.apache.org

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


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



Re: [PR] chore: Add the 4.1 release notes [superset]

2024-07-24 Thread via GitHub


sadpandajoe commented on PR #29262:
URL: https://github.com/apache/superset/pull/29262#issuecomment-2249045316

   ️ 4.1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] Cag/initial setup [superset]

2024-07-24 Thread via GitHub


Ian2012 closed pull request #29689: Cag/initial setup
URL: https://github.com/apache/superset/pull/29689


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] Cag/initial setup [superset]

2024-07-24 Thread via GitHub


request-info[bot] commented on PR #29689:
URL: https://github.com/apache/superset/pull/29689#issuecomment-2248788219

   We would appreciate it if you could provide us with more info about this 
issue/pr! Please do not leave the `title` or `description` empty.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



[PR] Cag/initial setup [superset]

2024-07-24 Thread via GitHub


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

   (no comment)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



[PR] fix(ci): release process for labeling PRs [superset]

2024-07-24 Thread via GitHub


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

   It appears the CI script that runs on-release to label PRs isn't working
   as expected. Here I'm taking the `supersetbot` command out of the matrix
   and running it in parallel with the docker image publication.
   
   Tested with:
   ```
   gh workflow run tag-release.yml --ref fix_release_tags --field
   release="4.0.2" --field git-ref="4.0.2" --field force-latest="true"
   ```
   
   Test run:
   ```
   
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



[PR] [WIP] SEC-70 - Gamma users shouldn't be able to create roles [superset]

2024-07-24 Thread via GitHub


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

   
   
   ### SUMMARY
   
   Currently users with gamma roles are still able to create roles when 
FAB_ADD_SECURITY_API = True, This PR is made to fix this security issue as well 
as add test
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   
   
   ### TESTING INSTRUCTIONS
   
   
   ### ADDITIONAL INFORMATION
   
   
   - [ ] Has associated issue:
   - [ ] 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-unsubscr...@superset.apache.org

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


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



Re: [I] Superset 3.0 not able to login, cookies are being set as secure even though the site is http. [superset]

2024-07-24 Thread via GitHub


aartisethi05 commented on issue #25374:
URL: https://github.com/apache/superset/issues/25374#issuecomment-2248621001

   How to get session_cookie?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] superset_node build failure @nx/nx-linux-x64-gnu missing module [superset]

2024-07-24 Thread via GitHub


bobular commented on issue #29658:
URL: https://github.com/apache/superset/issues/29658#issuecomment-2248552272

   I got this too.
   
   Manually adding it as a devDependency seems to work as a workaround for me. 
Though I am still having problems logging in as admin/admin.
   
   ```diff
   diff --git a/superset-frontend/package.json b/superset-frontend/package.json
   index bb7a2face8..bba6bef5a7 100644
   --- a/superset-frontend/package.json
   +++ b/superset-frontend/package.json
   @@ -226,6 +226,7 @@
"@emotion/jest": "^11.11.0",
"@hot-loader/react-dom": "^16.14.0",
"@istanbuljs/nyc-config-typescript": "^1.0.1",
   +"@nx/nx-linux-x64-gnu": "^18.3.5",
"@storybook/addon-actions": "^8.1.11",
"@storybook/addon-controls": "^8.1.11",
"@storybook/addon-essentials": "^8.1.11",
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] refactor(ChartCreation): Migrate tests to RTL [superset]

2024-07-24 Thread via GitHub


michael-s-molina commented on code in PR #29674:
URL: https://github.com/apache/superset/pull/29674#discussion_r1690183088


##
superset-frontend/src/pages/ChartCreation/ChartCreation.test.tsx:
##
@@ -59,94 +73,113 @@ const mockUserWithDatasetWrite: 
UserWithPermissionsAndRoles = {
   username: 'admin',
   isAnonymous: false,
 };
+const history = createMemoryHistory();
+
+history.push = jest.fn();
 
 // We don't need the actual implementation for the tests

Review Comment:
   Can we remove this?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] fix(explore): missing column autocomplete in custom SQL [superset]

2024-07-24 Thread via GitHub


michael-s-molina commented on code in PR #29672:
URL: https://github.com/apache/superset/pull/29672#discussion_r1690124530


##
superset-frontend/src/components/AsyncAceEditor/index.tsx:
##
@@ -167,15 +172,66 @@ export default function AsyncAceEditor(
 }, [keywords, setCompleters]);
 
 return (
-  
+  <>
+

[PR] fix: Removed fixed width constraint from Save button [superset]

2024-07-24 Thread via GitHub


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

   ### SUMMARY
   Currently, "Save" button in SQL Lab has fixed width. So, longer labels are 
trimmed. This is an attempt to fix that.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   English / before:
   https://github.com/user-attachments/assets/bbac39de-a4ac-4e42-86b6-0d9dc0e34933;>
   
   English / after:
   https://github.com/user-attachments/assets/90d31b2c-94d3-44f5-8535-b1fc705c956b;>
   
   Russian / before:
   https://github.com/user-attachments/assets/37fd718b-3a41-4456-b865-a6fcd3f4b4f8;>
   
   Russian / after:
   https://github.com/user-attachments/assets/9b971dcc-5f09-4ffd-ad37-828522d7eadb;>
   
   ### TESTING INSTRUCTIONS
   Switch to any language that has long "Save" button translation. Russian, for 
example.
   
   ### ADDITIONAL INFORMATION
   - [x] Has associated issue: Fixes #29477
   - [ ] Required feature flags:
   - [x] 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-unsubscr...@superset.apache.org

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


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



Re: [I] Dev-server page isn't rendered [superset]

2024-07-24 Thread via GitHub


goldjee commented on issue #29677:
URL: https://github.com/apache/superset/issues/29677#issuecomment-2247962416

   Ah, I see. Yep, internal LAN IP worked.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] fix: Redirect to login on unauthorised access for Dashboard. [superset]

2024-07-24 Thread via GitHub


sfirke commented on PR #23280:
URL: https://github.com/apache/superset/pull/23280#issuecomment-2247963798

   I played with this a little and think I have a solution that works for me.  
I edited where the redirect goes after access check fails when user is 
anonymous.  I replaced 
https://github.com/apache/superset/blob/master/superset/views/core.py#L794-L799 
with:
   ```python
   except SupersetSecurityException as ex:
   # anonymous users should get the login screen, others should go 
to dashboard list
   redirect_url = 
f"{appbuilder.get_url_for_login}?next={request.url}" if g.user is None or 
g.user.is_anonymous else "/dashboard/list/"
   warn_msg = "This dashboard does not allow public access." if 
g.user is None or g.user.is_anonymous else utils.error_msg_from_exception(ex)
   return redirect_with_flash(
   url=redirect_url,
   message=warn_msg,
   category="danger",
   )
   ```
   Thoughts from folks in this thread?  I have DASHBOARD_RBAC enabled and a 
Public role enabled, I'd want to know that it works for people not using those 
features.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] Dev-server page isn't rendered [superset]

2024-07-24 Thread via GitHub


michael-s-molina commented on issue #29677:
URL: https://github.com/apache/superset/issues/29677#issuecomment-2247957755

   Not 127.0.0.1, your real IP such as 192


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] Dev-server page isn't rendered [superset]

2024-07-24 Thread via GitHub


goldjee commented on issue #29677:
URL: https://github.com/apache/superset/issues/29677#issuecomment-2247955014

   > Hi @goldjee. I also noticed this problem but haven't had the time to take 
a look. I hope other maintainers can fix it. In the meantime, I discovered that 
it works on Chrome if you use the IP address instead of `localhost`.
   
   Hi! Thank you for the suggestion. Just tried `http://127.0.0.1:9000` and had 
the same result :(


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



[I] Labels of Advanced analytics stats in the chart legend can't be changed [superset]

2024-07-24 Thread via GitHub


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

   ## Screenshot
   
   
![image](https://github.com/user-attachments/assets/b31bcdcf-88da-49d5-b784-086269ba7a50)
   
   ## Description
   
   The labels that appear in the chart legend for Advanced analytics cant be 
changed and are just the Metric name prefixed with "percentage_", etc. 
   
   I'd like to either add a way for the user to set the labels for themselves 
in the UI, or change them so they look less like "raw".  For example 
"Percentage of" or just "Percentage
   
   ## Design input
   I´d like to solve the issue myself, but would like some codepointers to 
begin. 
   Thanks! 
   
   `design:suggest`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org.apache.org

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


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



Re: [I] Dev-server page isn't rendered [superset]

2024-07-24 Thread via GitHub


michael-s-molina commented on issue #29677:
URL: https://github.com/apache/superset/issues/29677#issuecomment-2247750247

   Let me tag @geido @rusackas as the leaders of dev experience group.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] Dev-server page isn't rendered [superset]

2024-07-24 Thread via GitHub


michael-s-molina commented on issue #29677:
URL: https://github.com/apache/superset/issues/29677#issuecomment-2247747841

   Hi @goldjee. I also noticed this problem but haven't had the time to take a 
look. Hope other maintainers can fix it. In the meantime, I discovered that it 
works on Chrome if you use the IP address instead of `localhost`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] Dev-server page isn't rendered [superset]

2024-07-24 Thread via GitHub


goldjee commented on issue #29677:
URL: https://github.com/apache/superset/issues/29677#issuecomment-2247696157

   @monsterkai233 Hi! Good tip, Safari works. But I'm much more used to Chrome 
dev tools, so it would be great if maintainers could take a look.
   
   @rusackas @michael-s-molina 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] apache/superset latest 7502beb92ce5, load_examples -> dashboards not creating for me [superset]

2024-07-24 Thread via GitHub


dbaltor commented on issue #24521:
URL: https://github.com/apache/superset/issues/24521#issuecomment-224769

   Can we get this issue reopened please?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



[PR] Geido/fix/refresh catalogs on db update [superset]

2024-07-24 Thread via GitHub


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

   
   
   ### SUMMARY
   
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   
   
   ### TESTING INSTRUCTIONS
   
   
   ### ADDITIONAL INFORMATION
   
   
   - [ ] Has associated issue:
   - [ ] 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-unsubscr...@superset.apache.org

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


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



Re: [I] Dev-server page isn't rendered [superset]

2024-07-24 Thread via GitHub


monsterkai233 commented on issue #29677:
URL: https://github.com/apache/superset/issues/29677#issuecomment-2247349176

   @goldjee hi bro, I use safari and it's working fine


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] Dev-server page isn't rendered [superset]

2024-07-24 Thread via GitHub


dosubot[bot] commented on issue #29677:
URL: https://github.com/apache/superset/issues/29677#issuecomment-2247331220

   
   To fix the issue of a broken page and garbled text when running the Superset 
development server at `http://localhost:9000`, ensure that the Webpack dev 
server is running in parallel with the Flask server. Follow these steps:
   
   1. **Run the Flask server on port `8088`:**
  ```bash
  superset run -p 8088 --with-threads --reload --debugger --debug
  ```
   
   2. **Run the Webpack dev server on port `9000`:**
  ```bash
  npm run dev-server
  ```
   
   3. **Access the application via `http://localhost:9000` in your web 
browser.**
   
   This setup ensures that the front-end assets are served correctly by the 
Webpack dev server while backend requests are proxied to the Flask server 
[[1]](https://github.com/apache/superset/blob/master/docs/docs/contributing/development.mdx).
   
   
   
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] Dev-server page isn't rendered [superset]

2024-07-24 Thread via GitHub


monsterkai233 commented on issue #29677:
URL: https://github.com/apache/superset/issues/29677#issuecomment-2247326839

   > 不,它没有用。
   
   I tried the same thing and it didn't work


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] Garbled characters on the agent page in the development environment以上翻译结果来自有道神经网络翻译(YNMT)· 通用场景 [superset]

2024-07-24 Thread via GitHub


monsterkai233 commented on issue #29678:
URL: https://github.com/apache/superset/issues/29678#issuecomment-2247323420

   > 嗨,你好!我在这里帮助您解决任何错误、问题或贡献。让我们一起解决这个问题,同时等待人工维护者。
   > 
   > 出现乱码可能是由于 Webpack 开发服务器未运行。要解决此问题,请确保 Webpack 开发服务器与 Flask 
服务器并行启动。步骤如下:`localhost:9000`
   > 
   > 1. 在端口上启动 Flask 服务器:`8088`
   >```shell
   >superset run -p 8088 --with-threads --reload --debugger --debug
   >```
   > 2. 同时,在端口上启动 Webpack 开发服务器:`9000`
   >```shell
   >npm run dev-server
   >```
   > 
   > 在您的 Web 浏览器中访问。此设置可确保前端资产得到正确服务和热重新加载,同时后端请求被代理到在端口上运行的 Flask 
服务器`http://localhost:9000``8088` 
[[1]](https://github.com/apache/superset/blob/master/docs/docs/contributing/development.mdx).
   > 
   > 
如果问题仍然存在,请检查文件是否存在与端口、公共路径或代理设置相关的任何错误配置`webpack.config.js`[[2]](https://github.com/apache/superset/blob/master/superset-frontend/webpack.config.js).
   > 
   > _要继续与 [Dosu](https://dosu.dev) 交谈,请提及 。_
   
   My webpack.config.js correctly configured, bug is same 
[https://github.com/apache/superset/issues/29677](url)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] Dev-server page isn't rendered [superset]

2024-07-24 Thread via GitHub


goldjee commented on issue #29677:
URL: https://github.com/apache/superset/issues/29677#issuecomment-2247306916

   @dosu Nope, it didn't work.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] Garbled characters on the agent page in the development environment以上翻译结果来自有道神经网络翻译(YNMT)· 通用场景 [superset]

2024-07-24 Thread via GitHub


dosubot[bot] commented on issue #29678:
URL: https://github.com/apache/superset/issues/29678#issuecomment-224732

   
   @monsterkai233 Hello there! I'm here to help you with any bugs, questions, 
or contributions. Let's tackle this issue together while we wait for a human 
maintainer.
   
   
   The garbled characters on `localhost:9000` are likely due to the Webpack dev 
server not running. To resolve this, ensure that the Webpack dev server is 
started in parallel with the Flask server. Here are the steps:
   
   1. Start the Flask server on port `8088`:
  ```bash
  superset run -p 8088 --with-threads --reload --debugger --debug
  ```
   
   2. In parallel, start the Webpack dev server on port `9000`:
  ```bash
  npm run dev-server
  ```
   
   Access `http://localhost:9000` in your web browser. This setup ensures that 
the frontend assets are properly served and hot-reloaded, while backend 
requests are proxied to the Flask server running on port `8088` 
[[1]](https://github.com/apache/superset/blob/master/docs/docs/contributing/development.mdx).
   
   If the issue persists, check the `webpack.config.js` file for any 
misconfigurations related to the port, public path, or proxy settings 
[[2]](https://github.com/apache/superset/blob/master/superset-frontend/webpack.config.js).
   
   
   
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



[I] Garbled characters on the agent page in the development environment以上翻译结果来自有道神经网络翻译(YNMT)· 通用场景 [superset]

2024-07-24 Thread via GitHub


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

   ### Bug description
   
   localhost:8088 display normal, but localhost:9000 display garbled code
   
![image](https://github.com/user-attachments/assets/dcd408e2-d31f-4799-8646-a695b72ebc60)
   
![image](https://github.com/user-attachments/assets/1e8c017e-bbb7-4f60-b5f0-0fcbdc466eb8)
   
   
   ### How to reproduce the bug
   
   node: 18.19.1
   superset: 4.0.1
   https://superset.apache.org/docs/contributing/development/#webpack-dev-server
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.11
   
   ### Node version
   
   18 or greater
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org.apache.org

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


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



Re: [I] Dev-server page isn't rendered [superset]

2024-07-24 Thread via GitHub


dosubot[bot] commented on issue #29677:
URL: https://github.com/apache/superset/issues/29677#issuecomment-2247285886

   
   To address the issue of the broken page and garbled text when running the 
Superset development server at `http://localhost:9000`, you can follow these 
steps to ensure the correct character encoding is set:
   
   1. **Set Environment Variables:**
  Ensure that the environment variables for character encoding are set 
correctly. Add the following lines to your shell configuration file (e.g., 
`.bashrc`, `.zshrc`):
   
  ```bash
  export LC_ALL=en_US.UTF-8
  export LANG=en_US.UTF-8
  ```
   
  After adding these lines, reload your shell configuration:
   
  ```bash
  source ~/.bashrc  # or source ~/.zshrc
  ```
   
   2. **Check Flask Configuration:**
  Ensure that Flask is configured to use the correct character encoding. 
Add the following line to your `superset_config.py` file:
   
  ```python
  JSON_AS_ASCII = False
  ```
   
   3. **Restart the Servers:**
  After making these changes, restart both the Flask server and the Webpack 
dev server:
   
  ```bash
  # Restart Flask server
  superset run -p 8088 --with-threads --reload --debugger --debug
   
  # Restart Webpack dev server
  npm run dev-server
  ```
   
   These steps should help resolve the issue of garbled text due to incorrect 
character encoding 
[[1]](https://github.com/apache/superset/blob/master/docs/docs/contributing/development.mdx).
   
   
   
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



[I] Dev-server page isn't rendered [superset]

2024-07-24 Thread via GitHub


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

   ### Bug description
   
   After installing all dependencies and running dev-server, I get broken page 
at `http://localhost:9000`.
   
   I've found the same very old issue 
[#12040](https://github.com/apache/superset/issues/12040). The author supposed 
that it is specific to Chrome. But both Chrome and Firefox show broken page. 
Also it's worth mentioning that, as far as I see, there are no related errors 
in terminal or console output.
   
   ### How to reproduce the bug
   
   1. Install Superset without Docker
   
   ```bash
   source venv/bin/activate
   pip install -r requirements/development.txt
   pip install -e .
   
   cd superset-frontend
   npm ci
   ```
   
   2. Run Superset
   
   ```bash
   export SUPERSET_CONFIG_PATH=./docker/pythonpath_dev/superset_config_local.py
   superset run -p 8088 --with-threads --reload
   ```
   
   3. Run development server
   
   ```bash
   npm run dev-server
   ```
   
   4. Navigate to http://localhost:9000
   
   ### Screenshots/recordings
   
   https://github.com/user-attachments/assets/674a8225-2388-4c1a-802c-020b908678e6;>
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.11
   
   ### Node version
   
   18 or greater
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   node.js version: `18.20.4` (same error on `22.5.1`)
   
   ### Checklist
   
   - [X] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [X] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org.apache.org

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


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



Re: [I] Cannot get back asyncquery result [superset]

2024-07-24 Thread via GitHub


dosubot[bot] commented on issue #29676:
URL: https://github.com/apache/superset/issues/29676#issuecomment-2247151200

   
   @oOhyeahh Hello there! I'm here to help you with your Superset issue. I can 
assist with bug troubleshooting, answer questions, and guide you on becoming a 
contributor. Let's work together to resolve your concerns.
   
   
   To resolve the "Cannot read properties of undefined (reading 'forEach')" 
error on the frontend when enabling the global async query feature flag in 
Superset, ensure that the `events` parameter passed to the `processEvents` 
function is defined and is an array.
   
   The error occurs because `events` is `undefined` or not an array, and the 
`forEach` method cannot be called on it. You can add a check to ensure `events` 
is defined and is an array before calling `forEach`.
   
   Here is the modified `processEvents` function with the necessary check:
   
   ```ts
   export const processEvents = async (events: AsyncEvent[]) => {
 if (!Array.isArray(events)) {
   logging.warn('Expected events to be an array, but got:', events);
   return;
 }
   
 events.forEach((asyncEvent: AsyncEvent) => {
   const jobId = asyncEvent.job_id;
   const listener = listenersByJobId[jobId];
   if (listener) {
 listener(asyncEvent);
 delete retriesByJobId[jobId];
   } else {
 // handle race condition where event is received
 // before listener is registered
 if (!retriesByJobId[jobId]) retriesByJobId[jobId] = 0;
 retriesByJobId[jobId] += 1;
   
 if (retriesByJobId[jobId] <= MAX_RETRIES) {
   setTimeout(() => {
 processEvents([asyncEvent]);
   }, RETRY_DELAY * retriesByJobId[jobId]);
 } else {
   delete retriesByJobId[jobId];
   logging.warn('listener not found for job_id', asyncEvent.job_id);
 }
   }
   setLastId(asyncEvent);
 });
   };
   ```
   
   Additionally, you can refer to the `updateComponentParentsList` function in 
`superset-frontend/src/dashboard/util/updateComponentParentsList.test.js` for 
handling invalid parameters gracefully. This function includes checks to ensure 
that parameters are valid and does not throw errors when they are not, which 
can be a useful pattern to follow:
   
   ```js
   describe('updateComponentParentsList with bad inputs', () => {
 it('should handle invalid parameters and not throw error', () => {
   updateComponentParentsList({
 currentComponent: undefined,
 layout: undefined,
   });
   
   expect(() =>
 updateComponentParentsList({
   currentComponent: undefined,
   layout: undefined,
 }),
   ).not.toThrow();
   
   expect(() =>
 updateComponentParentsList({
   currentComponent: {},
   layout: undefined,
 }),
   ).not.toThrow();
   
   expect(() =>
 updateComponentParentsList({
   currentComponent: {},
   layout: null,
 }),
   ).not.toThrow();
   
   expect(() =>
 updateComponentParentsList({
   currentComponent: { id: 'id3', children: ['id1', 'id2'] },
   layout: { id3: {} },
 }),
   ).not.toThrow();
   
   expect(() =>
 updateComponentParentsList({
   currentComponent: { id: 'id3' },
   layout: { id3: {} },
 }),
   ).not.toThrow();
   
   expect(() =>
 updateComponentParentsList({
   currentComponent: { id: 'id3' },
   layout: {},
 }),
   ).not.toThrow();
 });
   });
   ```
   
   This approach ensures that your code handles unexpected inputs gracefully 
and avoids runtime errors 
[[1]](https://github.com/apache/superset/blob/master/superset-frontend/src/middleware/asyncEvent.ts)[[2]](https://github.com/apache/superset/blob/master/superset-frontend/src/dashboard/util/updateComponentParentsList.test.js).
   
   
   
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



[I] Cannot get back asyncquery result [superset]

2024-07-24 Thread via GitHub


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

   ### Bug description
   
   I try to use global async query feature flag but I keep getting this error 
on the frontend. 
   ```
   Cannot read properties of undefined (reading 'forEach')
   ```
   
   Here's part of my set up in superset config.py
   ```
   FEATURE_FLAGS = {
   "GLOBAL_ASYNC_QUERIES": True,
   }
   
   # 
   # CACHE CONFIG
   # 
   twelve_hour_seconds = 60 * 60 * 12
   REDIS_HOST = os.environ.get("REDIS_HOST")
   REDIS_PORT = 6379
   CACHE_CONFIG = {
   "CACHE_TYPE": "RedisCache",
   "CACHE_DEFAULT_TIMEOUT": twelve_hour_seconds,
   "CACHE_KEY_PREFIX": "s_results_",
   "CACHE_REDIS_URL": f"redis://{REDIS_HOST}:6379/0",
   }
   # Cache for datasource metadata and query results
   DATA_CACHE_CONFIG = {
   "CACHE_TYPE": "RedisCache",
   "CACHE_DEFAULT_TIMEOUT": twelve_hour_seconds,
   "CACHE_KEY_PREFIX": "s_data_",
   "CACHE_REDIS_URL": f"redis://{REDIS_HOST}:6379/1",
   }
   
   GLOBAL_ASYNC_QUERIES_JWT_SECRET = 
os.environ.get("GLOBAL_ASYNC_QUERIES_JWT_SECRET")
   
   GLOBAL_ASYNC_QUERIES_REDIS_CONFIG = {
   "port": REDIS_PORT,
   "host": REDIS_HOST,
   "db": 0,
   "ssl": False,
   }
   
   
   ### How to reproduce the bug
   
   Use the same config I post and go to any chart/dashboard. You should see the 
error 
   https://github.com/user-attachments/assets/390f3ebb-8621-4728-a6f9-f640b58bf853;>
   
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   3.1.3
   
   ### Python version
   
   3.11
   
   ### Node version
   
   Not applicable
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [X] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [X] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [X] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org.apache.org

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


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



Re: [PR] fix: Redirect to login on unauthorised access for Dashboard. [superset]

2024-07-23 Thread via GitHub


dheeraj281 commented on PR #23280:
URL: https://github.com/apache/superset/pull/23280#issuecomment-2246964074

   @sfirke Sure, I will take a look. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-23 Thread via GitHub


fisjac commented on code in PR #29096:
URL: https://github.com/apache/superset/pull/29096#discussion_r1689132290


##
superset-frontend/src/features/alerts/AlertReportModal.tsx:
##
@@ -887,6 +934,28 @@ const AlertReportModal: 
FunctionComponent = ({
   endpoint: `/api/v1/chart/${chart.value}`,
 }).then(response => setChartVizType(response.json.result.viz_type));
 
+  const updateEmailSubject = () => {
+if (contentType === 'chart') {
+  if (currentAlert?.name || currentAlert?.chart?.label) {
+setEmailSubject(
+  `${currentAlert?.name}: ${currentAlert?.chart?.label || ''}`,

Review Comment:
   Made the code more readable in the latest commit.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-23 Thread via GitHub


fisjac commented on code in PR #29096:
URL: https://github.com/apache/superset/pull/29096#discussion_r1689133004


##
superset-frontend/src/features/alerts/AlertReportModal.tsx:
##
@@ -776,6 +804,25 @@ const AlertReportModal: 
FunctionComponent = ({
 [],
   );
 
+  const dashboard = currentAlert?.dashboard;
+  useEffect(() => {
+if (!tabsEnabled) return;
+
+if (dashboard?.value) {
+  SupersetClient.get({

Review Comment:
   Added a `.catch()` with `dangerToast`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-23 Thread via GitHub


fisjac commented on code in PR #29096:
URL: https://github.com/apache/superset/pull/29096#discussion_r1689132412


##
superset-frontend/src/features/alerts/AlertReportModal.tsx:
##
@@ -887,6 +934,28 @@ const AlertReportModal: 
FunctionComponent = ({
   endpoint: `/api/v1/chart/${chart.value}`,
 }).then(response => setChartVizType(response.json.result.viz_type));
 
+  const updateEmailSubject = () => {
+if (contentType === 'chart') {
+  if (currentAlert?.name || currentAlert?.chart?.label) {
+setEmailSubject(
+  `${currentAlert?.name}: ${currentAlert?.chart?.label || ''}`,
+);
+  } else {
+setEmailSubject('');
+  }
+} else if (contentType === 'dashboard') {
+  if (currentAlert?.name || currentAlert?.dashboard?.label) {
+setEmailSubject(
+  `${currentAlert?.name}: ${currentAlert?.dashboard?.label || ''}`,
+);
+  } else {
+setEmailSubject('');

Review Comment:
   implemented switch



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-23 Thread via GitHub


fisjac commented on code in PR #29096:
URL: https://github.com/apache/superset/pull/29096#discussion_r1689131757


##
superset-frontend/src/features/alerts/AlertReportModal.tsx:
##
@@ -646,14 +674,14 @@ const AlertReportModal: 
FunctionComponent = ({
   ),
   recipients,
   report_format: reportFormat || DEFAULT_NOTIFICATION_FORMAT,
+  extra: contentType === 'dashboard' ? currentAlert?.extra : null,

Review Comment:
   I've added a `ContentType` Enum in the latest commit to address this. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-23 Thread via GitHub


fisjac commented on code in PR #29096:
URL: https://github.com/apache/superset/pull/29096#discussion_r1689124652


##
superset-frontend/src/features/alerts/AlertReportModal.tsx:
##
@@ -593,6 +605,22 @@ const AlertReportModal: 
FunctionComponent = ({
 setNotificationAddState('active');
   };
 
+  const updateAnchorState = (value: any) => {

Review Comment:
   Ideally, I'd like for this to be typed as  `string | undefined`, but I'm 
running into issues from antd's typing for the `onSelect` prop which is typed 
as `'RawValueType | LabelValueType'` and throws an error on compile when typed 
as such. I've used any as a workaround.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-23 Thread via GitHub


fisjac commented on code in PR #29096:
URL: https://github.com/apache/superset/pull/29096#discussion_r1689124652


##
superset-frontend/src/features/alerts/AlertReportModal.tsx:
##
@@ -593,6 +605,22 @@ const AlertReportModal: 
FunctionComponent = ({
 setNotificationAddState('active');
   };
 
+  const updateAnchorState = (value: any) => {

Review Comment:
   Ideally, I'd like for this to be typed as  `string | undefined`, but I'm 
running into issues from antd's typing for the `onSelect` prop which is typed 
as `'RawValueType | LabelValueType'` and throws an error on compile when typed 
as such. I've used `any` as a workaround.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] SECRET KEY ERROR [superset]

2024-07-23 Thread via GitHub


ylq5126 commented on issue #29619:
URL: https://github.com/apache/superset/issues/29619#issuecomment-2246816660

   > Hi @dosu now i set this value, but i have another errors:
   > 
   > SESSION_TYPE = "redis" SESSION_REDIS = 
Redis(host="superset-redis-prod-01", port=6379, db=0) SESSION_USE_SIGNER = True 
SESSION_COOKIE_SECURE = True SESSION_COOKIE_HTTPONLY = True 
SESSION_COOKIE_SAMESITE = "Lax"
   > 
   > ```
   > 
   > superset-prod-01  | Exception on / [GET]
   > superset-prod-01  | Traceback (most recent call last):
   > superset-prod-01  |   File 
"/usr/local/lib/python3.9/site-packages/flask/app.py", line 2529, in wsgi_app
   > superset-prod-01  | response = self.full_dispatch_request()
   > superset-prod-01  |   File 
"/usr/local/lib/python3.9/site-packages/flask/app.py", line 1826, in 
full_dispatch_request
   > superset-prod-01  | return self.finalize_request(rv)
   > superset-prod-01  |   File 
"/usr/local/lib/python3.9/site-packages/flask/app.py", line 1847, in 
finalize_request
   > superset-prod-01  | response = 
self.process_response(response)
   > superset-prod-01  |   File 
"/usr/local/lib/python3.9/site-packages/flask/app.py", line 2344, in 
process_response
   > superset-prod-01  | 
self.session_interface.save_session(self, ctx.session, response)
   > superset-prod-01  |   File 
"/usr/local/lib/python3.9/site-packages/flask_session/sessions.py", line 164, 
in save_session
   > superset-prod-01  | 
response.set_cookie(app.config["SESSION_COOKIE_NAME"], session_id,
   > superset-prod-01  |   File 
"/usr/local/lib/python3.9/site-packages/werkzeug/sansio/response.py", line 224, 
in set_cookie
   > superset-prod-01  | dump_cookie(
   > superset-prod-01  |   File 
"/usr/local/lib/python3.9/site-packages/werkzeug/http.py", line 1303, in 
dump_cookie
   > superset-prod-01  | if not 
_cookie_no_quote_re.fullmatch(value):
   > superset-prod-01  | TypeError: cannot use a string pattern on 
a bytes-like object
   > superset-prod-01  | 2024-07-17 
12:20:45,421:ERROR:superset.app:Exception on / [GET]
   > superset-prod-01  | Traceback (most recent call last):
   > superset-prod-01  |   File 
"/usr/local/lib/python3.9/site-packages/flask/app.py", line 2529, in wsgi_app
   > superset-prod-01  | response = self.full_dispatch_request()
   > superset-prod-01  |   File 
"/usr/local/lib/python3.9/site-packages/flask/app.py", line 1826, in 
full_dispatch_request
   > superset-prod-01  | return self.finalize_request(rv)
   > superset-prod-01  |   File 
"/usr/local/lib/python3.9/site-packages/flask/app.py", line 1847, in 
finalize_request
   > superset-prod-01  | response = 
self.process_response(response)
   > superset-prod-01  |   File 
"/usr/local/lib/python3.9/site-packages/flask/app.py", line 2344, in 
process_response
   > superset-prod-01  | 
self.session_interface.save_session(self, ctx.session, response)
   > superset-prod-01  |   File 
"/usr/local/lib/python3.9/site-packages/flask_session/sessions.py", line 164, 
in save_session
   > superset-prod-01  | 
response.set_cookie(app.config["SESSION_COOKIE_NAME"], session_id,
   > superset-prod-01  |   File 
"/usr/local/lib/python3.9/site-packages/werkzeug/sansio/response.py", line 224, 
in set_cookie
   > superset-prod-01  | dump_cookie(
   > superset-prod-01  |   File 
"/usr/local/lib/python3.9/site-packages/werkzeug/http.py", line 1303, in 
dump_cookie
   > superset-prod-01  | if not 
_cookie_no_quote_re.fullmatch(value):
   > superset-prod-01  | TypeError: cannot use a string pattern on 
a bytes-like object
   > superset-prod-01  | Request finalizing failed with an error 
while handling an error
   > superset-prod-01  | Traceback (most recent call last):
   > superset-prod-01  |   File 
"/usr/local/lib/python3.9/site-packages/flask/app.py", line 2529, in wsgi_app
   > superset-prod-01  | response = self.full_dispatch_request()
   > superset-prod-01  |   File 
"/usr/local/lib/python3.9/site-packages/flask/app.py", line 1826, in 
full_dispatch_request
   > superset-prod-01  | return self.finalize_request(rv)
   > superset-prod-01  |   File 
"/usr/local/lib/python3.9/site-packages/flask/app.py", line 1847, in 
finalize_request
   > superset-prod-01  | response = 
self.process_response(response)
   > superset-prod-01  |   File 
"/usr/local/lib/python3.9/site-packages/flask/app.py", line 2344, in 
process_response
   > superset-prod-01  | 

Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-23 Thread via GitHub


github-actions[bot] commented on PR #29096:
URL: https://github.com/apache/superset/pull/29096#issuecomment-2246816337

   @yousoph Ephemeral environment spinning up at http://54.213.76.60:8080. 
Credentials are `admin`/`admin`. Please allow several minutes for bootstrapping 
and startup.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] SECRET KEY ERROR [superset]

2024-07-23 Thread via GitHub


ylq5126 commented on issue #29619:
URL: https://github.com/apache/superset/issues/29619#issuecomment-2246817696

   > The error "TypeError: cannot use a string pattern on a bytes-like object" 
indicates a mismatch between string and byte data types. To resolve this issue 
in your Superset application when using Redis for session management, ensure 
that the session data is properly encoded and decoded.
   > 
   > Here's how you can adjust your `superset_config.py` to handle this:
   > 
   > 1. **Ensure Proper Encoding and Decoding**:
   >Make sure that any data being stored or retrieved from the session is 
properly encoded to bytes or decoded to strings as needed.
   >```python
   >from redis import Redis
   >
   >SESSION_TYPE = "redis"
   >SESSION_REDIS = Redis(host="superset-redis-prod-01", port=6379, db=0)
   >SESSION_USE_SIGNER = True
   >SESSION_COOKIE_SECURE = True
   >SESSION_COOKIE_HTTPONLY = True
   >SESSION_COOKIE_SAMESITE = "Lax"
   >
   ># Example of encoding and decoding session data
   >def encode_data(data):
   >return data.encode('utf-8') if isinstance(data, str) else data
   >
   >def decode_data(data):
   >return data.decode('utf-8') if isinstance(data, bytes) else data
   >```
   > 2. **Check Session Data Handling**:
   >If you are manually handling session data, ensure that you encode 
strings to bytes before storing them in Redis and decode bytes to strings when 
retrieving them.
   >```python
   ># Example usage
   >session_data = "some string data"
   >encoded_session_data = encode_data(session_data)
   ># Store `encoded_session_data` in Redis
   >
   ># When retrieving
   >retrieved_data = decode_data(encoded_session_data)
   >```
   > 
   > By ensuring that the data types are correctly handled, you can avoid the 
"TypeError: cannot use a string pattern on a bytes-like object" error 
[[1]](https://github.com/apache/superset/blob/master/docs/docs/security/security.mdx).
   > 
   > _To continue talking to [Dosu](https://dosu.dev), mention @dosu._
   
   in docker 4.0.2-dev, werkzeug version not support bytes value


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-23 Thread via GitHub


yousoph commented on PR #29096:
URL: https://github.com/apache/superset/pull/29096#issuecomment-2246806856

   /testenv up FEATURE_ALERT_REPORTS=True FEATURE_ALERT_REPORT_TABS=True


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-23 Thread via GitHub


fisjac commented on code in PR #29096:
URL: https://github.com/apache/superset/pull/29096#discussion_r1689038571


##
superset-frontend/src/features/alerts/AlertReportModal.tsx:
##
@@ -887,6 +934,28 @@ const AlertReportModal: 
FunctionComponent = ({
   endpoint: `/api/v1/chart/${chart.value}`,
 }).then(response => setChartVizType(response.json.result.viz_type));
 
+  const updateEmailSubject = () => {
+if (contentType === 'chart') {
+  if (currentAlert?.name || currentAlert?.chart?.label) {
+setEmailSubject(
+  `${currentAlert?.name}: ${currentAlert?.chart?.label || ''}`,

Review Comment:
   This wasn't a piece of the code I was working in. I just moved this block up 
a few lines to avoid the `updateEmailSubject` being called before it's defined 
warnings.
   
   I can look more into 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-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-23 Thread via GitHub


fisjac commented on code in PR #29096:
URL: https://github.com/apache/superset/pull/29096#discussion_r1689038571


##
superset-frontend/src/features/alerts/AlertReportModal.tsx:
##
@@ -887,6 +934,28 @@ const AlertReportModal: 
FunctionComponent = ({
   endpoint: `/api/v1/chart/${chart.value}`,
 }).then(response => setChartVizType(response.json.result.viz_type));
 
+  const updateEmailSubject = () => {
+if (contentType === 'chart') {
+  if (currentAlert?.name || currentAlert?.chart?.label) {
+setEmailSubject(
+  `${currentAlert?.name}: ${currentAlert?.chart?.label || ''}`,

Review Comment:
   This wasn't a piece of the code I was working in. I just moved it up a few 
lines to avoid the `updateEmailSubject` being called before it's defined 
warnings.
   
   I can look more into 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-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-23 Thread via GitHub


fisjac commented on code in PR #29096:
URL: https://github.com/apache/superset/pull/29096#discussion_r1689035765


##
superset/commands/report/execute.py:
##
@@ -168,15 +168,15 @@ def _get_url(
 force=force,
 **kwargs,
 )
-
 # If we need to render dashboard in a specific state, use stateful 
permalink
-if dashboard_state := self._report_schedule.extra.get("dashboard"):
+if (
+dashboard_state := self._report_schedule.extra.get("dashboard")
+) and feature_flag_manager.is_feature_enabled("ALERT_REPORT_TABS"):

Review Comment:
   My rationale for hiding that functionality behind the `ALERT_REPORT_TABS` FF 
was that if a report was saved with an `extra` parameter, then the FF was 
turned off, there would no longer be an interface for viewing/updating the 
currently selected tab. It seemed more intuitive to have the behavior default 
to ignoring the `extra` parameter altogether while the FF was disabled.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



[PR] refactor(ChartCreation): Migrate tests to RTL [superset]

2024-07-23 Thread via GitHub


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

   
   
   ### SUMMARY
   
   Refactor the tests to use RTL and jest
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   
   
   ### TESTING INSTRUCTIONS
   
   
   ### ADDITIONAL INFORMATION
   
   
   - [ ] Has associated issue:
   - [ ] 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-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-23 Thread via GitHub


github-actions[bot] commented on PR #29096:
URL: https://github.com/apache/superset/pull/29096#issuecomment-2246628419

   @yousoph Ephemeral environment spinning up at http://54.213.240.222:8080. 
Credentials are `admin`/`admin`. Please allow several minutes for bootstrapping 
and startup.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-23 Thread via GitHub


yousoph commented on PR #29096:
URL: https://github.com/apache/superset/pull/29096#issuecomment-2246617001

   /testenv up FEATURE_ALERT_REPORTS=True FEATURE_ALERT_REPORT_TABS = True 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] chore: Add the 4.1 release notes [superset]

2024-07-23 Thread via GitHub


sadpandajoe commented on PR #29262:
URL: https://github.com/apache/superset/pull/29262#issuecomment-2246437671

   > This is a great start. I agree with Michael that #27950, that # and % both 
appear in tooltips, is worth highlighting. The metadata bar on top of dashboard 
(#27857) looks like it will display in embedded and standalone modes, which 
might be worth calling out so users of those features are aware.
   > 
   > #27497 and #28637 are not huge features code-wise but were often requested 
by the community. Those might be worth highlighting too but feel free to ignore 
if that makes the list too long.
   
   @sfirke I've added the changes requested in the latest commit.  


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] fix(chart): Sort By (Backend sorting) [superset]

2024-07-23 Thread via GitHub


yousoph commented on PR #27616:
URL: https://github.com/apache/superset/pull/27616#issuecomment-2246406885

   Hi @nelsondrew , thanks for the PR! Would you be able to add a test for this 
change? Thanks! 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] style: make form labels not uppercase [superset]

2024-07-23 Thread via GitHub


request-info[bot] commented on PR #29673:
URL: https://github.com/apache/superset/pull/29673#issuecomment-2246382425

   We would appreciate it if you could provide us with more info about this 
issue/pr! Please do not leave the `title` or `description` empty.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



[PR] style: make form labels not uppercase [superset]

2024-07-23 Thread via GitHub


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

   (no comment)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



[PR] fix(explore): missing column autocomplete in custom SQL [superset]

2024-07-23 Thread via GitHub


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

   ### SUMMARY
   The `keywords` field was missing in the Custom SQL editor of the column 
item, causing the autocomplete feature in the metrics field to be unavailable.
   This commit fills in the missing keywords field in the Column component and 
adds styling to the tooltip section of the autocomplete feature.
   
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   
   Before:
   
   
https://github.com/user-attachments/assets/96afae67-0cd1-4c4f-946a-9933276ae2f5
   
   After:
   
   
https://github.com/user-attachments/assets/c591b64d-0993-4971-8f11-9ee08ceecb2b
   
   
   ### TESTING INSTRUCTIONS
   Open a column selector in explore
   Click Custom SQL and type a column name
   
   ### ADDITIONAL INFORMATION
   
   
   - [ ] Has associated issue:
   - [ ] 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-unsubscr...@superset.apache.org

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


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



Re: [PR] refactor(sqllab): migrate share queries via kv by permalink [superset]

2024-07-23 Thread via GitHub


justinpark commented on PR #29163:
URL: https://github.com/apache/superset/pull/29163#issuecomment-2246355469

   @villebro @michael-s-molina could you take a look?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] Dependent filter selects first value independently of the filter it depends on, if it is set to "Select first filter value as default" [superset]

2024-07-23 Thread via GitHub


rusackas commented on issue #22979:
URL: https://github.com/apache/superset/issues/22979#issuecomment-2246259558

   > @rusackas I would like to take this issue.
   
   Sounds great! Good luck, and thank you in advance!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] refactor: Migration of Chart to TypeScript [superset]

2024-07-23 Thread via GitHub


eschutho commented on code in PR #28370:
URL: https://github.com/apache/superset/pull/28370#discussion_r1688649592


##
superset-frontend/src/components/Chart/Chart.tsx:
##
@@ -150,9 +153,16 @@ const MonospaceDiv = styled.div`
   overflow-x: auto;
   white-space: pre-wrap;
 `;
+class Chart extends React.PureComponent {
+  static defaultProps = defaultProps;
+
+  renderStartTime: any;

Review Comment:
   We can prob remove it and add it back in later if we find that we need 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-unsubscr...@superset.apache.org

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


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



Re: [PR] fix: remove old constraint [superset]

2024-07-23 Thread via GitHub


mistercrunch commented on PR #29649:
URL: https://github.com/apache/superset/pull/29649#issuecomment-2246151223

   Easiest option here seems like it'd be to add a `hold:next-major:migration` 
label (or similar) and defer


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] Jenijune13 build gunicorn and footer [superset]

2024-07-23 Thread via GitHub


mistercrunch closed pull request #29661: Jenijune13 build gunicorn and footer
URL: https://github.com/apache/superset/pull/29661


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] Jenijune13 build gunicorn and footer [superset]

2024-07-23 Thread via GitHub


mistercrunch commented on PR #29661:
URL: https://github.com/apache/superset/pull/29661#issuecomment-2246147167

   Seems like a mistake, closing... If the intention was to open a PR please 
re-open


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] fix: Redirect to login on unauthorised access for Dashboard. [superset]

2024-07-23 Thread via GitHub


sfirke commented on PR #23280:
URL: https://github.com/apache/superset/pull/23280#issuecomment-2246087244

   ping @dheeraj281 @dheeraj-jaiswal-lowes  - are you still interested in 
working on this fix?  The project would still benefit from 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-unsubscr...@superset.apache.org

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


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



Re: [I] apache/superset latest 7502beb92ce5, load_examples -> dashboards not creating for me [superset]

2024-07-23 Thread via GitHub


dbaltor commented on issue #24521:
URL: https://github.com/apache/superset/issues/24521#issuecomment-2245910423

   Thanks @rusackas for replying and apologies for not being able to look into 
this before. 
   I'm still facing the same issues with the examples after upgrading the helm 
chart to the latest version, `0.12.11` which deploys Superset 4.0.1 on 
Kubernetes. Given the @MohamedRhimii comments, I think the issue isn't with the 
code but rather with the installation process, in other words, it might well be 
with the helm chart.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] refactor(ProgressBar): Upgrade ProgressBar to Antd 5 [superset]

2024-07-23 Thread via GitHub


michael-s-molina commented on code in PR #29666:
URL: https://github.com/apache/superset/pull/29666#discussion_r1688441899


##
superset-frontend/src/theme/index.ts:
##
@@ -64,6 +64,11 @@ const baseConfig: ThemeConfig = {
   borderRadiusSM: supersetTheme.gridUnit / 2,
   defaultBg: supersetTheme.colors.grayscale.light4,
 },
+Progress: {
+  fontSize: supersetTheme.typography.sizes.s,

Review Comment:
   @geido Is it possible to specify these at the component?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] refactor(ProgressBar): Upgrade ProgressBar to Antd 5 [superset]

2024-07-23 Thread via GitHub


michael-s-molina commented on code in PR #29666:
URL: https://github.com/apache/superset/pull/29666#discussion_r1688439397


##
superset-frontend/src/components/ProgressBar/ProgressBar.stories.tsx:
##
@@ -24,37 +25,67 @@ export default {
 };
 
 export const InteractiveProgressBar = (args: ProgressBarProps) => (
-  
+  
+
+  
 );
 
-InteractiveProgressBar.args = {
+export const InteractiveProgressCircle = (args: ProgressBarProps) => (
+  

Review Comment:
   @geido Can't we include the `AntdThemeProvider` in the 
[preview.jsx](https://github.com/apache/superset/blob/master/superset-frontend/.storybook/preview.jsx)
 file?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] Jenijune13 build gunicorn and footer [superset]

2024-07-23 Thread via GitHub


michael-s-molina commented on PR #29661:
URL: https://github.com/apache/superset/pull/29661#issuecomment-2245807350

   @vinothkumar66 I believe this was opened by mistake? If so, could you close 
the 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-unsubscr...@superset.apache.org

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


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



Re: [I] Bar chart does not emit cross-filter if dimension is not set [superset]

2024-07-23 Thread via GitHub


smrodin commented on issue #25334:
URL: https://github.com/apache/superset/issues/25334#issuecomment-2245750610

   > > > If category axis is not a date,you can set like this.It works for me.
   > > > 
(https://github.com/apache/superset/assets/49085215/7f1cd5c8-2267-45fe-92f3-927ac9898486)
 
(https://github.com/apache/superset/assets/49085215/b404037f-c14f-46e4-a2e5-83343be0c4b5)
   > > 
   > > 
   > > Thanks, but when doing this, char bars get too narrow
   > 
   > Oh.. I forget...
   > 
   > In CUSTOMIZE, you need choose "STACK" option...
   
   It works like a champ, thanks for your support


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] refactor(ProgressBar): Upgrade ProgressBar to Antd 5 [superset]

2024-07-23 Thread via GitHub


geido merged PR #29666:
URL: https://github.com/apache/superset/pull/29666


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-23 Thread via GitHub


kgabryje commented on code in PR #29096:
URL: https://github.com/apache/superset/pull/29096#discussion_r1688277953


##
superset-frontend/src/features/alerts/AlertReportModal.tsx:
##
@@ -593,6 +605,22 @@ const AlertReportModal: 
FunctionComponent = ({
 setNotificationAddState('active');
   };
 
+  const updateAnchorState = (value: any) => {

Review Comment:
   Can we use more specific type?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] fix: Use default custom time range time without timezone [superset]

2024-07-23 Thread via GitHub


kgabryje merged PR #29669:
URL: https://github.com/apache/superset/pull/29669


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] Bar chart does not emit cross-filter if dimension is not set [superset]

2024-07-23 Thread via GitHub


felipegranado commented on issue #25334:
URL: https://github.com/apache/superset/issues/25334#issuecomment-2245345626

   > > If category axis is not a date,you can set like this.It works for me.
   > > 
(https://github.com/apache/superset/assets/49085215/7f1cd5c8-2267-45fe-92f3-927ac9898486)
 
(https://github.com/apache/superset/assets/49085215/b404037f-c14f-46e4-a2e5-83343be0c4b5)
   > 
   > Thanks, but when doing this, char bars get too narrow
   
   Oh.. I forget...
   
   In CUSTOMIZE, you need choose "STACK" option...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



[PR] fix: Use default custom time range time without timezone [superset]

2024-07-23 Thread via GitHub


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

   
   
   ### SUMMARY
   In custom time range filter, in specific mode, the default time would show 
UTC midnight adjusted to user's current timezone. This PR fixes that behaviour 
by using the time without timezone.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   Before:
   
   https://github.com/user-attachments/assets/9d7b57c2-0616-4b48-88a5-10e2dd49dc9d;>
   
   After:
   
   https://github.com/user-attachments/assets/c3f8dc00-5dab-455b-9f85-529a5d74ab9c;>
   
   
   ### TESTING INSTRUCTIONS
   1. Open explore and add a time range filter
   2. Open time range filter edit modal
   3. Select Custom -> Specific Date/Time
   4. Verify that the default value is the current day and the time is 00:00:00
   
   ### ADDITIONAL INFORMATION
   
   
   - [ ] Has associated issue:
   - [ ] 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-unsubscr...@superset.apache.org

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


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



Re: [PR] fix: Dashboard editable title weird behavior when adding spaces [superset]

2024-07-23 Thread via GitHub


kgabryje merged PR #29667:
URL: https://github.com/apache/superset/pull/29667


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-23 Thread via GitHub


kasiazjc commented on PR #29096:
URL: https://github.com/apache/superset/pull/29096#issuecomment-2245138614

   Functionality wise - looks good! Thanks @fisjac 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



[PR] fix: Dashboard editable title weird behavior when adding spaces [superset]

2024-07-23 Thread via GitHub


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

   
   
   ### SUMMARY
   When user added trailing spaces to dashboard's title in edit mode, the 
input's width wasn't updating as expected, causing weird behaviour (like in the 
recording). Adding `white-space: pre` style causes the trailing spaces to not 
be ignored by resize observers.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   Before:
   
   
https://github.com/user-attachments/assets/f081c0d2-5a9a-47af-8223-ec3ecabac38a
   
   After:
   
   
https://github.com/user-attachments/assets/3c225fbe-b1dc-47cb-b65b-5efc33089de1
   
   ### TESTING INSTRUCTIONS
   1. Open a dashboard in edit mode
   2. Add some trailing spaces to the suffix
   3. Verify that the input scales as expected
   
   ### ADDITIONAL INFORMATION
   
   
   - [ ] Has associated issue:
   - [ ] 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-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(dashboard): update tab drag and drop reordering with positional placement and indicators for UI [superset]

2024-07-23 Thread via GitHub


geido commented on PR #29395:
URL: https://github.com/apache/superset/pull/29395#issuecomment-2244985682

   Also, not sure if this worked like that before, but when you try to drag a 
selected tab, it will auto-select the next available tab on the right.
   
   Another issue is that as you drag and target a new tab, it will make the 
target tab selected.
   
   These create a lot of unnecessary movement of the tabs and the content which 
can be resource-intensive when you have a bunch of charts on top of being 
undesirable in terms of UX.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(dashboard): update tab drag and drop reordering with positional placement and indicators for UI [superset]

2024-07-23 Thread via GitHub


geido commented on PR #29395:
URL: https://github.com/apache/superset/pull/29395#issuecomment-2244975825

   A couple of visual feedback:
   
   - When dragging the "x" that closes the tab stays in the original position 
of the tab, shouldn't that be hidden when dragging or dragged across with the 
tab?
   - When trying to drop on the right side of a tab, it does not catch the drop 
indicator until you hover the title of the tab, which is inconvenient
   - The title of the tab is being highlighted in addition to the drop 
indicator, is that necessary?
   
   I know some of these things were harder to implement but I feel these are 
still quite relevant. Wdyt @yousoph?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-23 Thread via GitHub


geido commented on code in PR #29096:
URL: https://github.com/apache/superset/pull/29096#discussion_r1687874226


##
superset/commands/report/execute.py:
##
@@ -168,15 +168,15 @@ def _get_url(
 force=force,
 **kwargs,
 )
-
 # If we need to render dashboard in a specific state, use stateful 
permalink
-if dashboard_state := self._report_schedule.extra.get("dashboard"):
+if (
+dashboard_state := self._report_schedule.extra.get("dashboard")
+) and feature_flag_manager.is_feature_enabled("ALERT_REPORT_TABS"):

Review Comment:
   What I am saying is that now this is only applied if the `ALERT_REPORT_TABS` 
is enabled but shouldn't it be applied anyway if there is an `extra` parameter? 
Is there a reason to tie this to the `ALERT_REPORT_TABS` FF?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-23 Thread via GitHub


geido commented on code in PR #29096:
URL: https://github.com/apache/superset/pull/29096#discussion_r1687867288


##
superset-frontend/src/features/alerts/AlertReportModal.tsx:
##
@@ -776,6 +804,25 @@ const AlertReportModal: 
FunctionComponent = ({
 [],
   );
 
+  const dashboard = currentAlert?.dashboard;
+  useEffect(() => {
+if (!tabsEnabled) return;
+
+if (dashboard?.value) {
+  SupersetClient.get({
+endpoint: `/api/v1/dashboard/${dashboard.value}/tabs`,
+  }).then(response => {
+const { tab_tree: tabTree, all_tabs: allTabs } = response.json.result;
+setTabOptions(tabTree);
+if (currentAlert?.extra?.dashboard?.anchor) {
+  if (!(currentAlert?.extra?.dashboard?.anchor in allTabs)) {

Review Comment:
   You are already checking above if this exists. Maybe it would help 
readability to move it inside a const.
   
   ```
   const anchor = currentAlert?.extra?.dashboard?.anchor
   if (anchor && !anchor in allTabs)...
   ```



##
superset-frontend/src/features/alerts/AlertReportModal.test.tsx:
##
@@ -413,6 +420,21 @@ test('renders screenshot options when dashboard is 
selected', async () => {
   ).toBeInTheDocument();
 });
 
+test('renders tab selection when Dashboard is selected', async () => {
+  render(, {
+useRedux: true,
+  });
+  userEvent.click(screen.getByTestId('contents-panel'));
+  await screen.findByText(/test dashboard/i);
+  expect(
+screen.getByRole('combobox', { name: /select content type/i }),
+  ).toBeInTheDocument();
+  expect(
+screen.getByRole('combobox', { name: /dashboard/i }),
+  ).toBeInTheDocument();
+  expect(screen.getByText(/select tab/i)).toBeInTheDocument();

Review Comment:
   I think it's ok for now



##
superset-frontend/src/features/alerts/AlertReportModal.tsx:
##
@@ -776,6 +804,25 @@ const AlertReportModal: 
FunctionComponent = ({
 [],
   );
 
+  const dashboard = currentAlert?.dashboard;
+  useEffect(() => {
+if (!tabsEnabled) return;
+
+if (dashboard?.value) {
+  SupersetClient.get({

Review Comment:
   What happens if this fails? Should we catch it and display an error message?



##
superset/commands/report/execute.py:
##
@@ -168,15 +168,15 @@ def _get_url(
 force=force,
 **kwargs,
 )
-
 # If we need to render dashboard in a specific state, use stateful 
permalink
-if dashboard_state := self._report_schedule.extra.get("dashboard"):
+if (
+dashboard_state := self._report_schedule.extra.get("dashboard")
+) and feature_flag_manager.is_feature_enabled("ALERT_REPORT_TABS"):

Review Comment:
   What I am saying is that now this is only applied if the `ALERT_REPORT_TABS` 
is enabled but shouldn't it be applied anyway of there is an `extra` parameter? 
Is there a reason to tie this specifically to the `ALERT_REPORT_TABS` FF?



##
superset-frontend/src/features/alerts/AlertReportModal.tsx:
##
@@ -887,6 +934,28 @@ const AlertReportModal: 
FunctionComponent = ({
   endpoint: `/api/v1/chart/${chart.value}`,
 }).then(response => setChartVizType(response.json.result.viz_type));
 
+  const updateEmailSubject = () => {
+if (contentType === 'chart') {
+  if (currentAlert?.name || currentAlert?.chart?.label) {
+setEmailSubject(
+  `${currentAlert?.name}: ${currentAlert?.chart?.label || ''}`,

Review Comment:
   I am not sure if the condition here is correct but it seems that the 
intention was to check if `currentAlert?.name` exists? What if name is 
`undefined`, is that an option?



##
superset-frontend/src/features/alerts/AlertReportModal.tsx:
##
@@ -646,14 +674,14 @@ const AlertReportModal: 
FunctionComponent = ({
   ),
   recipients,
   report_format: reportFormat || DEFAULT_NOTIFICATION_FORMAT,
+  extra: contentType === 'dashboard' ? currentAlert?.extra : null,

Review Comment:
   Can we create a type for this `contentType` instead of relying on strings?



##
superset-frontend/src/features/alerts/AlertReportModal.tsx:
##
@@ -887,6 +934,28 @@ const AlertReportModal: 
FunctionComponent = ({
   endpoint: `/api/v1/chart/${chart.value}`,
 }).then(response => setChartVizType(response.json.result.viz_type));
 
+  const updateEmailSubject = () => {
+if (contentType === 'chart') {
+  if (currentAlert?.name || currentAlert?.chart?.label) {
+setEmailSubject(
+  `${currentAlert?.name}: ${currentAlert?.chart?.label || ''}`,
+);
+  } else {
+setEmailSubject('');
+  }
+} else if (contentType === 'dashboard') {
+  if (currentAlert?.name || currentAlert?.dashboard?.label) {
+setEmailSubject(
+  `${currentAlert?.name}: ${currentAlert?.dashboard?.label || ''}`,
+);
+  } else {
+setEmailSubject('');

Review Comment:
   Can we use returns here to avoid duplicate code 

[PR] refactor(ProgressBar): Upgrade ProgressBar to Antd 5 [superset]

2024-07-23 Thread via GitHub


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

   
   
   ### SUMMARY
   Please refer to the Superset Improvement Proposal 
https://github.com/apache/superset/issues/29268
   
   ### BEFORE
   
![340364841-92920e46-29ae-41e4-a8f2-ecb974109000](https://github.com/user-attachments/assets/a950405b-35fc-4a17-bf41-96b23e696a9e)
   
   
![340426585-1d6e3c9a-c596-4ddb-89b9-969ea41467c3](https://github.com/user-attachments/assets/4c01a725-4447-47b6-b62a-5f37e7e7307c)
   
   ### AFTER
   
![340364770-6bba9c07-af26-47c2-925d-d3e8cc5fb750](https://github.com/user-attachments/assets/fbe0ac57-4b48-463d-a29a-ad6eb8817748)
   
   
![340425087-e4f19e4a-3897-46ca-973a-d92cf73a95b9](https://github.com/user-attachments/assets/f1c0c1d9-fbc6-4670-9abd-eec673b5c7ea)
   
   ### TESTING INSTRUCTIONS
   1. Verify the usage of the ProgressBar throughout the application.
   2. Ensure no visual or behavioral changes have been introduced.
   
   ### ADDITIONAL INFORMATION
   
   
   - [ ] Has associated issue:
   - [ ] 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-unsubscr...@superset.apache.org

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


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



Re: [I] Export to PDF leaves charts empty on first export [superset]

2024-07-23 Thread via GitHub


artyom738 commented on issue #27532:
URL: https://github.com/apache/superset/issues/27532#issuecomment-2244698214

   Similar problem with embedded dashboard. 
   When we export embedded dashboard, only visible charts are saved in pdf. If 
some charts are out of screen, in pdf we have loading logo instead of charts. I 
have attached a screenshot.
   
   But when we export dashboard from superset (not embedded), pdf is saving 
correctly.
   
   In addition (maybe it can help) - if you will try to scroll embedded 
dashboard quicky, you will see a loading logo by a millisecond before chart 
renders.
   
   ![Снимок экрана от 2024-07-23 
11-18-42](https://github.com/user-attachments/assets/39d1ba95-1ad2-4fbf-9053-004331d7e573)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] No table names shown in Dataset creation window / SQL Lab for Apache Kyuubi [superset]

2024-07-23 Thread via GitHub


tyagiaksh commented on issue #28743:
URL: https://github.com/apache/superset/issues/28743#issuecomment-2244676953

   yes I have also solved using that


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] Drill by pagination does not work with Elasticsearch [superset]

2024-07-23 Thread via GitHub


sowo commented on issue #24563:
URL: https://github.com/apache/superset/issues/24563#issuecomment-2244605513

   @ambarishp I've researched this issue and came to the conclusion that 
pagination of result sets is not supported by Elastic.
   
   Elastic SQL does not support the OFFSET clause and the only option it 
provides is cursor based pagination which only allows you to scroll forward by 
one page at a time (see 
https://discuss.elastic.co/t/how-to-use-pagination-in-elastic-search-sql/191135 
and https://github.com/elastic/elasticsearch/issues/31549). This is 
insufficient in the "Drill to details" scenario as Superset allows to skip 
pages as well as return to previous pages.
   
   I am not sure on how to proceed with this as throwing above error is not an 
acceptable solution either. Maybe @rusackas can chime in here?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] Mixed chart x-axes overlap for time period of last quarter [superset]

2024-07-23 Thread via GitHub


sunilreddy0720 closed issue #29663: Mixed chart x-axes overlap for time period 
of last quarter
URL: https://github.com/apache/superset/issues/29663


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] Mixed chart x-axes overlap for time period of last quarter [superset]

2024-07-23 Thread via GitHub


dosubot[bot] commented on issue #29663:
URL: https://github.com/apache/superset/issues/29663#issuecomment-2244390022

   
   Yes, there is a setting on the front end to prevent the x-axes from 
overlapping when selecting the time period filter for the last quarter in a 
mixed chart with red bars and a black line graph. You can use the 
`xAxisLabelRotation` property to adjust the layout of the x-axis ticks.
   
   Here is the relevant code snippet:
   
   ```ts
   const echartOptions: EChartsCoreOption = {
 xAxis: {
   axisLabel: {
 rotate: xAxisLabelRotation,
   },
 },
   };
   ```
   
   You can set `xAxisLabelRotation` to `45` or another angle to prevent the 
x-axes from overlapping. This property is part of the `echartOptions` 
configuration in the `transformProps` function.
   
   Additionally, in the Superset configuration, you can set the `truncateXAxis` 
parameter to `true` to help manage the x-axis labels:
   
   ```yaml
   params:
 truncateXAxis: true
   ```
   
   This setting will truncate the x-axis labels, which can also help prevent 
overlapping.
   
   In the Superset control panel configuration, you can find the 
`xAxisLabelRotation` and `truncateXAxis` settings under the "Chart Options" 
section:
   
   ```tsx
   const config: ControlPanelConfig = {
 controlPanelSections: [
   // other sections
   {
 label: t('Chart Options'),
 expanded: true,
 controlSetRows: [
   // other controls
   [{t('X Axis')}],
   ['x_axis_time_format'],
   [xAxisLabelRotation],
   [truncateXAxis],
   // other controls
 ],
   },
 ],
   };
   ```
   
   These settings allow you to customize the x-axis label rotation and 
truncation directly from the Superset UI.
   
   Here are the definitions for `truncateXAxis` and `xAxisLabelRotation`:
   
   ```tsx
   export const truncateXAxis: ControlSetItem = {
 name: 'truncateXAxis',
 config: {
   type: 'CheckboxControl',
   label: t('Truncate X Axis'),
   default: DEFAULT_FORM_DATA.truncateXAxis,
   renderTrigger: true,
   description: t(
 'Truncate X Axis. Can be overridden by specifying a min or max bound. 
Only applicable for numerical X axis.',
   ),
 },
   };
   
   export const xAxisLabelRotation = {
 name: 'xAxisLabelRotation',
 config: {
   type: 'SelectControl',
   freeForm: true,
   clearable: false,
   label: t('Rotate x axis label'),
   choices: [
 [0, '0°'],
 [45, '45°'],
 [90, '90°'],
   ],
   default: defaultXAxis.xAxisLabelRotation,
   renderTrigger: true,
   description: t('Input field supports custom rotation. e.g. 30 for 30°'),
 },
   };
   ```
   
   
[[1]](https://github.com/apache/superset/blob/master/superset-frontend/plugins/legacy-preset-chart-nvd3/src/NVD3Vis.js)[[2]](https://github.com/apache/superset/blob/master/superset-frontend/plugins/plugin-chart-echarts/src/MixedTimeseries/transformProps.ts)[[3]](https://github.com/apache/superset/blob/master/superset/examples/configs/charts/Featured
 
Charts/Mixed.yaml)[[4]](https://github.com/apache/superset/blob/master/superset-frontend/plugins/plugin-chart-echarts/src/MixedTimeseries/controlPanel.tsx)[[5]](https://github.com/apache/superset/blob/master/superset-frontend/plugins/plugin-chart-echarts/src/controls.tsx)
   
   
   
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



[I] Mixed chart x-axes overlap for time period of last quarter [superset]

2024-07-23 Thread via GitHub


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

   Do we have any setting on front end while creation of chart for this to not 
overlap when we select time period filter for last quarter .
   
   
   ![Screenshot 2024-07-23 
115105](https://github.com/user-attachments/assets/e1247378-f647-4aa1-89fa-bc6d398e6df5)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org.apache.org

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


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



Re: [I] Drill by pagination does not work with Elasticsearch [superset]

2024-07-23 Thread via GitHub


ambarishp commented on issue #24563:
URL: https://github.com/apache/superset/issues/24563#issuecomment-2244355407

   Is there any fix available for this. I am also facing same issue when click 
on pagination in drill to details page. Currently i am using superset version 
4.0.2
   
   Error: Error (parsing_exception): {'error': {'root_cause': [{'type': 
'parsing_exception', 'reason': "line 45:1: mismatched input 'OFFSET' expecting 
"}], 'type': 'parsing_exception', 'reason': "line 45:1: mismatched input 
'OFFSET' expecting ", 'caused_by': {'type': 'input_mismatch_exception', 
'reason': None}}, 'status': 400}


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



[PR] Jenijune13 build gunicorn and footer [superset]

2024-07-23 Thread via GitHub


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

   
   
   ### SUMMARY
   
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   
   
   ### TESTING INSTRUCTIONS
   
   
   ### ADDITIONAL INFORMATION
   
   
   - [ ] Has associated issue:
   - [ ] 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-unsubscr...@superset.apache.org

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


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



Re: [PR] chore: Adds 4.1.0 RC1 daa to CHANGELOG.md and UPDATING.md [superset]

2024-07-22 Thread via GitHub


eschutho merged PR #29637:
URL: https://github.com/apache/superset/pull/29637


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-22 Thread via GitHub


github-actions[bot] commented on PR #29096:
URL: https://github.com/apache/superset/pull/29096#issuecomment-2243998999

   @yousoph Ephemeral environment spinning up at http://34.214.205.147:8080. 
Credentials are `admin`/`admin`. Please allow several minutes for bootstrapping 
and startup.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(alerts): enable tab selection for dashboard alerts/reports [superset]

2024-07-22 Thread via GitHub


yousoph commented on PR #29096:
URL: https://github.com/apache/superset/pull/29096#issuecomment-2243987643

   /testenv up FEATURE_ALERT_REPORTS=True


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(dashboard): update tab drag and drop reordering with positional placement and indicators for UI [superset]

2024-07-22 Thread via GitHub


github-actions[bot] commented on PR #29395:
URL: https://github.com/apache/superset/pull/29395#issuecomment-2243942403

   @yousoph Ephemeral environment spinning up at http://35.87.176.169:8080. 
Credentials are `admin`/`admin`. Please allow several minutes for bootstrapping 
and startup.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] feat(dashboard): update tab drag and drop reordering with positional placement and indicators for UI [superset]

2024-07-22 Thread via GitHub


yousoph commented on PR #29395:
URL: https://github.com/apache/superset/pull/29395#issuecomment-2243929431

   /testenv up


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [I] Bar chart does not emit cross-filter if dimension is not set [superset]

2024-07-22 Thread via GitHub


smrodin commented on issue #25334:
URL: https://github.com/apache/superset/issues/25334#issuecomment-2243847347

   > If category axis is not a date,you can set like this.It works for me.
   > 
   > 
(https://github.com/apache/superset/assets/49085215/7f1cd5c8-2267-45fe-92f3-927ac9898486)
 
(https://github.com/apache/superset/assets/49085215/b404037f-c14f-46e4-a2e5-83343be0c4b5)
   
   Thanks, but when doing this, char bars get too narrow
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



Re: [PR] chore: Adds 4.1.0 RC1 daa to CHANGELOG.md and UPDATING.md [superset]

2024-07-22 Thread via GitHub


sadpandajoe commented on PR #29637:
URL: https://github.com/apache/superset/pull/29637#issuecomment-2243667478

   @eschutho @michael-s-molina I've followed the changes done in the 4.0.0RC1 
branch here: 
https://github.com/apache/superset/commit/beb9ec77a5d03571bb339c98da31b8e7f9bb5415.
 I'll create another PR for the official master merge


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

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


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



  1   2   3   4   5   6   7   8   9   10   >