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: change trace and svg mutations to lazy query #1640

Merged
merged 9 commits into from
Nov 18, 2024

Conversation

astandrik
Copy link
Collaborator

@astandrik astandrik commented Nov 16, 2024

This pull request includes several changes to the src/containers/Tenant/Query/ExecuteResult components, updates to API endpoints, and new test cases for the sidebar and query editor functionalities. The most important changes include modifying API queries, adding new test utilities and classes, and updating existing test cases.

API Query Modifications:

Test Enhancements:

Closes #1639

CI Results

Test Status: ✅ PASSED

📊 Full Report

Total Passed Failed Flaky Skipped
154 154 0 0 0

Bundle Size: 🔽

Current: 66.07 MB | Main: 66.08 MB
Diff: 0.00 MB (-0.01%)

✅ Bundle size decreased.

ℹ️ CI Information
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • 📊 indicates links to detailed reports.
  • 🔺 indicates increase, 🔽 decrease, and ✅ no change in bundle size.

@@ -23,7 +23,7 @@ interface PlanToSvgButtonProps {
export function PlanToSvgButton({plan, database}: PlanToSvgButtonProps) {
const [error, setError] = React.useState<string | null>(null);
const [blobUrl, setBlobUrl] = React.useState<string | null>(null);
const [getPlanToSvg, {isLoading}] = planToSvgApi.usePlanToSvgQueryMutation();
const [getPlanToSvg, {isLoading}] = planToSvgApi.useLazyPlanToSvgQueryQuery();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thats actual changes

@@ -20,7 +20,7 @@ export function TraceButton({traceId, isTraceReady}: TraceUrlButtonProps) {
const checkTraceUrl = traceCheck?.url ? replaceParams(traceCheck.url, {traceId}) : '';
const traceUrl = traceView?.url ? replaceParams(traceView.url, {traceId}) : '';

const [checkTrace, {isLoading, isUninitialized}] = traceApi.useCheckTraceMutation();
const [checkTrace, {isLoading, isUninitialized}] = traceApi.useLazyCheckTraceQuery();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thats actual changes

@astandrik astandrik self-assigned this Nov 16, 2024
@@ -27,29 +27,6 @@ test.describe('Test Query Editor', async () => {
await tenantPage.goto(pageQueryParams);
});

test('Settings dialog opens on Gear click and closes on Cancel', async ({page}) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

moved to separate files

@astandrik astandrik added this pull request to the merge queue Nov 18, 2024
Merged via the queue into main with commit 19d7f56 Nov 18, 2024
6 checks passed
@astandrik astandrik deleted the astandrik.lazy-query-1639 branch November 18, 2024 08:11
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.

change trace and svg mutations to lazy query
2 participants