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-12151-12273 Explain, table improvements. #2349

Merged
merged 35 commits into from
Jul 28, 2023
Merged

Conversation

JiriCtvrtka
Copy link
Contributor

@JiriCtvrtka JiriCtvrtka commented Jul 4, 2023

PMM-334, PMM-12151 Fix proper schema usage when dbname is not included in query itself.
PMM-12273 Fix problem with explain in case of query with comments, formatting etc.

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

If this PR adds or removes or alters one or more API endpoints, please review and add or update the relevant API documents as well:

  • API Docs updated

If this PR is related to some other PRs in this or other repositories, please provide links to those PRs:

  • Links to related pull requests (optional).

@codecov
Copy link

codecov bot commented Jul 4, 2023

Codecov Report

Merging #2349 (d3afd2f) into main (5a88533) will increase coverage by 0.00%.
The diff coverage is 33.33%.

@@           Coverage Diff           @@
##             main    #2349   +/-   ##
=======================================
  Coverage   42.91%   42.91%           
=======================================
  Files         385      385           
  Lines       48167    48183   +16     
=======================================
+ Hits        20670    20679    +9     
- Misses      25557    25566    +9     
+ Partials     1940     1938    -2     
Flag Coverage Δ
admin 10.41% <ø> (-0.05%) ⬇️
agent 52.79% <70.58%> (+0.11%) ⬆️
managed 44.13% <0.00%> (-0.03%) ⬇️
vmproxy 69.69% <ø> (ø)

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

Files Changed Coverage Δ
agent/agents/mysql/perfschema/history.go 77.77% <ø> (+17.77%) ⬆️
managed/services/agents/actions.go 0.00% <0.00%> (ø)
managed/services/qan/client.go 78.99% <0.00%> (-1.87%) ⬇️
agent/runner/actions/mysql_explain_action.go 61.07% <37.50%> (-1.34%) ⬇️
agent/agents/mysql/perfschema/perfschema.go 47.27% <100.00%> (-3.03%) ⬇️
agent/runner/actions/query_transform.go 100.00% <100.00%> (+1.49%) ⬆️

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@JiriCtvrtka
Copy link
Contributor Author

Managed failed, but its not because of changes in PR (TestDevContainer/Check)

@JiriCtvrtka JiriCtvrtka marked this pull request as ready for review July 4, 2023 12:14
@JiriCtvrtka JiriCtvrtka requested review from ademidoff and idoqo and removed request for a team July 4, 2023 12:14
agent/runner/actions/query_transform_test.go Show resolved Hide resolved
api/agentpb/agent.proto Show resolved Hide resolved
api/qanpb/object_details.proto Outdated Show resolved Hide resolved
api/qanpb/object_details.proto Outdated Show resolved Hide resolved
agent/runner/actions/query_transform_test.go Show resolved Hide resolved
agent/runner/actions/query_transform_test.go Outdated Show resolved Hide resolved
agent/runner/actions/query_transform_test.go Outdated Show resolved Hide resolved
api/qanpb/object_details.proto Outdated Show resolved Hide resolved
qan-api2/models/metrics.go Outdated Show resolved Hide resolved
qan-api2/models/metrics.go Outdated Show resolved Hide resolved
api/qanpb/object_details.proto Outdated Show resolved Hide resolved
managed/services/agents/actions.go Outdated Show resolved Hide resolved
q = res.ExplainFingerprint

s, err := s.qanClient.SchemaByQueryID(ctx, serviceID, queryID)
Copy link
Member

Choose a reason for hiding this comment

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

should we merge this endpoint with the previous one to not call qan twice?

Copy link
Contributor Author

@JiriCtvrtka JiriCtvrtka Jul 10, 2023

Choose a reason for hiding this comment

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

@BupycHuk So in this case you want to merge ExplainFingerprintByQueryID and SchemaByQueryID and return everything in scope of ExplainFingerprintByQueryID?

Copy link
Member

@BupycHuk BupycHuk left a comment

Choose a reason for hiding this comment

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

Code looks good to me, just suggesting to remove the second endpoint to decrease codebase

@JiriCtvrtka
Copy link
Contributor Author

Second endpoint is removed, I will also remove first one if #2349 (comment)

@JiriCtvrtka JiriCtvrtka merged commit 146167a into main Jul 28, 2023
31 checks passed
@JiriCtvrtka JiriCtvrtka deleted the PMM-12151-12273-explain branch July 28, 2023 08:35
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.

5 participants