-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ODS-5342] Optimize authorization to avoid redundant database roundtr…
…ips during updates (#836) * Added support for detecting redundant authorization queries in a single request execution, and performed some cleanup of unused fields and namespaces in other authorization decorators. * Refactored core authorization logic out of RepositoryOperationAuthorizationDecoratorBase to make it more accessible to other parts of the code (e.g. EdFiOdsPostUpdateEventListener). * Updated NHibernate initialization logic to provide the EdFiOdsPostUpdateEventListener with the new IEntityAuthorizer for performing authorization on the final state of the object when applying key changes. * Added authorization test coverage to ensure that key changes are authorized based on original AND changed state. * Fixed broken NHibernate integration tests, and unit tests for the authorization decorators.
- Loading branch information
1 parent
57627ec
commit e1d0c54
Showing
19 changed files
with
916 additions
and
534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.