Open nibix opened 5 days ago
Attention: Patch coverage is 87.14286%
with 9 lines
in your changes missing coverage. Please review.
Project coverage is 65.26%. Comparing base (
9caf5cb
) to head (7d70bc6
). Report is 1 commits behind head on main.
Description
This change is in preparation for #3870 and #4380 .
This cuts off some parts from the quite big and monolithic method
PrivilegesEvaluator.evaluate()
into separate methods and modules.This achieves several things:
Better separation of concerns, thus better modularization and thus better understandability, re-usability and testability
Computations of DLS/FLS privileges are done directly in the DLS/FLS valve code. Thus, if DLS/FLS valve is disabled, no DLS/FLS privileges are computed
The new class
PrivilegesEvaluationContext
combines commonly needed information for privilege evaluation and thus allows to shorten the parameter lists of many methods in this context. For this PR, only thePrivilegesEvaluator.evaluate()
method itself is changed, but further adaptions will follow up when due.Category - Refactoring
Why these changes are required?
What is the old behavior before changes and new behavior after changes? - No changes.
Issues Resolved
Contributes to #3870
Testing
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.