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

Support limit for Points scroll #33

Merged
merged 2 commits into from
Aug 29, 2023
Merged

Support limit for Points scroll #33

merged 2 commits into from
Aug 29, 2023

Conversation

yunwuxin
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Aug 28, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.38% 🎉

Comparison is base (f33b689) 87.60% compared to head (a8d7c11) 87.99%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #33      +/-   ##
============================================
+ Coverage     87.60%   87.99%   +0.38%     
- Complexity      278      291      +13     
============================================
  Files            57       58       +1     
  Lines           936      966      +30     
============================================
+ Hits            820      850      +30     
  Misses          116      116              
Flag Coverage Δ
unittests 87.99% <100.00%> (+0.38%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/Endpoints/Collections/Points.php 99.02% <100.00%> (+0.01%) ⬆️
src/Models/Request/ScrollRequest.php 100.00% <100.00%> (ø)

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

@hkulekci
Copy link
Owner

Hey @yunwuxin, good catch. Thanks for your contribution! Could you add a test for its parameter?
And there are other parameters as offset, with_payload, with_vector, etc. Would you mind adding them too?

@hkulekci
Copy link
Owner

Hey @yunwuxin, you are fantastic. I will check again after the pipeline.

if ($scrollParams instanceof Filter) {
$body['filter'] = $scrollParams->toArray();
} elseif ($scrollParams instanceof ScrollRequest) {
$body = $scrollParams->toArray();
Copy link
Owner

Choose a reason for hiding this comment

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

I guess we can keep for now Filter for bc break. But at the end, we need to remove it. We can pass filter by using request too.

@hkulekci hkulekci merged commit 5627d6e into hkulekci:main Aug 29, 2023
4 checks passed
@hkulekci
Copy link
Owner

Thanks for contribution ✌️🔥 merged!

@yunwuxin yunwuxin deleted the patch-1 branch August 30, 2023 08:08
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