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

NP Migration: Sample data #52753

Merged
merged 97 commits into from Dec 20, 2019
Merged

Conversation

flash1293
Copy link
Contributor

Fixes #50675

This PR migrates all APIs and route handlers around sample data to the new platform as part of the home plugin.

Changes the status code of the uninstall route from 200 to 204

…s api http routes for legacy platform and NP
@flash1293 flash1293 added release_note:skip Skip the PR/issue when compiling release notes Feature:NP Migration v7.6.0 labels Dec 11, 2019
@flash1293 flash1293 mentioned this pull request Dec 11, 2019
5 tasks
@flash1293 flash1293 marked this pull request as ready for review December 11, 2019 16:30
@flash1293 flash1293 requested a review from a team December 11, 2019 16:30
@flash1293 flash1293 requested review from a team as code owners December 11, 2019 16:30
@flash1293 flash1293 added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Dec 11, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@Kerry350 Kerry350 self-requested a review December 11, 2019 16:45
Copy link
Contributor

@Kerry350 Kerry350 left a comment

Choose a reason for hiding this comment

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

Infra changes look good, thanks 👌

Copy link
Member

@jgowdyelastic jgowdyelastic left a comment

Choose a reason for hiding this comment

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

ML changes LGTM

Copy link
Member

@kertal kertal left a comment

Choose a reason for hiding this comment

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

Code LGTM 👍


// Set to true to move timestamp to current week, preserving day of week and time of day
// Relative distance from timestamp to currentTimeMarker will not remain the same
preserveDayOfWeekTimeOfDay: boolean;
Copy link
Member

Choose a reason for hiding this comment

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

Thx for all this context ❤️

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This goes to @TinaHeiligers - I just brought the PR home :)

logger: Logger
) => {
const bulkInsert = async (docs: any) => {
function updateTimestamps(doc: any) {
Copy link
Member

Choose a reason for hiding this comment

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

Minor nit: it would help code readability at this position to e.g. refactor updateTimestamps out of the bulkInsert function, and to use an arrow function. would de-nest the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, refactored this a bit.

@flash1293 flash1293 requested a review from a team as a code owner December 20, 2019 12:10
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@crob611 crob611 left a comment

Choose a reason for hiding this comment

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

Canvas changes are good 👍

Copy link
Contributor

@kindsun kindsun left a comment

Choose a reason for hiding this comment

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

Maps lgtm!

  • code review
  • tested locally on chrome

@flash1293 flash1293 merged commit c75cd9d into elastic:master Dec 20, 2019
flash1293 added a commit to flash1293/kibana that referenced this pull request Dec 20, 2019
flash1293 added a commit that referenced this pull request Dec 20, 2019
@Kerry350 Kerry350 mentioned this pull request Jan 6, 2020
jkelastic pushed a commit to jkelastic/kibana that referenced this pull request Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Home Kibana home application Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.6.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate Sample data
8 participants