-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Reporting/CSV] Deprecate Download CSV, add a config flag to enable #178159
[Reporting/CSV] Deprecate Download CSV, add a config flag to enable #178159
Conversation
A documentation preview will be available soon. Request a new doc build by commenting
If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here. |
/ci |
ba0da5e
to
87f1801
Compare
/ci |
1 similar comment
/ci |
b18c4dd
to
c96b333
Compare
/ci |
c96b333
to
40b960f
Compare
d117dbc
to
b7c6e10
Compare
/ci |
/ci |
/ci |
…sullivan/kibana into reporting/fully-deprecate-download-csv
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested the new implemention. Looks good!
I'd suggest to look into the number of snapshot additions. Seems excessive, maybe we could consider asserting something more specific (e.g number of rows + inline snapshot of the first two line)
The many snapshot changes are due to:
|
Thanks for snapshots clean up 👏 |
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsESLint disabled line counts
References to deprecated APIs
Total ESLint disabled count
Unreferenced deprecated APIs
History
To update your PR or re-run it, just comment with: cc @tsullivan |
## Summary This PR fixes the serverless reporting API integration tests for MKI runs. ### The problem that we saw After #178159 was merged, we saw the `Reporting Generate CSV` API integration tests fail with `401` responses when running against MKI projects. It turned out that the tests were using hard-coded credentials that are only working locally / in CI - real serverless projects run with a different set of username and password. ### How this PR fixes it Remove hard-coded credentials from `x-pack/test_serverless/shared/services/svl_reporting.ts` and instead read them from the test config, which has the proper entries for local and MKI runs. I've also preemptively adjusted `x-pack/test_serverless/functional/services/svl_reporting.ts` and `x-pack/test_serverless/api_integration/test_suites/common/reporting/management.ts` in the same way even though they not run in MKI projects today. This will hopefully avoid the same set of problems when the tests eventually get re-enabled for MKI runs.
Closes #164104
Summary
Replace "Download CSV" with "Generate CSV report" to export a CSV file from saved search panel, deprecate "Download CSV", use a config flag for providing the deprecated feature.
This PR uses the
xpack.reporting.csv.enablePanelActionDownload
kibana.yml setting, which was previously unused, for choosing behavior of CSV export in a Dashboard saved search panel, and sets the default value tofalse
. The options allow the user to download a CSV file without creating a report (deprecated, support will be removed in the future) or to generate a CSV report (default).packages/kbn-reporting/public/reporting_api_client.ts
Checklist
Delete any items that are not applicable to this PR.
Release Note
Kibana CSV Reporting offered a feature allowing users to download a CSV file from a saved search panel in a dashboard, without having a report generated. This feature is now deprecated. Now, when users need to access saved search data from a dashboard panel as CSV, a normal report will be generated. To access the deprecated functionality, you can add
xpack.reporting.csv.enablePanelActionDownload: true
to kibana.yml, but this ability will be removed in a future version of Kibana.