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

[7.x] Disable selection of filter status 'All' on AddToCaseAction (#99757) #100123

Merged
merged 1 commit into from
May 14, 2021

Conversation

machadoum
Copy link
Member

Backports the following commits to 7.x:

…99757)

* Fix: Disable selection of filter status 'All' on AddToCaseAction

* UI: Hide disabled statuses on AddToCaseAction

* Refactor: Rename disabledStatuses to hiddenStatuses

* Fix: Pick the first valid status for initialFilterOptions

Previously it was always picking 'open', but it wouldn't work when hiddenStatuses contains "open".

* Add missing test

Co-authored-by: Kibana Machine <[email protected]>
@machadoum machadoum enabled auto-merge (squash) May 14, 2021 14:08
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome UI Functional Tests.test/functional/apps/management/_test_huge_fields·js.management test large number of fields "before all" hook for "test_huge data should have expected number of fields"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 7 times on tracked branches: https://github.com/elastic/kibana/issues/89031

[00:00:00]       │
[00:00:00]         └-: management
[00:00:00]           └-> "before all" hook in "management"
[00:00:00]           └-> "before all" hook in "management"
[00:00:00]             │ info [logstash_functional] Unloading indices from "mappings.json"
[00:00:00]             │ info [logstash_functional] Unloading indices from "data.json.gz"
[00:00:01]             │ info [makelogs] Loading "mappings.json"
[00:00:01]             │ info [makelogs] Loading "data.json.gz"
[00:00:01]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1621001323399908729] [logstash-2015.09.17] creating index, cause [api], templates [], shards [1]/[0]
[00:00:01]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1621001323399908729] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.17][0]]]).
[00:00:01]             │ info [makelogs] Created index "logstash-2015.09.17"
[00:00:01]             │ debg [makelogs] "logstash-2015.09.17" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:01]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1621001323399908729] [logstash-2015.09.18] creating index, cause [api], templates [], shards [1]/[0]
[00:00:01]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1621001323399908729] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.18][0]]]).
[00:00:01]             │ info [makelogs] Created index "logstash-2015.09.18"
[00:00:01]             │ debg [makelogs] "logstash-2015.09.18" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:01]             │ info [makelogs] Indexed 101 docs into "logstash-2015.09.17"
[00:00:01]             │ info [makelogs] Indexed 301 docs into "logstash-2015.09.18"
[00:00:02]           └-: 
[00:00:02]             └-> "before all" hook in ""
[00:10:38]             └-: test large number of fields
[00:10:38]               └-> "before all" hook for "test_huge data should have expected number of fields"
[00:10:38]               └-> "before all" hook for "test_huge data should have expected number of fields"
[00:10:38]                 │ debg Migrating saved objects
[00:10:38]                 │ proc [kibana]   log   [14:37:48.624] [info][savedobjects-service] [.kibana] INIT -> CREATE_NEW_TARGET. took: 2ms.
[00:10:38]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1621001323399908729] [.kibana_7.14.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:10:38]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1621001323399908729] updating number_of_replicas to [0] for indices [.kibana_7.14.0_001]
[00:10:38]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1621001323399908729] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.14.0_001][0]]]).
[00:10:38]                 │ proc [kibana]   log   [14:37:48.677] [info][savedobjects-service] [.kibana] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 52ms.
[00:10:38]                 │ proc [kibana]   log   [14:37:48.696] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 20ms.
[00:10:38]                 │ proc [kibana]   log   [14:37:48.697] [info][savedobjects-service] [.kibana] Migration completed after 75ms
[00:10:38]                 │ info [emptyKibanaIndex] Created index ".kibana"
[00:10:38]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:10:38]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1621001323399908729] [.kibana_7.14.0_001/kmwrXDARS_u-YCVqSVxRQQ] update_mapping [_doc]
[00:10:40]                 │ info [large_fields] Loading "mappings.json"
[00:10:40]                 │ info [large_fields] Loading "data.json.gz"
[00:10:40]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1621001323399908729] [testhuge] creating index, cause [api], templates [], shards [5]/[1]
[00:10:40]                 │ info [large_fields] Created index "testhuge"
[00:10:40]                 │ debg [large_fields] "testhuge" settings {"index":{"mapping":{"total_fields":{"limit":"50000"}},"number_of_replicas":"1","number_of_shards":"5"}}
[00:10:41]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1621001323399908729] [testhuge/TRLg5pHXSwe683qKpRLphw] update_mapping [_doc]
[00:10:41]                 │ info [large_fields] Indexed 1 docs into "testhuge"
[00:10:41]                 │ info [o.e.i.b.HierarchyCircuitBreakerService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1621001323399908729] attempting to trigger G1GC due to high heap usage [1028210488]
[00:10:41]                 │ info [o.e.i.b.HierarchyCircuitBreakerService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1621001323399908729] GC did not bring memory usage down, before [1028210488], after [1044290008], allocations [8], duration [13]
[00:10:41]                 │ info Taking screenshot "/dev/shm/workspace/parallel/24/kibana/test/functional/screenshots/failure/management  test large number of fields _before all_ hook for _test_huge data should have expected number of fields_.png"
[00:10:41]                 │ info Current URL is: http://localhost:61241/app/management/kibana/objects
[00:10:41]                 │ info Saving page source to: /dev/shm/workspace/parallel/24/kibana/test/functional/failure_debug/html/management  test large number of fields _before all_ hook for _test_huge data should have expected number of fields_.html
[00:10:41]                 └- ✖ fail: management  test large number of fields "before all" hook for "test_huge data should have expected number of fields"
[00:10:41]                 │      ResponseError: circuit_breaking_exception
[00:10:41]                 │       at onBody (node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:10:41]                 │       at IncomingMessage.onEnd (node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:10:41]                 │       at endReadableNT (internal/streams/readable.js:1327:12)
[00:10:41]                 │       at processTicksAndRejections (internal/process/task_queues.js:80:21)
[00:10:41]                 │ 
[00:10:41]                 │ 

Stack Trace

ResponseError: circuit_breaking_exception
    at onBody (node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
    at IncomingMessage.onEnd (node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  meta: {
    body: { error: [Object], status: 429 },
    statusCode: 429,
    headers: {
      'content-type': 'application/json; charset=UTF-8',
      'content-length': '903'
    },
    meta: {
      context: null,
      request: [Object],
      name: 'elasticsearch-js',
      connection: [Object],
      attempts: 0,
      aborted: false
    }
  }
}

Metrics [docs]

Async chunks

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

id before after diff
cases 494.0KB 494.3KB +302.0B
securitySolution 6.7MB 6.7MB +16.0B
total +318.0B
Unknown metric groups

References to deprecated APIs

id before after diff
fleet 4 2 -2
globalSearch 4 2 -2
infra 5 3 -2
total -6

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

@machadoum machadoum merged commit a961e9f into elastic:7.x May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants