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

CLIENT-2476 - Disallow use of add-ops in foreground scans/queries #552

Open
wants to merge 7 commits into
base: dev
Choose a base branch
from

Conversation

DomPeliniAerospike
Copy link
Collaborator

CLIENT-2476
Disallowed use of operations with foreground queries (foreach and results) Added sufficent testing for each error condition

CLIENT-2476
Disallowed use of operations with foreground queries (foreach and results)
Added sufficent testing for each error condition
@codecov-commenter
Copy link

codecov-commenter commented Jan 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (26f4ea8) 81.25% compared to head (a4ea3c0) 81.29%.
Report is 1 commits behind head on stage.

Additional details and impacted files
@@            Coverage Diff             @@
##            stage     #552      +/-   ##
==========================================
+ Coverage   81.25%   81.29%   +0.04%     
==========================================
  Files          99       99              
  Lines       14897    14913      +16     
==========================================
+ Hits        12105    12124      +19     
+ Misses       2792     2789       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

test/new_tests/test_query_apply.py Outdated Show resolved Hide resolved
test/new_tests/test_query_apply.py Outdated Show resolved Hide resolved
test/new_tests/test_query_apply.py Outdated Show resolved Hide resolved
Disallowed use of ops with scan.results and scan.foreach
Replaced test cases with the corect test cases.
Fixed lint issuess
test/new_tests/test_query.py Outdated Show resolved Hide resolved
test/new_tests/test_query.py Outdated Show resolved Hide resolved
test/new_tests/test_scan.py Outdated Show resolved Hide resolved
test/new_tests/test_scan.py Outdated Show resolved Hide resolved
@juliannguyen4
Copy link
Collaborator

You should also specify in the documentation for query.add_ops() that it should not be used for foreground queries (i.e when calling query.results() or query.foreach()). Also do the same for scans.

DomPeliniAerospike and others added 3 commits January 10, 2024 12:00
Co-authored-by: juliannguyen4 <109386615+juliannguyen4@users.noreply.github.com>
Co-authored-by: juliannguyen4 <109386615+juliannguyen4@users.noreply.github.com>
Co-authored-by: juliannguyen4 <109386615+juliannguyen4@users.noreply.github.com>
@DomPeliniAerospike
Copy link
Collaborator Author

You should also specify in the documentation for query.add_ops() that it should not be used for foreground queries (i.e when calling query.results() or query.foreach()). Also do the same for scans.

I will add documentation to explain this and let you know when it has been finished.

DomPeliniAerospike and others added 2 commits January 10, 2024 12:03
Co-authored-by: juliannguyen4 <109386615+juliannguyen4@users.noreply.github.com>
@DomPeliniAerospike DomPeliniAerospike changed the title CLIENT-2476 CLIENT-2476 - Disallow use of add-ops in foreground scans/queries Feb 5, 2024
@juliannguyen4 juliannguyen4 changed the base branch from stage to dev February 22, 2024 20:15
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.

None yet

3 participants