Implement pagination support and refactor related tests#70
Merged
Conversation
… tests - Added offset and cursor pagination support in keyring and audit log handlers. - Introduced pagination schemas in a new pagination module. - Updated tests to validate pagination functionality for user blocks, directories, groups, revisions, and search results. - Refactored existing tests to align with new response structures, ensuring consistency across the application.
… for cursor signature
Contributor
There was a problem hiding this comment.
Sorry @Creeper19472, your pull request is larger than the review limit of 150000 diff characters
| depends_on: Union[str, Sequence[str], None] = None | ||
| down_revision: str | Sequence[str] | None = 'e805605cbb30' | ||
| branch_labels: str | Sequence[str] | None = None | ||
| depends_on: str | Sequence[str] | None = None |
| down_revision: Union[str, Sequence[str], None] = 'a50674184a2c' | ||
| branch_labels: Union[str, Sequence[str], None] = None | ||
| depends_on: Union[str, Sequence[str], None] = None | ||
| down_revision: str | Sequence[str] | None = 'a50674184a2c' |
| branch_labels: Union[str, Sequence[str], None] = None | ||
| depends_on: Union[str, Sequence[str], None] = None | ||
| down_revision: str | Sequence[str] | None = 'a50674184a2c' | ||
| branch_labels: str | Sequence[str] | None = None |
| depends_on: Union[str, Sequence[str], None] = None | ||
| down_revision: str | Sequence[str] | None = 'a50674184a2c' | ||
| branch_labels: str | Sequence[str] | None = None | ||
| depends_on: str | Sequence[str] | None = None |
| down_revision: Union[str, Sequence[str], None] = '9c6ab2902b6e' | ||
| branch_labels: Union[str, Sequence[str], None] = None | ||
| depends_on: Union[str, Sequence[str], None] = None | ||
| down_revision: str | Sequence[str] | None = '9c6ab2902b6e' |
| branch_labels: Union[str, Sequence[str], None] = None | ||
| depends_on: Union[str, Sequence[str], None] = None | ||
| down_revision: str | Sequence[str] | None = '9c6ab2902b6e' | ||
| branch_labels: str | Sequence[str] | None = None |
… queries - Enhanced the RequestSearchHandler to utilize new query functions for fetching search candidates. - Introduced pagination and sorting improvements in search results. - Added new SQLAlchemy queries for fetching directory and document listings with optimized filtering. - Created new Alembic migration to add indexes for improved query performance on documents and folders. - Updated tests to cover new search candidate fetching logic and pagination limits.
| try: | ||
| await authenticated_client.delete_directory(parent_id) | ||
| await authenticated_client.purge_directory(parent_id) | ||
| except Exception: |
| try: | ||
| await authenticated_client.delete_directory(folder_id) | ||
| await authenticated_client.purge_directory(folder_id) | ||
| except Exception: |
- Added new tables for compiled access rules, groups, memberships, and rights in the database schema. - Introduced logic for compiling access rules based on user permissions and group memberships. - Enhanced the search functionality to filter out hidden candidates and respect access rules during search queries. - Updated existing search tests to validate the new access control mechanisms and ensure proper visibility of search results based on user permissions. - Refactored code to improve readability and maintainability, including the addition of helper functions for rule compilation and matching.
- Removed DocumentAccessRule and FolderAccessRule models in favor of a unified CompiledAccessRule system. - Updated bulk purge functionality to eliminate references to DocumentAccessRule. - Enhanced directory and document handlers to utilize new access rule functions for retrieving access rules. - Implemented legacy access rule migration to compiled access rules during database upgrades. - Adjusted tests to reflect changes in access rule handling and ensure compatibility with the new schema. - Created a new Alembic migration to enforce the new compiled access rules structure and remove legacy tables.
This reverts commit c068ac4.
…ncing integrity checks and legacy backup restoration
…rity and maintainability
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.