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

fix(sqlalchemy-repo): #2221 - Filters not available in exists() #2228

Merged
merged 5 commits into from
Aug 26, 2023

Conversation

nielsvanhooy
Copy link
Contributor

@nielsvanhooy nielsvanhooy commented Aug 26, 2023

fixed exists() method for sqlalchemy sync and async.
also changed the functions in the repository abc. and the generic_mock_repository.py. that one used get_one_or_none that doesn't seem right

also added 2 tests for usage with the filter (let me know if this is correct).

Pull Request Checklist

  • New code has 100% test coverage
  • (If applicable) The prose documentation has been updated to reflect the changes introduced by this PR
  • (If applicable) The reference documentation has been updated to reflect the changes introduced by this PR

Description

FIX: Calling exists() with filters doesn't work SQLAlchemy contrib

Close Issue(s)

Fixes #2221

niels van hooij added 2 commits August 26, 2023 11:43
also changed the functions in the repository abc. and the generic_mock_repository.py. that one used get_one_or_none that doesn't seem right
@nielsvanhooy nielsvanhooy requested review from a team as code owners August 26, 2023 09:57
@nielsvanhooy nielsvanhooy changed the title Fix: Calling exists() with filters doesn't work SQLAlchemy contrib Fixes #2221 fix:: Calling exists() with filters doesn't work SQLAlchemy contrib Fixes #2221 Aug 26, 2023
@nielsvanhooy nielsvanhooy changed the title fix:: Calling exists() with filters doesn't work SQLAlchemy contrib Fixes #2221 fix: Calling exists() with filters doesn't work SQLAlchemy contrib Fixes #2221 Aug 26, 2023
@provinzkraut provinzkraut changed the title fix: Calling exists() with filters doesn't work SQLAlchemy contrib Fixes #2221 fix(sqlalchemy-repo): #2221 - Filters not available in exists() Aug 26, 2023
@cofin
Copy link
Member

cofin commented Aug 26, 2023

@all-contributors add @nielsvanhooy for bugs, tests, and code

@allcontributors
Copy link
Contributor

@cofin

I've put up a pull request to add @nielsvanhooy! 🎉

@cofin cofin enabled auto-merge (squash) August 26, 2023 17:57
@cofin cofin merged commit bb4cb71 into litestar-org:main Aug 26, 2023
16 checks passed
@github-actions
Copy link

Documentation preview will be available shortly at https://litestar-org.github.io/litestar-docs-preview/2228

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.

Bug: Calling exists() with filters doesn't work SQLAlchemy contrib
3 participants