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

PMM-13373 Different QAN max query length for MongoDB. #3273

Merged
merged 4 commits into from
Nov 8, 2024

Conversation

JiriCtvrtka
Copy link
Contributor

@JiriCtvrtka JiriCtvrtka commented Oct 29, 2024

PMM-13373

Link to the Feature Build: Percona-Lab/pmm-submodules#3751

Copy link

codecov bot commented Oct 29, 2024

Codecov Report

Attention: Patch coverage is 86.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 43.41%. Comparing base (7d2c4fd) to head (5452989).
Report is 11 commits behind head on v3.

Files with missing lines Patch % Lines
...gents/postgres/pgstatmonitor/stat_monitor_cache.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##               v3    #3273   +/-   ##
=======================================
  Coverage   43.41%   43.41%           
=======================================
  Files         360      360           
  Lines       43979    43981    +2     
=======================================
+ Hits        19093    19095    +2     
  Misses      23224    23224           
  Partials     1662     1662           
Flag Coverage Δ
agent 51.81% <86.66%> (+<0.01%) ⬆️

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

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

@JiriCtvrtka JiriCtvrtka changed the base branch from main to v3 October 29, 2024 11:26
@JiriCtvrtka JiriCtvrtka force-pushed the PMM-13373-QAN-mongo-query-length branch from 9c1b7fa to 331415c Compare October 29, 2024 11:26
@JiriCtvrtka JiriCtvrtka marked this pull request as ready for review October 30, 2024 08:45
@JiriCtvrtka JiriCtvrtka requested a review from a team as a code owner October 30, 2024 08:45
@JiriCtvrtka JiriCtvrtka requested review from ademidoff and idoqo and removed request for a team October 30, 2024 08:45
Comment on lines 33 to 35
// MongoQuery truncate query to specific length of chars, if needed. -1: No limit, 0: Default (4096).
// Also truncate all invalid UTF-8 chars.
func MongoQuery(q string, maxQueryLength int32) (string, bool) {
Copy link
Member

Choose a reason for hiding this comment

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

do we really need it to be a separate function instead of 3rd parameter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No we dont, but for me it looked more clear. Also it has less affected files. Changed back to one func with 3 params.

@BupycHuk BupycHuk merged commit 1f96828 into v3 Nov 8, 2024
25 checks passed
@BupycHuk BupycHuk deleted the PMM-13373-QAN-mongo-query-length branch November 8, 2024 10:07
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.

4 participants