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: RBAC hide right menu #16902

Merged
merged 4 commits into from
Sep 30, 2021
Merged

fix: RBAC hide right menu #16902

merged 4 commits into from
Sep 30, 2021

Conversation

hughhhh
Copy link
Member

@hughhhh hughhhh commented Sep 29, 2021

SUMMARY

Hide create button for users that do not have the proper permissions to goto sqllab, create charts, and create dashboards.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen Shot 2021-08-25 at 12 01 29 PM

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • 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 Sep 29, 2021

Codecov Report

Merging #16902 (260cf80) into master (331de0c) will decrease coverage by 0.27%.
The diff coverage is 73.62%.

❗ Current head 260cf80 differs from pull request most recent head 1e20585. Consider uploading reports for the commit 1e20585 to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master   #16902      +/-   ##
==========================================
- Coverage   77.03%   76.75%   -0.28%     
==========================================
  Files        1021     1022       +1     
  Lines       54846    54896      +50     
  Branches     7481     7484       +3     
==========================================
- Hits        42248    42133     -115     
- Misses      12351    12515     +164     
- Partials      247      248       +1     
Flag Coverage Δ
hive ?
javascript 71.02% <68.83%> (-0.13%) ⬇️
presto ?

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

Impacted Files Coverage Δ
superset-frontend/src/SqlLab/App.jsx 0.00% <ø> (ø)
...nd/src/assets/stylesheets/less/cosmo/cosmoTheme.js 0.00% <ø> (ø)
...frontend/src/components/DatabaseSelector/index.tsx 95.00% <ø> (+2.50%) ⬆️
superset-frontend/src/components/Icons/index.tsx 100.00% <ø> (ø)
...onfigModal/FiltersConfigForm/FiltersConfigForm.tsx 73.83% <ø> (ø)
superset-frontend/src/explore/App.jsx 0.00% <ø> (ø)
...d/src/filters/components/Time/TimeFilterPlugin.tsx 86.66% <ø> (ø)
superset-frontend/src/theme.ts 0.00% <0.00%> (ø)
superset-frontend/src/utils/downloadAsImage.ts 41.37% <ø> (ø)
superset-frontend/src/views/menu.tsx 0.00% <0.00%> (ø)
... and 19 more

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 331de0c...1e20585. Read the comment docs.

{navbarRight.user_info_url && (
<Menu.Item key="info">
<a href={navbarRight.user_info_url}>{t('Info')}</a>
</Menu.Item>
)}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you intentionally removing the build number? If so, can you describe why on the PR summary?

Copy link
Member Author

@hughhhh hughhhh Sep 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was a bad rebase on my part just added it back and fixed the test. The build number is here (https://github.com/apache/superset/pull/16902/files#diff-66167b483c9360910449d7ed1078df9d2b3b2500ea69295657e3692e462c9095R192) now

@hughhhh hughhhh merged commit 87baac7 into master Sep 30, 2021
eschutho added a commit to preset-io/superset that referenced this pull request Oct 4, 2021
eschutho added a commit that referenced this pull request Oct 5, 2021
* Revert "fix: RBAC hide right menu (#16902)"

This reverts commit 87baac7.

* fix failing test
sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Oct 5, 2021
* Revert "fix: RBAC hide right menu (apache#16902)"

This reverts commit 87baac7.

* fix failing test

(cherry picked from commit 5866d5e)
@hughhhh hughhhh mentioned this pull request Oct 19, 2021
9 tasks
eschutho added a commit to preset-io/superset that referenced this pull request Oct 27, 2021
* Revert "fix: RBAC hide right menu (apache#16902)"

This reverts commit 87baac7.

* fix failing test

(cherry picked from commit 5866d5e)
opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
* add provider to right menu

* add roles code

* bad pull
opus-42 pushed a commit to opus-42/incubator-superset that referenced this pull request Nov 14, 2021
* Revert "fix: RBAC hide right menu (apache#16902)"

This reverts commit 87baac7.

* fix failing test
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 28, 2021
* add provider to right menu

* add roles code

* bad pull
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 28, 2021
* Revert "fix: RBAC hide right menu (apache#16902)"

This reverts commit 87baac7.

* fix failing test
@mistercrunch mistercrunch added the 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels label Mar 13, 2024
@mistercrunch mistercrunch deleted the hugh/rbac-rm-3 branch March 26, 2024 17:56
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 size/L 🚢 1.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants