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

Logs: Add Download logs button to log-browser #55163

Conversation

svennergr
Copy link
Contributor

@svennergr svennergr commented Sep 14, 2022

WIP:
This is still work in progress as it

  • needs tests
  • should not be merged until Grafana 9.2.0

What this PR does / why we need it:
In #50188 we decided to add a new Downloads button to the logs browser. This browser supports only txt-format for now.

Which issue(s) this PR fixes:

Fixes #50188

Preview of the feature:

Screen.Recording.2022-09-14.at.14.06.22.mov

@grafanabot
Copy link
Contributor

Copy link
Contributor

@matyax matyax left a comment

Choose a reason for hiding this comment

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

Looks great!

reportInteraction('grafana_logs_download_logs_clicked', {
app,
format: 'logs',
});
const logsModel = dataFrameToLogsModel(data || [], undefined);
Copy link
Contributor

Choose a reason for hiding this comment

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

Great cleanup.

@matyax matyax requested a review from a team September 14, 2022 12:42
@svennergr svennergr changed the title Logs: Add Downloads button to log browser WIP: Logs: Add Downloads button to log browser Sep 14, 2022
@grafanabot
Copy link
Contributor

@@ -173,6 +173,7 @@
"babel-loader": "8.2.5",
"babel-plugin-angularjs-annotate": "0.10.0",
"babel-plugin-macros": "3.1.0",
"blob-polyfill": "7.0.20220408",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added that in order to add methods to the Blob object, which seem to be missing on JSDom.

Ref jsdom/jsdom#2555

@grafanabot
Copy link
Contributor

@dsotirakis dsotirakis modified the milestones: 9.2.0, 9.2.0-beta1 Sep 22, 2022
@svennergr svennergr modified the milestones: 9.2.0, 9.3.0 Sep 28, 2022
@svennergr svennergr marked this pull request as ready for review September 29, 2022 10:19
@svennergr svennergr requested review from joshhunt and a team as code owners September 29, 2022 10:19
@svennergr svennergr requested review from kaydelaney and removed request for a team September 29, 2022 10:19
@svennergr svennergr changed the title WIP: Logs: Add Downloads button to log browser Logs: Add Downloads button to log browser Sep 29, 2022
@svennergr svennergr changed the title Logs: Add Downloads button to log browser Logs: Add Download logs button to log log-browser Sep 29, 2022
@grafanabot
Copy link
Contributor

@svennergr svennergr merged commit 6bc09a6 into main Sep 29, 2022
@svennergr svennergr deleted the svennergr/50188-loki-datasource-make-the-downloads-button-more-prominent branch September 29, 2022 14:09
@leandro-deveikis leandro-deveikis modified the milestones: 9.3.0, 9.3.0-beta1 Nov 14, 2022
@svennergr svennergr changed the title Logs: Add Download logs button to log log-browser Logs: Add Download logs button to log-browser Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loki Datasource: Make the "Downloads" button more prominent
6 participants