Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change Alert Permissions #16118

Merged
merged 3 commits into from Aug 9, 2021

Conversation

AAfghahi
Copy link
Member

@AAfghahi AAfghahi commented Aug 6, 2021

SUMMARY

This PR adjusts who can see the new dashboard and chart subscribe Icon. Previously it was based on who can add a report, but now it is based on if you have access to alerts and reports in the settings menu.

While looking through this, I noticed that a limited/gamma user does have permissions to add, view, and has menu access to Alerts and Reports. Maybe this is an oversight and we need to adjust the permissions for Gamma users?

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Admin User:
Screen Shot 2021-08-06 at 11 27 15 AM
Gamma:
Screen Shot 2021-08-06 at 11 27 57 AM

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • 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

@codecov
Copy link

codecov bot commented Aug 6, 2021

Codecov Report

Merging #16118 (f4c5326) into master (b80f018) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #16118      +/-   ##
==========================================
- Coverage   76.84%   76.84%   -0.01%     
==========================================
  Files         995      995              
  Lines       52886    52885       -1     
  Branches     6721     6721              
==========================================
- Hits        40640    40638       -2     
- Misses      12021    12022       +1     
  Partials      225      225              
Flag Coverage Δ
javascript 71.21% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...frontend/src/dashboard/components/Header/index.jsx 63.74% <0.00%> (ø)
...tend/src/explore/components/ExploreChartHeader.jsx 55.55% <0.00%> (ø)
superset/db_engine_specs/presto.py 89.95% <0.00%> (-0.42%) ⬇️
superset/constants.py 100.00% <0.00%> (ø)
superset/cli.py 51.47% <0.00%> (+0.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b80f018...f4c5326. Read the comment docs.

@AAfghahi
Copy link
Member Author

AAfghahi commented Aug 6, 2021

@eschutho For public users (which is the starter tier) are we turning off their Alerts_Reports feature flag or is that permissions based?

@eschutho eschutho merged commit 606a7bf into apache:master Aug 9, 2021
@eschutho eschutho deleted the ch21572_alertPermissions branch August 9, 2021 20:33
@rosemarie-chiu
Copy link
Contributor

🏷 2021.31

@villebro villebro added the v1.3 label Aug 9, 2021
villebro pushed a commit that referenced this pull request Aug 10, 2021
* added google alert

* reworked permissions

(cherry picked from commit 606a7bf)
stevenuray pushed a commit to preset-io/superset that referenced this pull request Aug 11, 2021
* added google alert

* reworked permissions

(cherry picked from commit 606a7bf)
opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
* added google alert

* reworked permissions
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
* added google alert

* reworked permissions

(cherry picked from commit 606a7bf)
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 28, 2021
* added google alert

* reworked permissions
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
* added google alert

* reworked permissions

(cherry picked from commit 606a7bf)
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
* added google alert

* reworked permissions

(cherry picked from commit 35e7a32)
@mistercrunch mistercrunch added 🍒 1.3.0 🍒 1.3.1 🍒 1.3.2 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.4.0 labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels preset:2021.31 size/XS v1.3 🍒 1.3.0 🍒 1.3.1 🍒 1.3.2 🚢 1.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants