Skip to content

fix: better handle empty collection filters - #62

Merged
cofin merged 27 commits into
mainfrom
collection-filter-none-noop
Oct 19, 2023
Merged

cofin merged 27 commits into
mainfrom
collection-filter-none-noop

Conversation

@cofin

@cofin cofin commented Oct 18, 2023 •

Copy link
Copy Markdown
Member

Currently, this is how you can inject these filters in your app.

When using the id_filter dependency on it's own, you have to have an additional not-null check before passing it into the repository.

This change handles that and allows you to pass in all fitlers into the repository function without checking their nullability.

@cofin
cofin requested review from a team as code owners October 18, 2023 15:52
peterschutt
peterschutt previously approved these changes Oct 18, 2023
Comment thread tests/unit/test_repository.py Resolved
Comment thread tests/unit/test_repository.py Resolved
Base automatically changed from build-improvements to main October 19, 2023 04:42
@cofin
cofin dismissed peterschutt’s stale review October 19, 2023 04:42

The base branch was changed.

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@cofin
cofin merged commit 70a4233 into main Oct 19, 2023
@cofin
cofin deleted the collection-filter-none-noop branch October 19, 2023 05:32
@github-actions

Copy link
Copy Markdown

Documentation preview will be available shortly at https://jolt-org.github.io/advanced-alchemy-docs-preview/62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants