You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "michael-s-molina (via GitHub)" <gi...@apache.org> on 2024/02/15 20:47:13 UTC
[PR] fix: Plain error message when visiting a dashboard via permalink without permissions [superset]
michael-s-molina opened a new pull request, #27132:
URL: https://github.com/apache/superset/pull/27132
### SUMMARY
Fixes https://github.com/apache/superset/issues/26849 by redirecting users to the dashboard list and presenting a toast message when they try to access a dashboard via permalink without permissions.
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
<img width="1792" alt="300451016-62c9468c-db2f-4bfa-b89c-10aecb1b182d" src="https://github.com/apache/superset/assets/70410625/24523abe-9177-4c26-bf10-f84fc11d7f35">
<img width="1776" alt="Screenshot 2024-02-15 at 15 39 07" src="https://github.com/apache/superset/assets/70410625/eafa21b5-9137-4c10-85e7-b7477951c98e">
### TESTING INSTRUCTIONS
Check the original issue for 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-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix: Plain error message when visiting a dashboard via permalink without permissions [superset]
Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on PR #27132:
URL: https://github.com/apache/superset/pull/27132#issuecomment-1947344911
Related to #22910 and its associated PR, FYI. This looks good to me, just mentioning this while your mind is on the topic.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix: Plain error message when visiting a dashboard via permalink without permissions [superset]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #27132:
URL: https://github.com/apache/superset/pull/27132#issuecomment-1947322858
## [Codecov](https://app.codecov.io/gh/apache/superset/pull/27132?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
Attention: `3 lines` in your changes are missing coverage. Please review.
> Comparison is base [(`d2910b0`)](https://app.codecov.io/gh/apache/superset/commit/d2910b0b87232b88be1f8199a3501df99e108468?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) 67.04% compared to head [(`da10776`)](https://app.codecov.io/gh/apache/superset/pull/27132?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) 59.44%.
> Report is 2 commits behind head on master.
| [Files](https://app.codecov.io/gh/apache/superset/pull/27132?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
|---|---|---|
| [superset/views/core.py](https://app.codecov.io/gh/apache/superset/pull/27132?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-c3VwZXJzZXQvdmlld3MvY29yZS5weQ==) | 25.00% | [3 Missing :warning: ](https://app.codecov.io/gh/apache/superset/pull/27132?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #27132 +/- ##
==========================================
- Coverage 67.04% 59.44% -7.60%
==========================================
Files 1902 1902
Lines 74414 74451 +37
Branches 8306 8306
==========================================
- Hits 49888 44258 -5630
- Misses 22472 28139 +5667
Partials 2054 2054
```
| [Flag](https://app.codecov.io/gh/apache/superset/pull/27132/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [mysql](https://app.codecov.io/gh/apache/superset/pull/27132/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [presto](https://app.codecov.io/gh/apache/superset/pull/27132/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `53.74% <25.00%> (?)` | |
| [python](https://app.codecov.io/gh/apache/superset/pull/27132/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `62.23% <25.00%> (-15.79%)` | :arrow_down: |
| [unit](https://app.codecov.io/gh/apache/superset/pull/27132/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `56.42% <25.00%> (?)` | |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
</details>
[:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/superset/pull/27132?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix: Plain error message when visiting a dashboard via permalink without permissions [superset]
Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on PR #27132:
URL: https://github.com/apache/superset/pull/27132#issuecomment-1947350787
Fixed, whoops!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix: Plain error message when visiting a dashboard via permalink without permissions [superset]
Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina merged PR #27132:
URL: https://github.com/apache/superset/pull/27132
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix: Plain error message when visiting a dashboard via permalink without permissions [superset]
Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on PR #27132:
URL: https://github.com/apache/superset/pull/27132#issuecomment-1947347676
> Related to https://github.com/apache/superset/pull/22910 and its associated PR, FYI. This looks good to me, just mentioning this while your mind is on the topic.
@sfirke Did you link the wrong issue link?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix: Plain error message when visiting a dashboard via permalink without permissions [superset]
Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on PR #27132:
URL: https://github.com/apache/superset/pull/27132#issuecomment-1947349988
Oops #22190 ! Sorry.
On Thu, Feb 15, 2024, 4:13 PM Michael S. Molina ***@***.***>
wrote:
> Related to #22910 <https://github.com/apache/superset/pull/22910> and its
> associated PR, FYI. This looks good to me, just mentioning this while your
> mind is on the topic.
>
> @sfirke <https://github.com/sfirke> Did you link the wrong issue link?
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/apache/superset/pull/27132#issuecomment-1947347676>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABZYDEEKIJA7DJHA5SEFDQTYTZ267AVCNFSM6AAAAABDK56IZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXGM2DONRXGY>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix: Plain error message when visiting a dashboard via permalink without permissions [superset]
Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina commented on PR #27132:
URL: https://github.com/apache/superset/pull/27132#issuecomment-1947354374
> Fixed, whoops!
Got it. The referred issue is related but it's not the same use case as this one assumes the users is already logged in.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org