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

Implement missing methods in forwarding class #10087

Merged
merged 8 commits into from
Nov 30, 2021

Conversation

findepi
Copy link
Member

@findepi findepi commented Nov 26, 2021

No description provided.

@cla-bot cla-bot bot added the cla-signed label Nov 26, 2021
@@ -137,6 +137,7 @@ default void checkCanViewQueryOwnedBy(SystemSecurityContext context, Identity qu
* will not be called when the current user is the query owner.
*
* @throws AccessDeniedException if not allowed
* @deprecated Implement {@link #checkCanViewQueryOwnedBy(SystemSecurityContext, Identity)} instead.
*/
Copy link
Member

Choose a reason for hiding this comment

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

Add @Deprecated annotation. Or should we remove it everywhere?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, both should be present

@findepi findepi force-pushed the findepi/update-fwding branch from bcfb44e to 71c5f3d Compare November 26, 2021 21:17
@@ -137,7 +137,9 @@ default void checkCanViewQueryOwnedBy(SystemSecurityContext context, Identity qu
* will not be called when the current user is the query owner.
*
* @throws AccessDeniedException if not allowed
* @deprecated Implement {@link #checkCanViewQueryOwnedBy(SystemSecurityContext, Identity)} instead.
Copy link
Member

Choose a reason for hiding this comment

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

I there are three of them. To filter and to kill query too.

Typically we have never deprecated anything in access control interfaces. There are so many methods here and we start dealing with deprecation it will get messy IMO. I think I would simply drop deprecated methods.

We use deprecation once for checkCanSetUser. But there semantic was changing, here we only change the parameter.

Copy link
Member Author

Choose a reason for hiding this comment

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

if we plan to drop, we should try to deprecate first, if possible. Here it seems possible.

@findepi
Copy link
Member Author

findepi commented Nov 28, 2021

CI #8611

@findepi findepi force-pushed the findepi/update-fwding branch from 59825d6 to e8dd6a2 Compare November 29, 2021 08:19
@findepi
Copy link
Member Author

findepi commented Nov 29, 2021

(just rebased)

`filterViewQuery` was introduced as a better version of
`filterViewQueryOwnedBy`, so they should be overloads of each other, if
possible.
It was superseded by a version taking identities in
f7aac0d.
@findepi findepi requested a review from kokosing November 29, 2021 08:24
@findepi
Copy link
Member Author

findepi commented Nov 29, 2021

CI #9423 / #6991

@findepi findepi merged commit 5e0c198 into trinodb:master Nov 30, 2021
@findepi findepi deleted the findepi/update-fwding branch November 30, 2021 14:30
@github-actions github-actions bot added this to the 365 milestone Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants