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

Add back missing permissions to UserModelView controls. #17431

Merged
merged 1 commit into from
Aug 9, 2021

Conversation

jhtimmins
Copy link
Contributor

Currently, on user model views except from UserDBModelView, view controls don't show up on /users/list. This fixes that issue by adding the missing views back to all user model views.

Additionally, Edit User on the different Show User views all redirect to the logged in user's profile views. This fixes that issue by removing the Edit User view from Show User.

closes: #16202

@boring-cyborg boring-cyborg bot added the area:webserver Webserver related Issues label Aug 5, 2021
@jhtimmins jhtimmins requested a review from kaxil August 5, 2021 06:11
@ashb ashb added this to the Airflow 2.1.3 milestone Aug 5, 2021
@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label Aug 5, 2021
@github-actions
Copy link

github-actions bot commented Aug 5, 2021

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

@uranusjr
Copy link
Member

uranusjr commented Aug 5, 2021

Should we switch the new tests to use pytest instead? That would make them slightly faster to run.

@andrewgodwin
Copy link
Contributor

@uranusjr Given this is blocking a release, I'd suggest it gets landed and then new test refactoring can be done separately.

@kaxil kaxil merged commit c1e2af4 into apache:main Aug 9, 2021
@kaxil kaxil deleted the fix-missing-security-buttons branch August 9, 2021 14:46
@kaxil
Copy link
Member

kaxil commented Aug 9, 2021

The failing checks were unrelated and caused by broken main when the PR was created

jhtimmins added a commit that referenced this pull request Aug 9, 2021
Currently, on user model views except from UserDBModelView, view controls don't show up on /users/list. This fixes that issue by adding the missing views back to all user model views.

Additionally, Edit User on the different Show User views all redirect to the logged in user's profile views. This fixes that issue by removing the Edit User view from Show User.

closes: #16202
(cherry picked from commit c1e2af4)
jhtimmins added a commit that referenced this pull request Aug 13, 2021
Currently, on user model views except from UserDBModelView, view controls don't show up on /users/list. This fixes that issue by adding the missing views back to all user model views.

Additionally, Edit User on the different Show User views all redirect to the logged in user's profile views. This fixes that issue by removing the Edit User view from Show User.

closes: #16202
(cherry picked from commit c1e2af4)
kaxil pushed a commit that referenced this pull request Aug 17, 2021
Currently, on user model views except from UserDBModelView, view controls don't show up on /users/list. This fixes that issue by adding the missing views back to all user model views.

Additionally, Edit User on the different Show User views all redirect to the logged in user's profile views. This fixes that issue by removing the Edit User view from Show User.

closes: #16202
(cherry picked from commit c1e2af4)
jhtimmins added a commit that referenced this pull request Aug 17, 2021
Currently, on user model views except from UserDBModelView, view controls don't show up on /users/list. This fixes that issue by adding the missing views back to all user model views.

Additionally, Edit User on the different Show User views all redirect to the logged in user's profile views. This fixes that issue by removing the Edit User view from Show User.

closes: #16202
(cherry picked from commit c1e2af4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:webserver Webserver related Issues okay to merge It's ok to merge this PR as it does not require more tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing Show/Edit/Delete under Security -> Users in 2.1.0
5 participants