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

[Discover] Allow custom label for fields via index pattern field management #70039

Merged

Conversation

kertal
Copy link
Member

@kertal kertal commented Jun 26, 2020

Summary

UPDATE ⚠️ : custom name was renamed to custom label with #83717

This PR enables to add a custom name to a field in index pattern management, and implements its usage in Discover (And also works in Visualize + Lens). This is especially convenient to display long field names in much shorter versions.

Before:

Bildschirmfoto 2020-07-31 um 15 12 58

Configuration:

You can configure a custom name in our index pattern management
Bildschirmfoto 2020-09-03 um 11 00 43
Bildschirmfoto 2020-09-03 um 11 02 26

After:

Bildschirmfoto 2020-07-31 um 15 15 44

Part of #69908

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@kertal kertal added the Feature:Discover Discover Application label Jun 26, 2020
@kertal kertal self-assigned this Jul 21, 2020
@apmmachine
Copy link
Contributor

apmmachine commented Jul 21, 2020

💚 Build Succeeded

@kertal kertal changed the title [Discover]Allow custom labels for fields via index pattern field management [Discover] Allow custom labels for fields via index pattern field management Jul 22, 2020
@kertal kertal added Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.10.0 release_note:enhancement Feature:Data Views Data Views code and UI - index patterns before 8.0 v8.0.0 and removed v7.10.0 labels Jul 31, 2020
@kertal kertal requested a review from mattkime July 31, 2020 13:34
@kertal kertal marked this pull request as ready for review August 3, 2020 09:35
@kertal kertal requested a review from a team August 3, 2020 09:35
@kertal kertal requested a review from a team as a code owner August 3, 2020 09:35
@elasticmachine
Copy link
Contributor

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

@kertal kertal marked this pull request as draft August 3, 2020 09:35
Copy link
Member

@ppisljar ppisljar 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

@kertal kertal merged commit 0a7f462 into elastic:master Nov 17, 2020
kertal added a commit to kertal/kibana that referenced this pull request Nov 17, 2020
kertal added a commit that referenced this pull request Nov 17, 2020
…ement (#70039) (#83536)

Co-authored-by: Matt Kime <matt@mattki.me>
gmmorris added a commit to gmmorris/kibana that referenced this pull request Nov 17, 2020
* master: (51 commits)
  [ML] Persisted URL state for the Data frame analytics jobs and models pages (elastic#83439)
  adds xpack.security.authc.selector.enabled setting (elastic#83551)
  skip flaky suite (elastic#77279)
  [ML] Improve support for script and aggregation fields in anomaly detection jobs (elastic#81923)
  [Workplace Search] Migrate SourcesLogic from ent-search (elastic#83544)
  [ML] Add UI test for feature importance features (elastic#82677)
  [Maps] Improve icons for all layer types (elastic#83503)
  Replace experimental badge with Beta (elastic#83468)
  [Fleet][EPM] Unified install and archive (elastic#83384)
  Move src/legacy/server/keystore to src/cli (elastic#83483)
  Used SO for saving the API key IDs that should be deleted (elastic#82211)
  [Uptime] Mock implementation to account for math flakiness test (elastic#83535)
  [Workplace Search] Enable check for org context based on URL (elastic#83487)
  [App Search] Added all Document related routes and logic (elastic#83324)
  [Alerting UI] Fix console error when setting connector params (elastic#83333)
  [Discover] Allow custom name for fields via index pattern field management (elastic#70039)
  [Uptime] Fix monitor list down histogram (elastic#83411)
  remove headers timeout hack, rely on nodejs timeouts (elastic#83419)
  [ML] Update console autocomplete for ML data frame evaluate API (elastic#83151)
  [Lens] Color in dimension trigger (elastic#76871)
  ...
@kibanamachine
Copy link
Contributor

kibanamachine commented Nov 20, 2020

💔 Build Failed

Failed CI Steps


Test Failures

Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/discover/feature_controls/discover_security·ts.discover feature controls discover feature controls security "before all" hook in "discover feature controls security"

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:00:00]           └-: feature controls
[00:00:00]             └-> "before all" hook
[00:00:00]             └-: discover feature controls security
[00:00:00]               └-> "before all" hook
[00:00:00]               └-> "before all" hook
[00:00:00]                 │ info [discover/feature_controls/security] Loading "mappings.json"
[00:00:00]                 │ info [discover/feature_controls/security] Loading "data.json"
[00:00:00]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana_1/2_vwe5VPRUCp3Rgvsqh0CA] deleting index
[00:00:00]                 │ info [discover/feature_controls/security] Deleted existing index [".kibana_1"]
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]])." previous.health="YELLOW" reason="shards started [[.kibana][0]]"
[00:00:00]                 │ info [discover/feature_controls/security] Created index ".kibana"
[00:00:00]                 │ debg [discover/feature_controls/security] ".kibana" settings {"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}}
[00:00:00]                 │ info [discover/feature_controls/security] Indexed 3 docs into ".kibana"
[00:00:00]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana/c3mRniNAR7WpB8T0DBVdgw] update_mapping [_doc]
[00:00:00]                 │ debg Migrating saved objects
[00:00:00]                 │ proc [kibana]   log   [15:48:20.713] [info][savedobjects-service] Creating index .kibana_2.
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_2][0]]"
[00:00:00]                 │ proc [kibana]   log   [15:48:20.811] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_1][0]]"
[00:00:00]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] updating number_of_replicas to [0] for indices [.tasks]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.tasks][0]]])." previous.health="YELLOW" reason="shards started [[.tasks][0]]"
[00:00:00]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] 1279 finished with response BulkByScrollResponse[took=35.9ms,timed_out=false,sliceId=null,updated=0,created=3,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:00]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana/c3mRniNAR7WpB8T0DBVdgw] deleting index
[00:00:00]                 │ proc [kibana]   log   [15:48:21.225] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:00]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana_2/Cv-n2O2JQbOZs3uCbDulXA] update_mapping [_doc]
[00:00:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana_2/Cv-n2O2JQbOZs3uCbDulXA] update_mapping [_doc]
[00:00:01]                 │ proc [kibana]   log   [15:48:21.415] [warning][actions][plugins][usage] Error executing actions telemetry task: [query_shard_exception] failed to create query: [nested] failed to find nested object under path [references], with { index_uuid="RghIBsTkTAS900O2-FaP_g" & index=".kibana_1" } :: {"path":"/.kibana/_search","query":{"rest_total_hits_as_int":true},"body":"{\"query\":{\"bool\":{\"filter\":{\"bool\":{\"must\":{\"nested\":{\"path\":\"references\",\"query\":{\"bool\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"references.type\":\"action\"}}]}}}}}}}}}},\"aggs\":{\"refs\":{\"nested\":{\"path\":\"references\"},\"aggs\":{\"actionRefIds\":{\"scripted_metric\":{\"init_script\":\"state.connectorIds = new HashMap(); state.total = 0;\",\"map_script\":\"\\n        String connectorId = doc['references.id'].value;\\n        String actionRef = doc['references.name'].value;\\n        if (state.connectorIds[connectorId] === null) {\\n          state.connectorIds[connectorId] = actionRef;\\n          state.total++;\\n        }\\n      \",\"combine_script\":\"return state\",\"reduce_script\":\"\\n          Map connectorIds = [:];\\n          long total = 0;\\n          for (state in states) {\\n            if (state !== null) {\\n              total += state.total;\\n              for (String k : state.connectorIds.keySet()) {\\n                connectorIds.put(k, connectorIds.containsKey(k) ? connectorIds.get(k) + state.connectorIds.get(k) : state.connectorIds.get(k));\\n              }\\n            }\\n          }\\n          Map result = new HashMap();\\n          result.total = total;\\n          result.connectorIds = connectorIds;\\n          return result;\\n      \"}}}}}}","statusCode":400,"response":"{\"error\":{\"root_cause\":[{\"type\":\"query_shard_exception\",\"reason\":\"failed to create query: [nested] failed to find nested object under path [references]\",\"index_uuid\":\"RghIBsTkTAS900O2-FaP_g\",\"index\":\".kibana_1\"}],\"type\":\"search_phase_execution_exception\",\"reason\":\"all shards failed\",\"phase\":\"query\",\"grouped\":true,\"failed_shards\":[{\"shard\":0,\"index\":\".kibana_1\",\"node\":\"AOjKvSfWTWiLwryMsIAZuQ\",\"reason\":{\"type\":\"query_shard_exception\",\"reason\":\"failed to create query: [nested] failed to find nested object under path [references]\",\"index_uuid\":\"RghIBsTkTAS900O2-FaP_g\",\"index\":\".kibana_1\",\"caused_by\":{\"type\":\"illegal_state_exception\",\"reason\":\"[nested] failed to find nested object under path [references]\"}}}]},\"status\":400}"}
[00:00:01]                 │ proc [kibana]   log   [15:48:21.417] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:01]                 │ proc [kibana]   log   [15:48:21.472] [info][savedobjects-service] Finished in 762ms.
[00:00:01]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:00:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.ds-ilm-history-5-000001] creating index, cause [initialize_data_stream], templates [ilm-history], shards [1]/[0]
[00:00:02]                 │ info [o.e.c.m.MetadataCreateDataStreamService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] adding data stream [ilm-history-5] with write index [.ds-ilm-history-5-000001] and backing indices []
[00:00:02]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] moving index [.ds-ilm-history-5-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ilm-history-ilm-policy]
[00:00:02]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ds-ilm-history-5-000001][0]]])." previous.health="YELLOW" reason="shards started [[.ds-ilm-history-5-000001][0]]"
[00:00:02]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] moving index [.ds-ilm-history-5-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] in policy [ilm-history-ilm-policy]
[00:00:02]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] moving index [.ds-ilm-history-5-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] in policy [ilm-history-ilm-policy]
[00:00:02]                 │ info [logstash_functional] Loading "mappings.json"
[00:00:02]                 │ info [logstash_functional] Loading "data.json.gz"
[00:00:02]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] failed on parsing mappings on index creation [logstash-2015.09.22]
[00:00:02]                 │      org.elasticsearch.index.mapper.MapperParsingException: Failed to parse mapping: No handler for type [runtime] declared on field [runtime_number]
[00:00:02]                 │      	at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:308) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:281) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.updateIndexMappingsAndBuildSortOrder(MetadataCreateIndexService.java:915) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.lambda$applyCreateIndexWithTemporaryService$2(MetadataCreateIndexService.java:409) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.indices.IndicesService.withTempIndexService(IndicesService.java:621) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexWithTemporaryService(MetadataCreateIndexService.java:407) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequestWithV1Templates(MetadataCreateIndexService.java:485) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:370) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:377) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService$1.execute(MetadataCreateIndexService.java:300) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:59) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:697) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:319) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:214) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:151) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:150) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:188) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:674) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:252) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:215) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) [?:?]
[00:00:02]                 │      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) [?:?]
[00:00:02]                 │      	at java.lang.Thread.run(Thread.java:832) [?:?]
[00:00:02]                 │      Caused by: org.elasticsearch.index.mapper.MapperParsingException: No handler for type [runtime] declared on field [runtime_number]
[00:00:02]                 │      	at org.elasticsearch.index.mapper.ObjectMapper$TypeParser.parseProperties(ObjectMapper.java:312) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.index.mapper.ObjectMapper$TypeParser.parseObjectOrDocumentTypeProperties(ObjectMapper.java:233) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.index.mapper.RootObjectMapper$TypeParser.parse(RootObjectMapper.java:150) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:94) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:83) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:306) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:02]                 │      	... 22 more
[00:00:02]                 │ info Taking screenshot "/dev/shm/workspace/parallel/1/kibana/x-pack/test/functional/screenshots/failure/discover feature controls discover feature controls security _before all_ hook.png"
[00:00:02]                 │ info Current URL is: data:/,
[00:00:02]                 │ info Saving page source to: /dev/shm/workspace/parallel/1/kibana/x-pack/test/functional/failure_debug/html/discover feature controls discover feature controls security _before all_ hook.html
[00:00:02]                 └- ✖ fail: discover feature controls discover feature controls security "before all" hook in "discover feature controls security"
[00:00:02]                 │      Error: [mapper_parsing_exception] No handler for type [runtime] declared on field [runtime_number]
[00:00:02]                 │       at respond (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:349:15)
[00:00:02]                 │       at checkRespForFailure (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)
[00:00:02]                 │       at HttpConnector.<anonymous> (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
[00:00:02]                 │       at IncomingMessage.wrapper (/dev/shm/workspace/kibana/node_modules/lodash/lodash.js:4949:19)
[00:00:02]                 │       at endReadableNT (_stream_readable.js:1223:12)
[00:00:02]                 │       at processTicksAndRejections (internal/process/task_queues.js:84:21)
[00:00:02]                 │ 
[00:00:02]                 │ 

Stack Trace

StatusCodeError: [mapper_parsing_exception] No handler for type [runtime] declared on field [runtime_number]
    at respond (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:349:15)
    at checkRespForFailure (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)
    at HttpConnector.<anonymous> (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
    at IncomingMessage.wrapper (/dev/shm/workspace/kibana/node_modules/lodash/lodash.js:4949:19)
    at endReadableNT (_stream_readable.js:1223:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  status: 400,
  displayName: 'BadRequest',
  path: '/logstash-2015.09.22',
  query: {},
  body: {
    error: {
      root_cause: [Array],
      type: 'mapper_parsing_exception',
      reason: 'Failed to parse mapping: No handler for type [runtime] declared on field [runtime_number]',
      caused_by: [Object]
    },
    status: 400
  },
  statusCode: 400,
  response: '{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"No handler for type [runtime] declared on field [runtime_number]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping: No handler for type [runtime] declared on field [runtime_number]","caused_by":{"type":"mapper_parsing_exception","reason":"No handler for type [runtime] declared on field [runtime_number]"}},"status":400}',
  toString: [Function],
  toJSON: [Function]
}

X-Pack Accessibility Tests.x-pack/test/accessibility/apps/dashboard_edit_panel·ts.Dashboard Edit Panel "before all" hook for " A11y test on dashboard edit panel menu options"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:03:27]         └-: Dashboard Edit Panel
[00:03:27]           └-> "before all" hook
[00:03:27]           └-> "before all" hook
[00:03:27]             │ info [dashboard/drilldowns] Loading "mappings.json"
[00:03:27]             │ info [dashboard/drilldowns] Loading "data.json"
[00:03:27]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana_2/m7OkEMv7RSidwieaJE2hBw] deleting index
[00:03:27]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana_1/yltFqXh5RbmL6iJj5GYEZA] deleting index
[00:03:27]             │ info [dashboard/drilldowns] Deleted existing index [".kibana_2",".kibana_1"]
[00:03:27]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:03:27]             │ info [dashboard/drilldowns] Created index ".kibana"
[00:03:27]             │ debg [dashboard/drilldowns] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:03:27]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana/XATrNe-cRmGW-mIPLzkIbg] update_mapping [_doc]
[00:03:27]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana/XATrNe-cRmGW-mIPLzkIbg] update_mapping [_doc]
[00:03:27]             │ info [dashboard/drilldowns] Indexed 12 docs into ".kibana"
[00:03:27]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana/XATrNe-cRmGW-mIPLzkIbg] update_mapping [_doc]
[00:03:27]             │ debg Migrating saved objects
[00:03:27]             │ proc [kibana]   log   [15:50:16.477] [info][savedobjects-service] Creating index .kibana_2.
[00:03:27]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:03:27]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] updating number_of_replicas to [0] for indices [.kibana_2]
[00:03:27]             │ proc [kibana]   log   [15:50:16.552] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:03:27]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:03:27]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] updating number_of_replicas to [0] for indices [.kibana_1]
[00:03:28]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] 6513 finished with response BulkByScrollResponse[took=42.3ms,timed_out=false,sliceId=null,updated=0,created=12,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:03:28]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana/XATrNe-cRmGW-mIPLzkIbg] deleting index
[00:03:28]             │ proc [kibana]   log   [15:50:16.917] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:03:28]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana_2/CR2ooiRmQbSbxdHO-yhMMA] update_mapping [_doc]
[00:03:28]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana_2/CR2ooiRmQbSbxdHO-yhMMA] update_mapping [_doc]
[00:03:28]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana_2/CR2ooiRmQbSbxdHO-yhMMA] update_mapping [_doc]
[00:03:28]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana_2/CR2ooiRmQbSbxdHO-yhMMA] update_mapping [_doc]
[00:03:28]             │ proc [kibana]   log   [15:50:17.235] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:03:28]             │ proc [kibana]   log   [15:50:17.307] [info][savedobjects-service] Finished in 832ms.
[00:03:28]             │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:03:28]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] [.kibana_2/CR2ooiRmQbSbxdHO-yhMMA] update_mapping [_doc]
[00:03:29]             │ info [logstash_functional] Loading "mappings.json"
[00:03:29]             │ info [logstash_functional] Loading "data.json.gz"
[00:03:29]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] failed on parsing mappings on index creation [logstash-2015.09.22]
[00:03:29]             │      org.elasticsearch.index.mapper.MapperParsingException: Failed to parse mapping: No handler for type [runtime] declared on field [runtime_number]
[00:03:29]             │      	at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:308) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:281) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.updateIndexMappingsAndBuildSortOrder(MetadataCreateIndexService.java:915) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.lambda$applyCreateIndexWithTemporaryService$2(MetadataCreateIndexService.java:409) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.indices.IndicesService.withTempIndexService(IndicesService.java:621) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexWithTemporaryService(MetadataCreateIndexService.java:407) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequestWithV1Templates(MetadataCreateIndexService.java:485) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:370) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:377) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService$1.execute(MetadataCreateIndexService.java:300) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:59) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:697) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:319) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:214) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:151) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:150) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:188) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:674) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:252) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:215) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) [?:?]
[00:03:29]             │      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) [?:?]
[00:03:29]             │      	at java.lang.Thread.run(Thread.java:832) [?:?]
[00:03:29]             │      Caused by: org.elasticsearch.index.mapper.MapperParsingException: No handler for type [runtime] declared on field [runtime_number]
[00:03:29]             │      	at org.elasticsearch.index.mapper.ObjectMapper$TypeParser.parseProperties(ObjectMapper.java:312) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.index.mapper.ObjectMapper$TypeParser.parseObjectOrDocumentTypeProperties(ObjectMapper.java:233) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.index.mapper.RootObjectMapper$TypeParser.parse(RootObjectMapper.java:150) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:94) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:83) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:306) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:03:29]             │      	... 22 more
[00:03:29]             │ info Taking screenshot "/dev/shm/workspace/parallel/12/kibana/x-pack/test/functional/screenshots/failure/Dashboard Edit Panel _before all_ hook.png"
[00:03:30]             │ info Current URL is: http://localhost:61121/app/management/kibana/settings
[00:03:30]             │ info Saving page source to: /dev/shm/workspace/parallel/12/kibana/x-pack/test/functional/failure_debug/html/Dashboard Edit Panel _before all_ hook.html
[00:03:30]             └- ✖ fail: Dashboard Edit Panel "before all" hook for " A11y test on dashboard edit panel menu options"
[00:03:30]             │      Error: [mapper_parsing_exception] No handler for type [runtime] declared on field [runtime_number]
[00:03:30]             │       at respond (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:349:15)
[00:03:30]             │       at checkRespForFailure (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)
[00:03:30]             │       at HttpConnector.<anonymous> (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
[00:03:30]             │       at IncomingMessage.wrapper (/dev/shm/workspace/kibana/node_modules/lodash/lodash.js:4949:19)
[00:03:30]             │       at endReadableNT (_stream_readable.js:1223:12)
[00:03:30]             │       at processTicksAndRejections (internal/process/task_queues.js:84:21)
[00:03:30]             │ 
[00:03:30]             │ 

Stack Trace

StatusCodeError: [mapper_parsing_exception] No handler for type [runtime] declared on field [runtime_number]
    at respond (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:349:15)
    at checkRespForFailure (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)
    at HttpConnector.<anonymous> (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
    at IncomingMessage.wrapper (/dev/shm/workspace/kibana/node_modules/lodash/lodash.js:4949:19)
    at endReadableNT (_stream_readable.js:1223:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  status: 400,
  displayName: 'BadRequest',
  path: '/logstash-2015.09.22',
  query: {},
  body: {
    error: {
      root_cause: [Array],
      type: 'mapper_parsing_exception',
      reason: 'Failed to parse mapping: No handler for type [runtime] declared on field [runtime_number]',
      caused_by: [Object]
    },
    status: 400
  },
  statusCode: 400,
  response: '{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"No handler for type [runtime] declared on field [runtime_number]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping: No handler for type [runtime] declared on field [runtime_number]","caused_by":{"type":"mapper_parsing_exception","reason":"No handler for type [runtime] declared on field [runtime_number]"}},"status":400}',
  toString: [Function],
  toJSON: [Function]
}

X-Pack API Integration Tests (Security Basic).x-pack/test/api_integration/apis/security/index_fields·ts.security (basic license) Index Fields "before all" hook in "Index Fields"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: security (basic license)
[00:00:00]           └-> "before all" hook
[00:00:15]           └-: Index Fields
[00:00:15]             └-> "before all" hook
[00:00:15]             └-> "before all" hook
[00:00:15]               │ info [security/flstest/data] Loading "mappings.json"
[00:00:15]               │ info [security/flstest/data] Loading "data.json.gz"
[00:00:15]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1605885480969071435] failed on parsing mappings on index creation [flstest]
[00:00:15]               │      org.elasticsearch.index.mapper.MapperParsingException: Failed to parse mapping: No handler for type [runtime] declared on field [runtime_customer_ssn]
[00:00:15]               │      	at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:308) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:281) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.updateIndexMappingsAndBuildSortOrder(MetadataCreateIndexService.java:915) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.lambda$applyCreateIndexWithTemporaryService$2(MetadataCreateIndexService.java:409) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.indices.IndicesService.withTempIndexService(IndicesService.java:621) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexWithTemporaryService(MetadataCreateIndexService.java:407) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequestWithV1Templates(MetadataCreateIndexService.java:485) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:370) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService.applyCreateIndexRequest(MetadataCreateIndexService.java:377) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.cluster.metadata.MetadataCreateIndexService$1.execute(MetadataCreateIndexService.java:300) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:59) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:697) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:319) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:214) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:151) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:150) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:188) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:674) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:252) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:215) [elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) [?:?]
[00:00:15]               │      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) [?:?]
[00:00:15]               │      	at java.lang.Thread.run(Thread.java:832) [?:?]
[00:00:15]               │      Caused by: org.elasticsearch.index.mapper.MapperParsingException: No handler for type [runtime] declared on field [runtime_customer_ssn]
[00:00:15]               │      	at org.elasticsearch.index.mapper.ObjectMapper$TypeParser.parseProperties(ObjectMapper.java:312) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.index.mapper.ObjectMapper$TypeParser.parseObjectOrDocumentTypeProperties(ObjectMapper.java:233) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.index.mapper.RootObjectMapper$TypeParser.parse(RootObjectMapper.java:150) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:94) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:83) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:306) ~[elasticsearch-8.0.0-SNAPSHOT.jar:8.0.0-SNAPSHOT]
[00:00:15]               │      	... 22 more
[00:00:15]               └- ✖ fail: security (basic license) Index Fields "before all" hook in "Index Fields"
[00:00:15]               │      Error: [mapper_parsing_exception] No handler for type [runtime] declared on field [runtime_customer_ssn]
[00:00:15]               │       at respond (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:349:15)
[00:00:15]               │       at checkRespForFailure (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)
[00:00:15]               │       at HttpConnector.<anonymous> (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
[00:00:15]               │       at IncomingMessage.wrapper (/dev/shm/workspace/kibana/node_modules/lodash/lodash.js:4949:19)
[00:00:15]               │       at endReadableNT (_stream_readable.js:1223:12)
[00:00:15]               │       at processTicksAndRejections (internal/process/task_queues.js:84:21)
[00:00:15]               │ 
[00:00:15]               │ 

Stack Trace

StatusCodeError: [mapper_parsing_exception] No handler for type [runtime] declared on field [runtime_customer_ssn]
    at respond (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:349:15)
    at checkRespForFailure (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:306:7)
    at HttpConnector.<anonymous> (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
    at IncomingMessage.wrapper (/dev/shm/workspace/kibana/node_modules/lodash/lodash.js:4949:19)
    at endReadableNT (_stream_readable.js:1223:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) {
  status: 400,
  displayName: 'BadRequest',
  path: '/flstest',
  query: {},
  body: {
    error: {
      root_cause: [Array],
      type: 'mapper_parsing_exception',
      reason: 'Failed to parse mapping: No handler for type [runtime] declared on field [runtime_customer_ssn]',
      caused_by: [Object]
    },
    status: 400
  },
  statusCode: 400,
  response: '{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"No handler for type [runtime] declared on field [runtime_customer_ssn]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping: No handler for type [runtime] declared on field [runtime_customer_ssn]","caused_by":{"type":"mapper_parsing_exception","reason":"No handler for type [runtime] declared on field [runtime_customer_ssn]"}},"status":400}',
  toString: [Function],
  toJSON: [Function]
}

and 9 more failures, only showing the first 3.

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
discover 274 273 -1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
discover 420.6KB 420.7KB +73.0B
indexPatternManagement 604.3KB 606.2KB +1.8KB
total +1.9KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
data 964.5KB 965.9KB +1.4KB
discover 82.1KB 82.0KB -116.0B
total +1.3KB

History

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

@ranitg
Copy link

ranitg commented Dec 27, 2020

Is this feature implemented across all of Kibana, or only in the discover columns? Is it also, for example, on visualizations tooltip?
image

@LeeDr
Copy link

LeeDr commented Jan 4, 2021

@ranitg I'm seeing the custom labels in the tooltips. I tried on both Lens and an aggregation-based Line chart.

image

But I created those visualizations using the custom label. Did you create the visualization using the original field name?

@bhavyarm
Copy link
Contributor

bhavyarm commented Jan 4, 2021

@kertal @mattkime questions:

  1. Original field name still shows up in source. Is that indended? For example here customer first namename has a custom field called 'first_name_uppercase' but in document view - we see customer first name and not "first_name_uppercase_

Screen Shot 2021-01-04 at 5 58 20 PM

Screen Shot 2021-01-04 at 5 58 28 PM

  1. The custom labels don't seem to be working in query bar. Is that intended?
  2. Custom labels don't show up in field list while adding filters. Is that intended?

Thanks

@LeeDr
Copy link

LeeDr commented Jan 4, 2021

Custom Labels appear to allow any characters, spaces, multi-byte chars, etc;
image

@timroes
Copy link
Contributor

timroes commented Jan 11, 2021

@bhavyarm

1.Yes the source is still the raw source as returned by ES, that has no idea about those field names, and thus will show them with their original field name. That's intended behavior for now. Though we could optentially open an issue once we switch to usage of the fields API in 7.12 we can change that behavior (although there might be other issues coming with it due to filtering).

  1. Yes the query bar does not have an idea about custom labels of fields, since it's building the query on the real field names (also custom names can potentially be duplicates), thus they are a pure "displaying" functionality and not a "querying" functionality.

  2. The filter field list actually should eventually support this (but doesn't right now). This is still an open TODO in [Discover] Allow custom labels via index pattern fields  #69908. @kertal maybe it makes sense that this gets a separate issue?

@kertal
Copy link
Member Author

kertal commented Jan 11, 2021

@bhavyarm

1.Yes the source is still the raw source as returned by ES, that has no idea about those field names, and thus will show them with their original field name. That's intended behavior for now. Though we could optentially open an issue once we switch to usage of the fields API in 7.12 we can change that behavior (although there might be other issues coming with it due to filtering).

  1. Yes the query bar does not have an idea about custom labels of fields, since it's building the query on the real field names (also custom names can potentially be duplicates), thus they are a pure "displaying" functionality and not a "querying" functionality.
  2. The filter field list actually should eventually support this (but doesn't right now). This is still an open TODO in [Discover] Allow custom labels via index pattern fields  #69908. @kertal maybe it makes sense that this gets a separate issue?

@timroes for sure, will create one

@kertal
Copy link
Member Author

kertal commented Jan 11, 2021

@bhavyarm @timroes here it is: #87813

@bhavyarm
Copy link
Contributor

Thanks @kertal @timroes

@kertal kertal changed the title [Discover] Allow custom name for fields via index pattern field management [Discover] Allow custom label for fields via index pattern field management Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Data Views Data Views code and UI - index patterns before 8.0 Feature:Discover Discover Application release highlight release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.