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

refactor: merge query result components #1661

Merged
merged 2 commits into from
Nov 22, 2024
Merged

Conversation

artemmufazalov
Copy link
Member

@artemmufazalov artemmufazalov commented Nov 20, 2024

Closes #1120

Stand: https://nda.ya.ru/t/5Ck215VL79pZSk

CI Results

Test Status: βœ… PASSED

πŸ“Š Full Report

Total Passed Failed Flaky Skipped
194 194 0 0 0

Bundle Size: πŸ”½

Current: 66.10 MB | Main: 66.12 MB
Diff: 0.02 MB (-0.02%)

βœ… 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.

@artemmufazalov artemmufazalov marked this pull request as ready for review November 21, 2024 18:45
@astandrik astandrik requested a review from Copilot November 21, 2024 19:53

Choose a reason for hiding this comment

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

Copilot reviewed 23 out of 38 changed files in this pull request and generated no suggestions.

Files not reviewed (15)
  • src/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss: Language not supported
  • src/containers/Tenant/Query/ExplainResult/i18n/en.json: Language not supported
  • src/containers/Tenant/Query/QueryResult/QueryResultViewer.scss: Language not supported
  • src/containers/Tenant/Query/QueryResult/components/Ast/Ast.scss: Language not supported
  • src/containers/Tenant/Query/QueryResult/components/Graph/Graph.scss: Language not supported
  • src/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.scss: Language not supported
  • src/containers/Tenant/Query/QueryResult/components/QueryResultError/QueryResultError.scss: Language not supported
  • src/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.scss: Language not supported
  • src/containers/Tenant/Query/ExecuteResult/ExecuteResult.tsx: Evaluated as low risk
  • src/containers/Tenant/Query/ExecuteResult/utils.ts: Evaluated as low risk
  • src/containers/Tenant/Query/ExplainResult/ExplainResult.tsx: Evaluated as low risk
  • src/containers/Tenant/Query/ExplainResult/components/Graph/Graph.tsx: Evaluated as low risk
  • src/containers/Tenant/Query/ExplainResult/i18n/index.ts: Evaluated as low risk
  • src/containers/Tenant/Query/QueryEditor/QueryEditor.tsx: Evaluated as low risk
  • src/containers/Tenant/Query/QueryResult/components/PlanToSvgButton/PlanToSvgButton.tsx: Evaluated as low risk
Comments skipped due to low confidence (1)

src/containers/Tenant/Query/QueryResult/QueryResultViewer.tsx:41

  • [nitpick] The variable name b is ambiguous. It should be renamed to something more descriptive, like block.
const b = cn('ydb-query-result');
@Raubzeug
Copy link
Contributor

Raubzeug commented Nov 22, 2024

Screenshot 2024-11-22 at 09 40 04

It seems Stats are lost when I "Run" query. For now we show it even if it is null. Probably we shouldn't do it. But I also suggest to remove radio button if only result is shown.

@artemmufazalov
Copy link
Member Author

artemmufazalov commented Nov 22, 2024

It seems Stats are lost when I "Run" query. For now we show it even if it is null. Probably we shouldn't do it. But I also suggest to remove radio button if only result is shown.

What do you think, if we will show all tabs, like we do for explain, but if something is empty, we will show some stub message?

Screenshot 2024-11-22 at 12 01 33 Screenshot 2024-11-22 at 12 01 37 Screenshot 2024-11-22 at 12 01 41

@Raubzeug
Copy link
Contributor

What do you think, if we will show all tabs, like we do for explain, but if something is empty, we will show some stub message?

Deal!

@artemmufazalov artemmufazalov added this pull request to the merge queue Nov 22, 2024
Merged via the queue into main with commit 05fba4f Nov 22, 2024
7 checks passed
@artemmufazalov artemmufazalov deleted the refactor-query-result branch November 22, 2024 11:50
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.

Do not split explain and execute to different components
2 participants