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: CacheChecker filters syntax #7898

Merged
merged 5 commits into from
Jun 21, 2024

Conversation

vedantnaik19
Copy link
Contributor

Related Issues

Proposed Changes:

  • Use new filter syntax in the CacheChecker component instead of legacy ones.

How did you test it?

  • Existing unit tests

Notes for the reviewer

N/A

Checklist

@vedantnaik19 vedantnaik19 requested a review from a team as a code owner June 19, 2024 21:04
@vedantnaik19 vedantnaik19 requested review from shadeMe and removed request for a team June 19, 2024 21:04
@github-actions github-actions bot added the type:documentation Improvements on the docs label Jun 19, 2024
@vedantnaik19 vedantnaik19 changed the title fix: CacheChecker filters fix: CacheChecker filters syntax Jun 19, 2024
@coveralls
Copy link
Collaborator

coveralls commented Jun 19, 2024

Pull Request Test Coverage Report for Build 9588121513

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.01%) to 90.14%

Files with Coverage Reduction New Missed Lines %
document_stores/in_memory/document_store.py 1 97.87%
Totals Coverage Status
Change from base Build 9583192592: -0.01%
Covered Lines: 6994
Relevant Lines: 7759

💛 - Coveralls

@coveralls
Copy link
Collaborator

coveralls commented Jun 19, 2024

Pull Request Test Coverage Report for Build 9588140829

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.01%) to 90.14%

Files with Coverage Reduction New Missed Lines %
document_stores/in_memory/document_store.py 1 97.87%
Totals Coverage Status
Change from base Build 9583192592: -0.01%
Covered Lines: 6994
Relevant Lines: 7759

💛 - Coveralls

Copy link
Collaborator

@shadeMe shadeMe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Could you add the release note and a unit test?

@vedantnaik19 vedantnaik19 requested a review from a team as a code owner June 20, 2024 09:53
@vedantnaik19 vedantnaik19 requested review from dfokina and removed request for a team June 20, 2024 09:53
@vedantnaik19
Copy link
Contributor Author

Thanks for the PR! Could you add the release note and a unit test?

Hello 👋
I have added a release note now.
However, I am not sure if I should add another unit test, as there is an existing test which checks the functionality. 🤔

@silvanocerza
Copy link
Contributor

Hello 👋 I have added a release note now. However, I am not sure if I should add another unit test, as there is an existing test which checks the functionality. 🤔

@vedantnaik19 the current test is not that great. Best thing would be to use a mocked Document Store and verify that filter_documents() is called with the correct filters syntax.

As of now it's indirectly testing InMemoryDocumentStore.filter_documents() and that's why we didn't notice it was using the old filters syntax.

@coveralls
Copy link
Collaborator

coveralls commented Jun 20, 2024

Pull Request Test Coverage Report for Build 9595378983

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.01%) to 90.14%

Files with Coverage Reduction New Missed Lines %
document_stores/in_memory/document_store.py 1 97.87%
Totals Coverage Status
Change from base Build 9583192592: -0.01%
Covered Lines: 6994
Relevant Lines: 7759

💛 - Coveralls

@vedantnaik19
Copy link
Contributor Author

Hello 👋 I have added a release note now. However, I am not sure if I should add another unit test, as there is an existing test which checks the functionality. 🤔

@vedantnaik19 the current test is not that great. Best thing would be to use a mocked Document Store and verify that filter_documents() is called with the correct filters syntax.

As of now it's indirectly testing InMemoryDocumentStore.filter_documents() and that's why we didn't notice it was using the old filters syntax.

Hello 👋
I have added a test now. Please let me know if this is OK.
Also, thanks for your previous feedback @silvanocerza @shadeMe 🙌

@coveralls
Copy link
Collaborator

coveralls commented Jun 21, 2024

Pull Request Test Coverage Report for Build 9611011281

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.01%) to 90.046%

Files with Coverage Reduction New Missed Lines %
document_stores/in_memory/document_store.py 1 97.87%
Totals Coverage Status
Change from base Build 9610765652: -0.01%
Covered Lines: 6911
Relevant Lines: 7675

💛 - Coveralls

@coveralls
Copy link
Collaborator

coveralls commented Jun 21, 2024

Pull Request Test Coverage Report for Build 9611018079

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.01%) to 90.046%

Files with Coverage Reduction New Missed Lines %
document_stores/in_memory/document_store.py 1 97.87%
Totals Coverage Status
Change from base Build 9610765652: -0.01%
Covered Lines: 6911
Relevant Lines: 7675

💛 - Coveralls

Copy link
Contributor

@silvanocerza silvanocerza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@silvanocerza silvanocerza merged commit f5a34d4 into deepset-ai:main Jun 21, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic:tests type:documentation Improvements on the docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix CacheChecker Component to use new filters internally
4 participants