Skip to content

[Reporting] Convert main Reporting index to TS#49129

Merged
tsullivan merged 9 commits intoelastic:masterfrom
tsullivan:reporting/new-platform-shim-part-ii
Nov 14, 2019
Merged

[Reporting] Convert main Reporting index to TS#49129
tsullivan merged 9 commits intoelastic:masterfrom
tsullivan:reporting/new-platform-shim-part-ii

Conversation

@tsullivan
Copy link
Copy Markdown
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
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
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 a team, bmcconaghy and joelgriffith October 24, 2019 17:32
@tsullivan tsullivan added Feature:NP Migration zDeprecated 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
Copy Markdown
Contributor

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

@tsullivan tsullivan marked this pull request as ready for review October 24, 2019 17:33
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

💔 Build Failed

@brianseeders

This comment has been minimized.

@elasticmachine
Copy link
Copy Markdown
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
Copy Markdown
Contributor

💔 Build Failed

@tsullivan
Copy link
Copy Markdown
Member Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

* @return {Object} kibana usage stats type collection object
*/
export function getReportingUsageCollector(server: any, isReady: boolean) {
export function getReportingUsageCollector(server: any, isReady: () => boolean) {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@tsullivan
Copy link
Copy Markdown
Member Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
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