Skip to content

Commit

Permalink
[Reporting] Wholesale moves client to newest-platform (#58945)
Browse files Browse the repository at this point in the history
* Move over to new plugin space, working implementation

* Fixing tests for report_listing snapshots

* WIP: Fixing react-component tests

* Fixing report_info_button tests

* Fixing download linksies

* WIP: Final working implementation

* Fixing attachAction API + API URLs

* Let the past die. Kill it if you have to. That’s the only way to become what you were meant to be.

* Fixing stream-client for new platform APIs

* Fixing types and tests

* Fix broken mock

* Adds back in warnings to report info button

* kibana.json line-breaks on required plugins

* Fixing broked snapshots

* Fix license checks in client-side components

* Adding back in warnings to report_listing component

* Fix danglig unused import

* Adds license checks for basic to our csv panel action

* Fixes issues from prior fork

* Move relative pathing to absolute

* Fix POST URL copying as we've moved from static methods

* Fix layoutId props

* Fixes types for layoutId

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
Joel Griffith and elasticmachine authored Mar 17, 2020
1 parent 4da0cb3 commit 6b7731b
Show file tree
Hide file tree
Showing 46 changed files with 920 additions and 714 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import { connect } from 'react-redux';
import { compose, withProps } from 'recompose';
import * as jobCompletionNotifications from '../../../../../reporting/public/lib/job_completion_notifications';
import { jobCompletionNotifications } from '../../../../../../../plugins/reporting/public';
// @ts-ignore Untyped local
import { getWorkpad, getPages } from '../../../state/selectors/workpad';
// @ts-ignore Untyped local
Expand Down
16 changes: 1 addition & 15 deletions x-pack/legacy/plugins/reporting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { resolve } from 'path';
import { PLUGIN_ID, UI_SETTINGS_CUSTOM_PDF_LOGO } from './common/constants';
import { config as reportingConfig } from './config';
import { legacyInit } from './server/legacy';
import { ReportingConfigOptions, ReportingPluginSpecOptions } from './types';
import { ReportingPluginSpecOptions } from './types';

const kbToBase64Length = (kb: number) => {
return Math.floor((kb * 1024 * 8) / 6);
Expand All @@ -25,20 +25,6 @@ export const reporting = (kibana: any) => {
config: reportingConfig,

uiExports: {
shareContextMenuExtensions: [
'plugins/reporting/share_context_menu/register_csv_reporting',
'plugins/reporting/share_context_menu/register_reporting',
],
embeddableActions: ['plugins/reporting/panel_actions/get_csv_panel_action'],
home: ['plugins/reporting/register_feature'],
managementSections: ['plugins/reporting/views/management'],
injectDefaultVars(server: Legacy.Server, options?: ReportingConfigOptions) {
const config = server.config();
return {
reportingPollConfig: options ? options.poll : {},
enablePanelActionDownload: config.get('xpack.reporting.csv.enablePanelActionDownload'),
};
},
uiSettingDefaults: {
[UI_SETTINGS_CUSTOM_PDF_LOGO]: {
name: i18n.translate('xpack.reporting.pdfFooterImageLabel', {
Expand Down

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions x-pack/legacy/plugins/reporting/public/constants/job_statuses.tsx

This file was deleted.

23 changes: 0 additions & 23 deletions x-pack/legacy/plugins/reporting/public/lib/download_report.ts

This file was deleted.

89 changes: 0 additions & 89 deletions x-pack/legacy/plugins/reporting/public/lib/job_queue_client.ts

This file was deleted.

37 changes: 0 additions & 37 deletions x-pack/legacy/plugins/reporting/public/lib/reporting_client.ts

This file was deleted.

27 changes: 0 additions & 27 deletions x-pack/legacy/plugins/reporting/public/register_feature.ts

This file was deleted.

This file was deleted.

This file was deleted.

59 changes: 0 additions & 59 deletions x-pack/legacy/plugins/reporting/public/views/management/jobs.js

This file was deleted.

Loading

0 comments on commit 6b7731b

Please sign in to comment.