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

[Reporting] Convert main Reporting index to TS #49129

Merged

Conversation

tsullivan
Copy link
Member

@tsullivan tsullivan commented Oct 23, 2019

Summary

Follow along #48825 in migrating Reporting to the Kibana new platform.

  1. Convert reporting/index to Typescript
  2. Extract the config function to an external helper function
  3. Convert a few more modules that were imported from reporting/index

Release Notes: Changes to prepare Reporting for Kibana v8.0.0

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@tsullivan tsullivan force-pushed the reporting/new-platform-shim-part-ii branch from b444a6c to 3f34734 Compare October 24, 2019 17:29
@tsullivan tsullivan requested review from joelgriffith, bmcconaghy and a team October 24, 2019 17:32
@tsullivan tsullivan added Feature:NP Migration (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead v7.6.0 v8.0.0 review Team:Stack Services labels Oct 24, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-stack-services (Team:Stack Services)

@tsullivan tsullivan marked this pull request as ready for review October 24, 2019 17:33
import { config as appConfig } from './server/config/config';
import { getDefaultChromiumSandboxDisabled } from './server/browsers';

export async function config(Joi: any) {
Copy link
Member Author

Choose a reason for hiding this comment

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

@joelgriffith and I have been wanting to split up the Reporting index file for awhile. After converting it to Typescript and having all this code go through prettier, it made sense to break out this config section from the Reporting index.

Copy link
Contributor

Choose a reason for hiding this comment

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

+1000

@elasticmachine
Copy link
Contributor

💔 Build Failed

@brianseeders

This comment has been minimized.

@elasticmachine
Copy link
Contributor

💔 Build Failed

@tsullivan tsullivan force-pushed the reporting/new-platform-shim-part-ii branch from 3f34734 to 05ea029 Compare October 25, 2019 22:05
@elasticmachine
Copy link
Contributor

💔 Build Failed

@tsullivan
Copy link
Member Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@@ -13,7 +13,7 @@ import { getReportingUsage } from './get_reporting_usage';
* @param {Object} server
* @return {Object} kibana usage stats type collection object
*/
export function getReportingUsageCollector(server: any, isReady: boolean) {
export function getReportingUsageCollector(server: any, isReady: () => boolean) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch

Copy link
Contributor

@joelgriffith joelgriffith left a comment

Choose a reason for hiding this comment

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

Really like separating out the config schema in index

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@tsullivan
Copy link
Member Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@tsullivan tsullivan merged commit 0e9b576 into elastic:master Nov 14, 2019
@tsullivan tsullivan deleted the reporting/new-platform-shim-part-ii branch November 14, 2019 14:30
tsullivan added a commit to tsullivan/kibana that referenced this pull request Nov 14, 2019
* [Reporting] Convert main Reporting index to TS

* fix typo that broke build

* fix type file import

* fix the ts imports for build
tsullivan added a commit that referenced this pull request Nov 18, 2019
* [Reporting] Convert main Reporting index to TS

* fix typo that broke build

* fix type file import

* fix the ts imports for build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants