Skip to content

[7.x] [SIEM] fix tooltip of notes (#71342)#71364

Merged
patrykkopycinski merged 1 commit intoelastic:7.xfrom
angorayc:backport/7.x/pr-71342
Jul 10, 2020
Merged

[7.x] [SIEM] fix tooltip of notes (#71342)#71364
patrykkopycinski merged 1 commit intoelastic:7.xfrom
angorayc:backport/7.x/pr-71342

Conversation

@angorayc
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

* fix tooltip of notes

* fix unit test

* update notes tooltip

* fix unit test

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@angorayc angorayc added backport This PR is a backport of another PR v7.9.0 release_note:skip Skip the PR/issue when compiling release notes labels Jul 10, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/discover/async_scripted_fields·js.discover async search with scripted fields "before all" hook for "query should show failed shards pop up"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: discover
[00:00:00]           └-> "before all" hook
[00:08:31]           └-: async search with scripted fields
[00:08:31]             └-> "before all" hook
[00:08:31]             └-> "before all" hook
[00:08:31]               │ info [kibana_scripted_fields_on_logstash] Loading "mappings.json"
[00:08:31]               │ info [kibana_scripted_fields_on_logstash] Loading "data.json.gz"
[00:08:31]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594373829911229280] [.kibana_1/-Jze2l4ES6CAPFIFMAonTA] deleting index
[00:08:31]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594373829911229280] [.kibana_2/H4U0QqboRuCREVlwVCQ_oQ] deleting index
[00:08:31]               │ info [kibana_scripted_fields_on_logstash] Deleted existing index [".kibana_2",".kibana_1"]
[00:08:32]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594373829911229280] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:08:32]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594373829911229280] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:08:32]               │ info [kibana_scripted_fields_on_logstash] Created index ".kibana_1"
[00:08:32]               │ debg [kibana_scripted_fields_on_logstash] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:08:32]               │ info [kibana_scripted_fields_on_logstash] Indexed 19 docs into ".kibana_1"
[00:08:32]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594373829911229280] [.kibana_1/vlqbyIrITbSjrjyDEGJCFw] update_mapping [_doc]
[00:08:32]               │ debg Migrating saved objects
[00:08:32]               │ proc [kibana]   log   [10:21:58.617] [info][savedobjects-service] Creating index .kibana_2.
[00:08:32]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594373829911229280] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:08:32]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594373829911229280] updating number_of_replicas to [0] for indices [.kibana_2]
[00:08:32]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594373829911229280] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:08:32]               │ proc [kibana]   log   [10:21:58.742] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:08:32]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594373829911229280] [.kibana_2/pjcl5U2bTdG9uMkvtLnpQQ] update_mapping [_doc]
[00:08:32]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594373829911229280] [.kibana_2/pjcl5U2bTdG9uMkvtLnpQQ] update_mapping [_doc]
[00:08:32]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594373829911229280] [.kibana_2/pjcl5U2bTdG9uMkvtLnpQQ] update_mapping [_doc]
[00:08:32]               │ proc [kibana]   log   [10:21:58.938] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:08:32]               │ proc [kibana]   log   [10:21:59.044] [info][savedobjects-service] Finished in 430ms.
[00:08:32]               │ info [logstash_functional] Loading "mappings.json"
[00:08:32]               │ info [logstash_functional] Loading "data.json.gz"
[00:08:32]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[00:08:32]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[00:08:32]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[00:08:34]               │ debg applying update to kibana config: {"timepicker:timeDefaults":"{  \"from\": \"Sep 18, 2015 @ 19:37:13.000\",  \"to\": \"Sep 23, 2015 @ 02:30:09.000\"}"}
[00:08:34]               │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/discover async search with scripted fields _before all_ hook.png"
[00:08:34]               │ info Current URL is: http://localhost:6191/s/another-space/app/discover#/view/22dc3ad0-c297-11ea-85d9-f198e8455284?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:08:34]               │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/discover async search with scripted fields _before all_ hook.html
[00:08:34]               └- ✖ fail: discover async search with scripted fields "before all" hook for "query should show failed shards pop up"
[00:08:34]               │      Error: Request failed with status code 409
[00:08:34]               │       at createError (/dev/shm/workspace/kibana/node_modules/axios/lib/core/createError.js:16:15)
[00:08:34]               │       at settle (/dev/shm/workspace/kibana/node_modules/axios/lib/core/settle.js:17:12)
[00:08:34]               │       at IncomingMessage.handleStreamEnd (/dev/shm/workspace/kibana/node_modules/axios/lib/adapters/http.js:236:11)
[00:08:34]               │       at endReadableNT (_stream_readable.js:1145:12)
[00:08:34]               │       at process._tickCallback (internal/process/next_tick.js:63:19)
[00:08:34]               │ 
[00:08:34]               │ 

Stack Trace

{ Error: Request failed with status code 409
    at createError (/dev/shm/workspace/kibana/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/dev/shm/workspace/kibana/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/dev/shm/workspace/kibana/node_modules/axios/lib/adapters/http.js:236:11)
    at endReadableNT (_stream_readable.js:1145:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)
  config:
   { url: 'http://elastic:changeme@localhost:6191/api/kibana/settings',
     method: 'post',
     data:
      '{"changes":{"timepicker:timeDefaults":"{  \\"from\\": \\"Sep 18, 2015 @ 19:37:13.000\\",  \\"to\\": \\"Sep 23, 2015 @ 02:30:09.000\\"}"}}',
     headers:
      { Accept: 'application/json, text/plain, */*',
        'Content-Type': 'application/json;charset=utf-8',
        'kbn-xsrf': 'kbn-client',
        'User-Agent': 'axios/0.19.2',
        'Content-Length': 129 },
     transformRequest: [ [Function: transformRequest] ],
     transformResponse: [ [Function: transformResponse] ],
     timeout: 0,
     adapter: [Function: httpAdapter],
     xsrfCookieName: 'XSRF-TOKEN',
     xsrfHeaderName: 'X-XSRF-TOKEN',
     maxContentLength: -1,
     validateStatus: [Function: validateStatus],
     httpsAgent: null },
  request:
   ClientRequest {
     _events:
      [Object: null prototype] {
        socket: [Function],
        abort: [Function],
        aborted: [Function],
        error: [Function],
        timeout: [Function],
        prefinish: [Function: requestOnPrefinish] },
     _eventsCount: 6,
     _maxListeners: undefined,
     output: [],
     outputEncodings: [],
     outputCallbacks: [],
     outputSize: 0,
     writable: true,
     _last: true,
     chunkedEncoding: false,
     shouldKeepAlive: false,
     useChunkedEncodingByDefault: true,
     sendDate: false,
     _removedConnection: false,
     _removedContLen: false,
     _removedTE: false,
     _contentLength: null,
     _hasBody: true,
     _trailer: '',
     finished: true,
     _headerSent: true,
     socket:
      Socket {
        connecting: false,
        _hadError: false,
        _handle: null,
        _parent: null,
        _host: 'localhost',
        _readableState: [ReadableState],
        readable: false,
        _events: [Object],
        _eventsCount: 6,
        _maxListeners: undefined,
        _writableState: [WritableState],
        writable: false,
        allowHalfOpen: false,
        _sockname: null,
        _pendingData: null,
        _pendingEncoding: '',
        server: null,
        _server: null,
        parser: null,
        _httpMessage: [Circular],
        write: [Function: writeAfterFIN],
        [Symbol(asyncId)]: 400538,
        [Symbol(lastWriteQueueSize)]: 0,
        [Symbol(timeout)]: null,
        [Symbol(kBytesRead)]: 760,
        [Symbol(kBytesWritten)]: 413 },
     connection:
      Socket {
        connecting: false,
        _hadError: false,
        _handle: null,
        _parent: null,
        _host: 'localhost',
        _readableState: [ReadableState],
        readable: false,
        _events: [Object],
        _eventsCount: 6,
        _maxListeners: undefined,
        _writableState: [WritableState],
        writable: false,
        allowHalfOpen: false,
        _sockname: null,
        _pendingData: null,
        _pendingEncoding: '',
        server: null,
        _server: null,
        parser: null,
        _httpMessage: [Circular],
        write: [Function: writeAfterFIN],
        [Symbol(asyncId)]: 400538,
        [Symbol(lastWriteQueueSize)]: 0,
        [Symbol(timeout)]: null,
        [Symbol(kBytesRead)]: 760,
        [Symbol(kBytesWritten)]: 413 },
     _header:
      'POST /api/kibana/settings HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json;charset=utf-8\r\nkbn-xsrf: kbn-client\r\nUser-Agent: axios/0.19.2\r\nContent-Length: 129\r\nHost: localhost:6191\r\nAuthorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==\r\nConnection: close\r\n\r\n',
     _onPendingData: [Function: noopPendingOutput],
     agent:
      Agent {
        _events: [Object],
        _eventsCount: 1,
        _maxListeners: undefined,
        defaultPort: 80,
        protocol: 'http:',
        options: [Object],
        requests: {},
        sockets: {},
        freeSockets: {},
        keepAliveMsecs: 1000,
        keepAlive: false,
        maxSockets: Infinity,
        maxFreeSockets: 256 },
     socketPath: undefined,
     timeout: undefined,
     method: 'POST',
     insecureHTTPParser: undefined,
     path: '/api/kibana/settings',
     _ended: true,
     res:
      IncomingMessage {
        _readableState: [ReadableState],
        readable: false,
        _events: [Object],
        _eventsCount: 3,
        _maxListeners: undefined,
        socket: [Socket],
        connection: [Socket],
        httpVersionMajor: 1,
        httpVersionMinor: 1,
        httpVersion: '1.1',
        complete: true,
        headers: [Object],
        rawHeaders: [Array],
        trailers: {},
        rawTrailers: [],
        aborted: false,
        upgrade: false,
        url: '',
        method: null,
        statusCode: 409,
        statusMessage: 'Conflict',
        client: [Socket],
        _consuming: false,
        _dumped: false,
        req: [Circular],
        responseUrl: 'http://elastic:changeme@localhost:6191/api/kibana/settings',
        redirects: [] },
     aborted: undefined,
     timeoutCb: null,
     upgradeOrConnect: false,
     parser: null,
     maxHeadersCount: null,
     _redirectable:
      Writable {
        _writableState: [WritableState],
        writable: true,
        _events: [Object],
        _eventsCount: 2,
        _maxListeners: undefined,
        _options: [Object],
        _redirectCount: 0,
        _redirects: [],
        _requestBodyLength: 129,
        _requestBodyBuffers: [],
        _onNativeResponse: [Function],
        _currentRequest: [Circular],
        _currentUrl: 'http://elastic:changeme@localhost:6191/api/kibana/settings' },
     [Symbol(isCorked)]: false,
     [Symbol(outHeadersKey)]:
      [Object: null prototype] {
        accept: [Array],
        'content-type': [Array],
        'kbn-xsrf': [Array],
        'user-agent': [Array],
        'content-length': [Array],
        host: [Array],
        authorization: [Array] } },
  response:
   { status: 409,
     statusText: 'Conflict',
     headers:
      { 'kbn-name': 'kibana-ci-immutable-ubuntu-16-tests-xl-1594373829911229280',
        'kbn-license-sig':
         'fe2064a917000103e810d95d07f968458af9fdfa4597346c2c99e3ef59926b9b',
        'kbn-xpack-sig': '78c3a83149f4997d5805fc776b46d04a',
        'content-type': 'application/json; charset=utf-8',
        'cache-control': 'private, no-cache, no-store, must-revalidate',
        'content-length': '348',
        date: 'Fri, 10 Jul 2020 10:22:00 GMT',
        connection: 'close' },
     config:
      { url: 'http://elastic:changeme@localhost:6191/api/kibana/settings',
        method: 'post',
        data:
         '{"changes":{"timepicker:timeDefaults":"{  \\"from\\": \\"Sep 18, 2015 @ 19:37:13.000\\",  \\"to\\": \\"Sep 23, 2015 @ 02:30:09.000\\"}"}}',
        headers: [Object],
        transformRequest: [Array],
        transformResponse: [Array],
        timeout: 0,
        adapter: [Function: httpAdapter],
        xsrfCookieName: 'XSRF-TOKEN',
        xsrfHeaderName: 'X-XSRF-TOKEN',
        maxContentLength: -1,
        validateStatus: [Function: validateStatus],
        httpsAgent: null },
     request:
      ClientRequest {
        _events: [Object],
        _eventsCount: 6,
        _maxListeners: undefined,
        output: [],
        outputEncodings: [],
        outputCallbacks: [],
        outputSize: 0,
        writable: true,
        _last: true,
        chunkedEncoding: false,
        shouldKeepAlive: false,
        useChunkedEncodingByDefault: true,
        sendDate: false,
        _removedConnection: false,
        _removedContLen: false,
        _removedTE: false,
        _contentLength: null,
        _hasBody: true,
        _trailer: '',
        finished: true,
        _headerSent: true,
        socket: [Socket],
        connection: [Socket],
        _header:
         'POST /api/kibana/settings HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/json;charset=utf-8\r\nkbn-xsrf: kbn-client\r\nUser-Agent: axios/0.19.2\r\nContent-Length: 129\r\nHost: localhost:6191\r\nAuthorization: Basic ZWxhc3RpYzpjaGFuZ2VtZQ==\r\nConnection: close\r\n\r\n',
        _onPendingData: [Function: noopPendingOutput],
        agent: [Agent],
        socketPath: undefined,
        timeout: undefined,
        method: 'POST',
        insecureHTTPParser: undefined,
        path: '/api/kibana/settings',
        _ended: true,
        res: [IncomingMessage],
        aborted: undefined,
        timeoutCb: null,
        upgradeOrConnect: false,
        parser: null,
        maxHeadersCount: null,
        _redirectable: [Writable],
        [Symbol(isCorked)]: false,
        [Symbol(outHeadersKey)]: [Object] },
     data:
      { statusCode: 409,
        error: 'Conflict',
        message:
         '[config:7.9.0-SNAPSHOT]: version conflict, document already exists (current version [1]): [version_conflict_engine_exception] [config:7.9.0-SNAPSHOT]: version conflict, document already exists (current version [1]), with { index_uuid="pjcl5U2bTdG9uMkvtLnpQQ" & shard="0" & index=".kibana_2" }' } },
  isAxiosError: true,
  toJSON: [Function] }

Build metrics

✅ unchanged

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

@patrykkopycinski patrykkopycinski merged commit b0fe08e into elastic:7.x Jul 10, 2020
@patrykkopycinski patrykkopycinski deleted the backport/7.x/pr-71342 branch July 10, 2020 13:05
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/siem (Team:SIEM)

@MindyRS MindyRS added the Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. label Sep 23, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:SIEM v7.9.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants