-
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
Move csv_v2 and csv_searchsource to export type class #160041
Merged
rshen91
merged 45 commits into
elastic:reporting/new-export-type-registry
from
rshen91:csv-export-type
Jul 5, 2023
Merged
Move csv_v2 and csv_searchsource to export type class #160041
rshen91
merged 45 commits into
elastic:reporting/new-export-type-registry
from
rshen91:csv-export-type
Jul 5, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rshen91
changed the title
Refactor csv_v2 to export type class
Move csv_v2 and csv_searchsource to export type class
Jun 20, 2023
rshen91
added
release_note:skip
Skip the PR/issue when compiling release notes
backport:skip
This commit does not require backporting
(Deprecated) Feature:Reporting
Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead
labels
Jun 20, 2023
9 tasks
## Summary This partially addresses elastic#158092 This PR refactors the generic function getExportType(). This PR is concerned only with the PDF export type and refactors it into a class instance. This class is then used in the request handler and the execute report functionality in Reporting. The execute_report.test.ts is removed in this PR and will be part of the clean up needed in a subsequent PR once CSV and PNG are also refactored to class instances instead of the getExportType() function.
## Summary This partially addresses elastic#158092 This PR refactors the generic function getExportType(). This PR is concerned only with the PDF export type and refactors it into a class instance. This class is then used in the request handler and the execute report functionality in Reporting. The execute_report.test.ts is removed in this PR and will be part of the clean up needed in a subsequent PR once CSV and PNG are also refactored to class instances instead of the getExportType() function.
rshen91
force-pushed
the
reporting/new-export-type-registry
branch
from
June 28, 2023 15:15
497f73c
to
c43b014
Compare
## Summary This partially addresses elastic#158092 This PR refactors the generic function getExportType(). This PR is concerned only with the PDF export type and refactors it into a class instance. This class is then used in the request handler and the execute report functionality in Reporting. The execute_report.test.ts is removed in this PR and will be part of the clean up needed in a subsequent PR once CSV and PNG are also refactored to class instances instead of the getExportType() function.
rshen91
force-pushed
the
reporting/new-export-type-registry
branch
from
June 30, 2023 18:09
c43b014
to
7c87383
Compare
rshen91
force-pushed
the
reporting/new-export-type-registry
branch
from
July 5, 2023 13:51
7c87383
to
c7c7caf
Compare
tsullivan
reviewed
Jul 5, 2023
tsullivan
reviewed
Jul 5, 2023
x-pack/plugins/reporting/server/export_types/csv_searchsource/csv_searchsource.ts
Show resolved
Hide resolved
tsullivan
reviewed
Jul 5, 2023
tsullivan
approved these changes
Jul 5, 2023
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.
LGTM! Great work on this!
💔 Build FailedFailed CI Steps
Test Failures
Metrics [docs]
History
To update your PR or re-run it, just comment with: cc @rshen91 |
rshen91
added a commit
that referenced
this pull request
Jul 6, 2023
## Summary This is a part of #158092 This PR encompasses both csv_v2 and csv_searchsource as the CsvExportType and CsvSearchsourceExportType. Based on the reporting plugin readme, CsvSearchsourceExportType is currently used but CsvV2ExportType is refactored for when it can reach feature parity to csv searchsource. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Timothy Sullivan <[email protected]>
rshen91
added a commit
that referenced
this pull request
Jul 10, 2023
## Summary This is a part of #158092 This PR encompasses both csv_v2 and csv_searchsource as the CsvExportType and CsvSearchsourceExportType. Based on the reporting plugin readme, CsvSearchsourceExportType is currently used but CsvV2ExportType is refactored for when it can reach feature parity to csv searchsource. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Timothy Sullivan <[email protected]>
rshen91
added a commit
that referenced
this pull request
Jul 11, 2023
## Summary This is a part of #158092 This PR encompasses both csv_v2 and csv_searchsource as the CsvExportType and CsvSearchsourceExportType. Based on the reporting plugin readme, CsvSearchsourceExportType is currently used but CsvV2ExportType is refactored for when it can reach feature parity to csv searchsource. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Timothy Sullivan <[email protected]>
rshen91
added a commit
that referenced
this pull request
Jul 12, 2023
## Summary This is a part of #158092 This PR encompasses both csv_v2 and csv_searchsource as the CsvExportType and CsvSearchsourceExportType. Based on the reporting plugin readme, CsvSearchsourceExportType is currently used but CsvV2ExportType is refactored for when it can reach feature parity to csv searchsource. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Timothy Sullivan <[email protected]>
rshen91
added a commit
that referenced
this pull request
Jul 12, 2023
## Summary This is a part of #158092 This PR encompasses both csv_v2 and csv_searchsource as the CsvExportType and CsvSearchsourceExportType. Based on the reporting plugin readme, CsvSearchsourceExportType is currently used but CsvV2ExportType is refactored for when it can reach feature parity to csv searchsource. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Timothy Sullivan <[email protected]>
rshen91
added a commit
that referenced
this pull request
Jul 13, 2023
## Summary This is a part of #158092 This PR encompasses both csv_v2 and csv_searchsource as the CsvExportType and CsvSearchsourceExportType. Based on the reporting plugin readme, CsvSearchsourceExportType is currently used but CsvV2ExportType is refactored for when it can reach feature parity to csv searchsource. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Timothy Sullivan <[email protected]>
rshen91
added a commit
to rshen91/kibana
that referenced
this pull request
Jul 20, 2023
## Summary This is a part of elastic#158092 This PR encompasses both csv_v2 and csv_searchsource as the CsvExportType and CsvSearchsourceExportType. Based on the reporting plugin readme, CsvSearchsourceExportType is currently used but CsvV2ExportType is refactored for when it can reach feature parity to csv searchsource. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Timothy Sullivan <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport:skip
This commit does not require backporting
(Deprecated) Feature:Reporting
Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead
release_note:skip
Skip the PR/issue when compiling release notes
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This is a part of #158092
This PR encompasses both csv_v2 and csv_searchsource as the CsvExportType and CsvSearchsourceExportType. Based on the reporting plugin readme, CsvSearchsourceExportType is currently used but CsvV2ExportType is refactored for when it can reach feature parity to csv searchsource.
Checklist