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

pkg/query: Only fetch mappings from profileB when in compare mode #4713

Merged
merged 3 commits into from
Jun 5, 2024

Conversation

yomete
Copy link
Contributor

@yomete yomete commented Jun 4, 2024

No description provided.

Copy link

alwaysmeticulous bot commented Jun 4, 2024

🤖 Meticulous spotted visual differences in 1 of 350 screens tested: view and approve differences detected.

Last updated for commit 438c318. This comment will update as new commits are pushed.

@@ -289,22 +289,14 @@ func (q *ColumnQueryAPI) Query(ctx context.Context, req *pb.QueryRequest) (*pb.Q
}

case pb.QueryRequest_MODE_DIFF:
mappingFiles_a, labels_a, err := getMappingFilesAndLabels(ctx, q.querier, req.GetDiff().A.GetMerge().GetQuery(), req.GetDiff().A.GetMerge().Start.AsTime(), req.GetDiff().A.GetMerge().End.AsTime())
mappingFiles, labels, err := getMappingFilesAndLabels(ctx, q.querier, req.GetDiff().B.GetMerge().GetQuery(), req.GetDiff().B.GetMerge().Start.AsTime(), req.GetDiff().B.GetMerge().End.AsTime())
Copy link
Member

Choose a reason for hiding this comment

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

this probably deserves a comment why we're only doing B

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fair enough, will add one.

@yomete yomete merged commit 81d901e into main Jun 5, 2024
38 checks passed
@brancz brancz deleted the return-mapping-profileb branch June 5, 2024 11:17
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