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

[Maps] Vector tiles for Elasticsearch Data #57248

Closed
wants to merge 30 commits into from

Conversation

thomasneirynck
Copy link
Contributor

POC for server-side vector tiling.

Illustrates some ideas wrt adding vector-tiling to Kibana.

@kibanamachine
Copy link
Contributor

💔 Build Failed


Test Failures

Kibana Pipeline / x-pack-intake-agent / X-Pack Jest Tests.x-pack/legacy/plugins/maps/public/connected_components/map/mb/tooltip_control.TooltipControl on click should set tooltip state when there are features at clicked location and remove duplicate features

Link to Jenkins

Stack Trace

AssertError: expected setTooltipState to be called with arguments 
{
  features: [{ id: 1, layerId: "tfi3f", meta: { docId: undefined, indexName: undefined } }],
  location: [100, 30],
  type: "LOCKED"
} { features: [{ id: 1, layerId: "tfi3f" }], location: [100, 30], type: "LOCKED" } 
    at Object.fail (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/sinon/lib/sinon/assert.js:106:21)
    at failAssertion (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/sinon/lib/sinon/assert.js:65:16)
    at Object.calledWith (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/sinon/lib/sinon/assert.js:91:13)
    at Object.test (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/x-pack/legacy/plugins/maps/public/connected_components/map/mb/tooltip_control/tooltip_control.test.js:269:20)
    at Object.asyncJestTest (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37)
    at resolve (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-jasmine2/build/queueRunner.js:43:12)
    at new Promise (<anonymous>)
    at mapper (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-jasmine2/build/queueRunner.js:26:19)
    at promise.then (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-jasmine2/build/queueRunner.js:73:41)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Kibana Pipeline / x-pack-intake-agent / X-Pack Jest Tests.x-pack/legacy/plugins/maps/public/layers/sources/es_search_source.should render update source editor

Link to Jenkins

Stack Trace

Error: expect(received).toMatchSnapshot()

Snapshot name: `should render update source editor 1`

- Snapshot
+ Received

@@ -21,88 +21,9 @@
      />
    </EuiPanel>
    <EuiSpacer
      size="s"
    />
-   <EuiPanel>
-     <EuiTitle
-       size="xs"
-     >
-       <h5>
-         <FormattedMessage
-           defaultMessage="Sorting"
-           id="xpack.maps.esSearch.sortTitle"
-           values={Object {}}
-         />
-       </h5>
-     </EuiTitle>
-     <EuiSpacer
-       size="m"
-     />
-     <EuiFormRow
-       describedByIds={Array []}
-       display="columnCompressed"
-       fullWidth={false}
-       hasChildLabel={true}
-       hasEmptyLabelSpace={false}
-       label="Field"
-       labelType="label"
-     >
-       <SingleFieldSelect
-         compressed={true}
-         fields={null}
-         onChange={[Function]}
-         placeholder="Select sort field"
-       />
-     </EuiFormRow>
-     <EuiFormRow
-       describedByIds={Array []}
-       display="columnCompressed"
-       fullWidth={false}
-       hasChildLabel={true}
-       hasEmptyLabelSpace={false}
-       label="Order"
-       labelType="label"
-     >
-       <EuiSelect
-         compressed={true}
-         disabled={true}
-         onChange={[Function]}
-         options={
-           Array [
-             Object {
-               "text": "ascending",
-               "value": "asc",
-             },
-             Object {
-               "text": "descending",
-               "value": "desc",
-             },
-           ]
-         }
-         value="DESC"
-       />
-     </EuiFormRow>
-     <EuiHorizontalRule
-       margin="xs"
-     />
-     <EuiFormRow
-       describedByIds={Array []}
-       display="columnCompressed"
-       fullWidth={false}
-       hasChildLabel={true}
-       hasEmptyLabelSpace={false}
-       label="Top hits"
-       labelType="label"
-     >
-       <EuiSwitch
-         checked={false}
-         compressed={true}
-         label="Show top hits per entity"
-         onChange={[Function]}
-       />
-     </EuiFormRow>
-   </EuiPanel>
    <EuiSpacer
      size="s"
    />
  </Fragment>
    at Object.<anonymous>.test (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/x-pack/legacy/plugins/maps/public/layers/sources/es_search_source/update_source_editor.test.js:34:21)
    at Object.asyncJestTest (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37)
    at resolve (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-jasmine2/build/queueRunner.js:43:12)
    at new Promise (<anonymous>)
    at mapper (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-jasmine2/build/queueRunner.js:26:19)
    at promise.then (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-jasmine2/build/queueRunner.js:73:41)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Kibana Pipeline / x-pack-intake-agent / X-Pack Jest Tests.x-pack/legacy/plugins/maps/public/layers/sources/es_search_source.should enable sort order select when sort field provided

Link to Jenkins

Stack Trace

Error: expect(received).toMatchSnapshot()

Snapshot name: `should enable sort order select when sort field provided 1`

- Snapshot
+ Received

@@ -21,89 +21,9 @@
      />
    </EuiPanel>
    <EuiSpacer
      size="s"
    />
-   <EuiPanel>
-     <EuiTitle
-       size="xs"
-     >
-       <h5>
-         <FormattedMessage
-           defaultMessage="Sorting"
-           id="xpack.maps.esSearch.sortTitle"
-           values={Object {}}
-         />
-       </h5>
-     </EuiTitle>
-     <EuiSpacer
-       size="m"
-     />
-     <EuiFormRow
-       describedByIds={Array []}
-       display="columnCompressed"
-       fullWidth={false}
-       hasChildLabel={true}
-       hasEmptyLabelSpace={false}
-       label="Field"
-       labelType="label"
-     >
-       <SingleFieldSelect
-         compressed={true}
-         fields={null}
-         onChange={[Function]}
-         placeholder="Select sort field"
-         value="@timestamp"
-       />
-     </EuiFormRow>
-     <EuiFormRow
-       describedByIds={Array []}
-       display="columnCompressed"
-       fullWidth={false}
-       hasChildLabel={true}
-       hasEmptyLabelSpace={false}
-       label="Order"
-       labelType="label"
-     >
-       <EuiSelect
-         compressed={true}
-         disabled={false}
-         onChange={[Function]}
-         options={
-           Array [
-             Object {
-               "text": "ascending",
-               "value": "asc",
-             },
-             Object {
-               "text": "descending",
-               "value": "desc",
-             },
-           ]
-         }
-         value="DESC"
-       />
-     </EuiFormRow>
-     <EuiHorizontalRule
-       margin="xs"
-     />
-     <EuiFormRow
-       describedByIds={Array []}
-       display="columnCompressed"
-       fullWidth={false}
-       hasChildLabel={true}
-       hasEmptyLabelSpace={false}
-       label="Top hits"
-       labelType="label"
-     >
-       <EuiSwitch
-         checked={false}
-         compressed={true}
-         label="Show top hits per entity"
-         onChange={[Function]}
-       />
-     </EuiFormRow>
-   </EuiPanel>
    <EuiSpacer
      size="s"
    />
  </Fragment>
    at Object.<anonymous>.test (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/x-pack/legacy/plugins/maps/public/layers/sources/es_search_source/update_source_editor.test.js:40:21)
    at Object.asyncJestTest (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-jasmine2/build/jasmineAsyncInstall.js:102:37)
    at resolve (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-jasmine2/build/queueRunner.js:43:12)
    at new Promise (<anonymous>)
    at mapper (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-jasmine2/build/queueRunner.js:26:19)
    at promise.then (/var/lib/jenkins/workspace/elastic+kibana+pipeline-pull-request/kibana/node_modules/jest-jasmine2/build/queueRunner.js:73:41)
    at process._tickCallback (internal/process/next_tick.js:68:7)

and 4 more failures, only showing the first 3.

History

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

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