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 limit parameter not passed to requests by HTTP backend #792

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

juhoinkinen
Copy link
Member

@juhoinkinen juhoinkinen commented Jun 12, 2024

I noticed that the limit parameter in the project configuration had no effect to the number of the suggestions in the case of the HTTP backend. This is fixed by adding that parameter to the POST request, if it is used.

Also adds a test to verify that the the POST request by the HTTP backend actually contains the intended arguments.

@juhoinkinen juhoinkinen added this to the 1.2 milestone Jun 12, 2024
Copy link

codecov bot commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.64%. Comparing base (3b5f7a1) to head (011e602).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #792   +/-   ##
=======================================
  Coverage   99.64%   99.64%           
=======================================
  Files          91       91           
  Lines        6817     6831   +14     
=======================================
+ Hits         6793     6807   +14     
  Misses         24       24           

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

Copy link

sonarcloud bot commented Jun 13, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@juhoinkinen juhoinkinen changed the title Fix limit parameter to not passed to requests by HTTP backend Fix limit parameter not passed to requests by HTTP backend Jun 13, 2024
@juhoinkinen juhoinkinen marked this pull request as ready for review June 13, 2024 08:02
@juhoinkinen juhoinkinen requested a review from osma June 13, 2024 08:03
@juhoinkinen
Copy link
Member Author

@CodiumAI-Agent /review

@CodiumAI-Agent
Copy link

PR Reviewer Guide 🔍

⏱️ Estimated effort to review [1-5] 2
🧪 Relevant tests Yes
🔒 Security concerns No
⚡ Key issues to review None

Copy link
Member

@osma osma left a comment

Choose a reason for hiding this comment

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

lgtm

@juhoinkinen juhoinkinen merged commit e6a20fc into main Jul 1, 2024
17 checks passed
@juhoinkinen juhoinkinen deleted the fix-http-backend-params-not-passed-to-request branch July 1, 2024 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants