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

Node ingest new simulate pipeline merge #6071

Conversation

BigFunger
Copy link
Contributor

  • adds the simulate endpoint to kibana server
  • adds the pipeline_setup and related directives

@BigFunger
Copy link
Contributor Author

Let's put all the Kibana server code under plugins/kibana/server since that's the convention already established in master.

I'm not sold on this structure yet. The organization that @spalger suggested to me makes a lot of sense. Especially as we expand the files that are consumed on both the server and client. We need to discuss this.

@Bargs
Copy link
Contributor

Bargs commented Feb 3, 2016

I'm not sold on this structure yet. The organization that @spalger suggested to me makes a lot of sense. Especially as we expand the files that are consumed on both the server and client. We need to discuss this.

We already have #5459 for discussing this structure, and both Spencer and Tim supported the public/server/common directory layout. Rather than block this PR with debate on the issue, I'd rather make it consistent with what's already shipped in master so that if a decision is reached in #5459, it will be easy to refactor.

@@ -31,19 +31,17 @@

<div ng-switch="wizard.currentStep">
<div ng-switch-when="0">
<paste-samples-step samples="wizard.stepResults.samples"></paste-samples-step>
<paste-samples-step samples="wizard.stepResults.sampleDocs"></paste-samples-step>
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs to be changed back to samples. samples is the unprocessed data from the user, wrapped in JSON for the pipeline creation step to consume. sampleDocs is the simulated output from the pipeline, which gets passed to the index pattern review step. My paste step PR #6005 adds another variable called rawSamples which is the untouched user input.

In other words:

rawSamples - user input for step 1
samples - JSON wrapped user input, output of step 1, input for step 2
sampleDocs - Simulated pipeline output, output of step 2, input for step 3

@Bargs
Copy link
Contributor

Bargs commented Feb 3, 2016

@BigFunger I think the best thing we can do tomorrow is split the server side code out into its own PR and work on (unit and functional)tests/documentation for it. That'll probably be the best use of our time so that I can pick up the work more easily once you move on.

@@ -0,0 +1,50 @@
const _ = require('lodash');
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd love to see some tests for this file with expected inputs and outputs. Documentation in the PR description for the response payload schema would also be extremely helpful.

@Bargs
Copy link
Contributor

Bargs commented Feb 8, 2016

Closing this PR now that's being broken into smaller pieces like #6121

@Bargs Bargs closed this Feb 8, 2016
@Bargs Bargs removed the review label Feb 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants