Skip to content

feat: download dump with all info #1862

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

Merged
merged 11 commits into from
Jan 22, 2025
Merged

feat: download dump with all info #1862

merged 11 commits into from
Jan 22, 2025

Conversation

astandrik
Copy link
Collaborator

@astandrik astandrik commented Jan 21, 2025

Closes #984

Stand

CI Results

Test Status: ⚠️ FLAKY

📊 Full Report

Total Passed Failed Flaky Skipped
262 260 0 2 0

😟 No changes in tests. 😕

Bundle Size: 🔺

Current: 80.06 MB | Main: 80.05 MB
Diff: +9.74 KB (0.01%)

⚠️ Bundle size increased. Please review.

ℹ️ 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.

@astandrik astandrik requested a review from Copilot January 21, 2025 13:00
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

@@ -13,6 +13,10 @@
"title.result": "Result",
"text_plan-svg": "Execution plan",
"text_open-new-tab": "Open in new tab",
"text_open-new-tab_description": "New tab",
Copy link
Contributor

Choose a reason for hiding this comment

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

This description seems to be redundant

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

image it is not

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

const diagnosticsData = {
...queryResultsInfo,
database,
timestamp: new Date().toISOString(),
Copy link
Contributor

Choose a reason for hiding this comment

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

If I were user, I would expect that in timestamp field it is some query stats - start or finish. What do you think about renaming this property?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

removed

queryResultsInfo={{
ast: data.ast,
stats: data.stats,
queryText,
Copy link
Contributor

Choose a reason for hiding this comment

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

lets' move queryText on top, so it would be easier to identify what about diagnostics file is?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

Comment on lines 147 to 153
const url = URL.createObjectURL(blob);
const link = document.createElement('a');
link.href = url;
link.download = `query-diagnostics-${new Date().getTime()}.json`;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe move this logic to helper?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

@ydb-platform ydb-platform deleted a comment from Raubzeug Jan 21, 2025
@astandrik astandrik requested a review from Raubzeug January 21, 2025 14:09
@astandrik
Copy link
Collaborator Author

stand redeployed

@Raubzeug
Copy link
Contributor

As for me src/containers/Tenant/Query/QueryResult/components/QueryInfoDropdown/utils.ts is quite hard to understand... let's just move creation of the link, clicking it and removing to helper.


const renderSwitcher = (props: ButtonProps) => {
return (
<Button view="flat-secondary" loading={isLoading} disabled={isLoading} {...props}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets add ActionTooltip for title.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added

@astandrik astandrik requested a review from Raubzeug January 21, 2025 15:05
@astandrik astandrik added this pull request to the merge queue Jan 22, 2025
Merged via the queue into main with commit f09cbe9 Jan 22, 2025
7 checks passed
@astandrik astandrik deleted the astandrik.984 branch January 22, 2025 08:12
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.

add ability to download dump with all info related to the query execution or explain
2 participants