Skip to content

Add hit counters to histogram - #29

Merged
rashidkpc merged 1 commit into
elastic:masterfrom
rashidkpc:master
Apr 5, 2013
Merged

rashidkpc merged 1 commit into
elastic:masterfrom
rashidkpc:master

Conversation

@rashidkpc

Copy link
Copy Markdown
Contributor

Shouldn't really need the hits panel now if you don't want it

rashidkpc pushed a commit that referenced this pull request Apr 5, 2013
Add hit counters to histogram
@rashidkpc
rashidkpc merged commit b01df5c into elastic:master Apr 5, 2013
faxm0dem pushed a commit to ccin2p3/kibana that referenced this pull request Feb 17, 2014
…enterprise-id

value-pairs: Handle SDATA enterprise IDs correctly
@KnightOfNight KnightOfNight mentioned this pull request Jul 19, 2016
nreese added a commit that referenced this pull request Jan 31, 2019
…er in Top Nav (#29235)

* Embed timepicker in query bar (#29130)

* replace kbnTimepicker directive with EuiSuperDatePicker

* remove kbnTimepicker directive

* remove bootstrap datepicker

* embed timepicker in query bar

* flesh out date picker in query bar for maps app

* wire up refresh config

* fix bug with way update function called by watcher

* get maps application functional tests working with new timepicker

* remove some changes outside of scoped work

* clean up typescript lint problems

* fix query_bar I18n lint error

* update query_bar jest test

* grab some parts missing from one cherry-pick

* pass dateRange to updateQueryAndDispatch when app state changes

* use timefilter disable methods to hide timepicker from top naav

* get selected refresh unit

* use EuiSuperUpdate button

* Fix responsive sizing of datepicker (#29)

* set isDisabled on EuiSuperUpdateButton

* review feedback

* remove ts-ignore comment from defaultProps, fix query_bar snapshot

* make new props optional

* fighting with ts linter

* do not include dateRangeFrom and dateRangeTo in isDirty when shoDateRange is not true

* pull initial query from UI settings
@liza-mae liza-mae mentioned this pull request Jun 26, 2019
orouz added a commit to orouz/kibana that referenced this pull request Jan 13, 2022
ari-aviran pushed a commit to ari-aviran/kibana that referenced this pull request Feb 7, 2022
kqualters pushed a commit to kqualters/kibana that referenced this pull request Mar 8, 2022
…n-view-es-archives

Fix linting and es_archives
TattdCodeMonkey pushed a commit to TattdCodeMonkey/kibana that referenced this pull request Mar 9, 2023
CoenWarmer referenced this pull request in CoenWarmer/kibana Aug 8, 2023
andrew-goldstein added a commit to andrew-goldstein/kibana that referenced this pull request Jul 18, 2025
shahargl pushed a commit that referenced this pull request Jul 20, 2025
skynetigor referenced this pull request in skynetigor/kibana Jul 24, 2025
* feat: basestep

* Improve step types

* make stepfactory instance like

* refactor: store parsed yaml definition in workflow, store workflow as savedObject (#29)

* feat: scheduled workflows (#30)

* feat: wip

* feat: scheduled workflows

* feat: scheduled workflows

* feat: scheduled

* feat: scheduled

* feat: scheduled

* feat: scheduled

* feat: scheduled workflows

* feat: scheduled workflows

* feat: add execution logs (#31)

* feat: add execution logs

* feat: add execution logs

* feat: add execution logs

* feat: logs

---------

Co-authored-by: Ihor Panasiuk <[email protected]>
Co-authored-by: Kirill Chernakov <[email protected]>
Co-authored-by: Shahar Glazner <[email protected]>
VladimirFilonov added a commit to VladimirFilonov/kibana that referenced this pull request Mar 12, 2026
- [elastic#10](elastic#253700 (comment)), [elastic#11](elastic#253700 (comment)), [elastic#12](elastic#253700 (comment)): Remove convertToTypePreservingTemplates and isSingleTemplateExpression; use buildFieldsZodValidator(normalizedOutputs) for output validation in workflow_output_step_impl
- [elastic#15](elastic#253700 (comment)), [elastic#32](elastic#253700 (comment)): completeAncestorSteps now uses finishStep() via stepExecutionRuntimeFactory (nodes_factory, workflow_output_step_impl, workflow_execution_runtime_manager)
- [elastic#16](elastic#253700 (comment)): Revert workflow_execution_state updateStep to simple merge (no definedChanges filter); file matches main
- [elastic#17](elastic#253700 (comment)): Document in catch_error.ts how a step may already be completed (workflow.output/workflow.fail)
- [elastic#18](elastic#253700 (comment)): Revert use_monaco_markers_changed_interceptor to upstream/main
- [elastic#21](elastic#253700 (comment)), [elastic#28](elastic#253700 (comment)): Deprecate json_schema_to_zod re-export; consumers import from @kbn/workflows/spec/lib/build_fields_zod_validator; test imports from canonical source
- [elastic#22](elastic#253700 (comment)), [elastic#26](elastic#253700 (comment)): Remove isSingleTemplateExpression from templates.ts and utils/index (CodeQL/reviewer)
- [elastic#23](elastic#253700 (comment)): Rename legacyInputs to legacyFields (and input to field) in field_conversion.ts
- [elastic#24](elastic#253700 (comment)): WorkflowFailStepSchema: add optional reason, optional message, optional with
- [elastic#29](elastic#253700 (comment)): get_workflow_context_schema uses buildFieldsZodValidator(normalizeFieldsToJsonSchema(...)) for both inputs and outputs
- [elastic#31](elastic#253700): normalizeFieldsToJsonSchema accepts unknown; remove NormalizableFieldSchema casts (load_workflows_thunk, workflow_execute_modal, workflow_execute_manual_form, validate_json_schema_defaults, validate_workflow_inputs, validate_workflow_outputs_in_yaml, get_workflow_context_schema, validate_workflow_fields)
tutelaris pushed a commit to tutelaris/kibana that referenced this pull request Apr 13, 2026
…oft) but is Google's Gemini logo

Closes elastic#29

Automatically implemented by Claude Code from tutelaris/search-team#29

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
…er in Top Nav (elastic#29235)

* Embed timepicker in query bar (elastic#29130)

* replace kbnTimepicker directive with EuiSuperDatePicker

* remove kbnTimepicker directive

* remove bootstrap datepicker

* embed timepicker in query bar

* flesh out date picker in query bar for maps app

* wire up refresh config

* fix bug with way update function called by watcher

* get maps application functional tests working with new timepicker

* remove some changes outside of scoped work

* clean up typescript lint problems

* fix query_bar I18n lint error

* update query_bar jest test

* grab some parts missing from one cherry-pick

* pass dateRange to updateQueryAndDispatch when app state changes

* use timefilter disable methods to hide timepicker from top naav

* get selected refresh unit

* use EuiSuperUpdate button

* Fix responsive sizing of datepicker (elastic#29)

* set isDisabled on EuiSuperUpdateButton

* review feedback

* remove ts-ignore comment from defaultProps, fix query_bar snapshot

* make new props optional

* fighting with ts linter

* do not include dateRangeFrom and dateRangeTo in isDirty when shoDateRange is not true

* pull initial query from UI settings
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
vitaliidm pushed a commit to vitaliidm/kibana that referenced this pull request May 29, 2026
… executor (elastic#29)

Adds a pluggable row-enrichment step to the alerting v2 rule execution
pipeline and registers the Security Solution detection enrichments
against it, so risk score and asset criticality fields land on
`.rule-events` alert episode payloads alongside the ES|QL row data.

Alerting v2:
- New `EnrichEsqlRowsStep`, run between `ExecuteRuleQueryStep` and
  `CreateAlertEventsStep`, that invokes a globally registered
  `RuleExecutionRowEnricher` against each ES|QL row batch. Enricher
  failures are logged and the original batch is preserved so a broken
  enricher cannot break rule execution.
- New `registerRuleExecutionRowEnricher` public API exported from
  `@kbn/alerting-v2-plugin/server` for solution plugins to plug into.
- New request-scoped `ScopedClusterClientToken` so enrichers receive the
  same `IScopedClusterClient` (asCurrentUser / asInternalUser) that the
  rest of the rule executor uses.
- Step registered in `bind_rule_executor.ts` and exported from
  `rule_executor/steps/index.ts`. Unit test coverage added in
  `enrich_esql_rows_step.test.ts`.

Security Solution:
- Narrowed enrichment types (`AlertEnrichmentElasticsearchServices`,
  `AlertEnrichmentLogger`) so `enrichEvents` and friends no longer
  require the full `SecurityRuleServices` / `IRuleExecutionLogForExecutors`
  surface. Existing v1 callers continue to satisfy the wider type.
- New `registerSecuritySolutionAlertingV2RowEnricher` registers an
  enricher with alerting v2 that:
    - resolves `entityStoreCrudClient` when
      `entityAnalyticsEntityStoreV2` is enabled,
    - expands ES|QL flat dotted-key rows
      (e.g. `{ "host.name": "host-a" }`) into the nested object shape
      that `euid.getEuidFromObject` and the lodash-based field
      accessors expect,
    - calls `enrichEvents` with the rule's scoped cluster client and a
      lightweight logger adapter,
    - flattens the enriched `_source` back to dotted keys so
      `group_hash` computation and `.rule-events.data` (a `flattened`
      field) keep their existing semantics.
- Wired into `Plugin#setup` and added `@kbn/alerting-v2-plugin` to the
  Security Solution `tsconfig.json` and `moon.yml`.

Co-authored-by: Cursor <[email protected]>
NicholasPeretti added a commit to NicholasPeretti/kibana that referenced this pull request Nov 26, 2026
…_cypress/cypress/e2e/investigations/timelines/esql/esql_state.cy.ts (job 55, iteration 3)

Review feedback (iteration 3): the reviewer pointed out that cy.wait on the timeline PATCH that carries the Discover session ID also resolves on a 409 or 500. The active timeline keeps the savedSearchId in memory, so the columns could come back after in-app navigation even when the timeline never saved its link to the session. Both waits on TIMELINE_REQ_WITH_SAVED_SEARCH now assert response.statusCode eq 200. That is the columns test the comment named, plus the query test, which has the same bare wait and relies on the same save. The PATCH /api/timeline route returns response.ok (200) on success and siemResponse.error otherwise (patch_timelines/index.ts:77-97). The pattern follows row_renderers.cy.ts:130. This adds an assertion; it doesn't loosen one.

Problem 1 (stale): unchanged from the earlier iterations. describe.skip('Timeline Discover ESQL State') is removed, since b00faf9 fixed the tab's remount path on 9.6.

Problem 2 (patch): unchanged. The it.skip on the query test is removed. verifyDiscoverEsqlQuery now asserts with an expect inside the should-callback. Before, it returned a boolean, which Cypress ignores. The expect turns Monaco's middots and non-breaking spaces back into plain spaces and compares with eq. Other consumer of the helper: discover_timeline_state_integration.cy.ts. Its assertions become real too, and a correct restore passes them. Assertion questions: the query assertion fails on an empty or default query. The column header assertions need the restored query and range to return rows. The data view picker test runs after beforeEach has driven the same search bar. No skips remain in the file.

CI build 545291: the only failed steps are FTR Configs (elastic#23, elastic#29, elastic#36, elastic#39, elastic#45, elastic#63, elastic#64). This PR changes only a Cypress spec and a Cypress task file, which no FTR config loads, so those failures aren't caused by this change. Cypress isn't run locally; the PR's flaky test runner is the first run.
peteharverson pushed a commit to peteharverson/kibana that referenced this pull request Nov 27, 2026
## Summary

Unskips `describe('query tab with unified timeline')` in
`x-pack/solutions/security/plugins/security_solution/public/timelines/components/timeline/tabs/query/index.test.tsx`,
skipped since 2025-09-17
([elastic#224186](elastic#224186)). 18 tests
run again.

The old `it.skip` for the notification dot
([elastic#189794](elastic#189794)) stays
skipped, unchanged.

After review, 5 of the 23 unskipped tests are deleted because other
tests already make the same checks: `should render unifiedDataTable`,
`should render unified-field-list`, `should show row-renderers by
default`, `should remove column` and `should sort number column`. Four
of them mounted the full data grid. `should move column left/right` and
`should sort date column` stay, because they check the rendered column
order and the sort sent to `useTimelineEvents`, which the
`unified_components` tests do not. The string sort test still checks
that the sort reaches `useTimelineEvents`.

## Why the suite was skipped

Nothing ran it in CI after the skip, and three changes broke it:

- The shared data view mock
(`data_view_manager/mocks/mock_data_view.ts`) has no `convertToReact`.
The field formatter API change in `b58170b` made every
`UnifiedDataTable` cell call it, so each render threw.
- `useTimelineControlColumn` renders nothing unless
`rawResponse.hits.hits` is filled (`edae058`), and
`getMockTimelineSearchSubscription` returned `rawResponse: {}`. The
notes and pin buttons never rendered.
- `d6ba5df` renamed the pin test id from `pin` to
`timeline-pin-event-button`. `AlertContextMenu` also reads
`alertsPrivileges` now, which the test's privileges value did not have.

On `main`, with the skip removed, 18 of 24 tests passed and 5 failed.

## What this PR changes

- **Mocks.** `convertToReact` returns the value (JSON text for objects
and arrays). The search mock returns the hits of the page, with an
`_index`. Only a method and data are added, so the other users are not
affected.
- **Pin tests.** They use the new test id. The test for an event with no
note on the current timeline now clicks the button and checks that the
event is pinned.
- **Stubs, to keep the file faster.** The grid tests (sorting, columns,
sample size, fields list, pagination UI) use the real
`UnifiedTimelineBody`. They render it without the leading control column
(`useTimelineControlColumn` returns none), because they never use the
notes and pin buttons and each row's popovers are slow in jsdom. Five
tests use a stub of the body instead: the two notes-loading tests (they
drive `onUpdatePageIndex` and the page size), the notes flyout test and
the two pin tests. Three sidebar tests stub the table and keep the real
sidebar.
- **Test fixes from review.** The header check of the remove-column test
is inside `waitFor`. The real-grid pagination test also checks the notes
fetch after a page click. It uses the real Notes control on page 3 and
checks that `openNotes` gets that page's event (`hit.raw._id` and
`_index`). The page-size test changes the page size and checks the
refetch.
- `SPECIAL_TEST_TIMEOUT` is 90 s, as in
`unified_components/index.test.tsx`.

## Test results

Local runs on a laptop:

| Check | Result |
| --- | --- |
| `tabs/query/index.test.tsx` | 19 tests: 18 passed, 1 skipped (the old
`it.skip`), 0 failed |
| File time | 188 s with 24 tests, 140 s with the control column stub,
136 s after the 5 tests were deleted (one run; the run-to-run spread is
about 5%) |
| The 78 other test files that use the two mocks (10 Jest configs) | 663
tests, 0 failed |
| `node scripts/type_check` for `security_solution`, `node
scripts/eslint` | no errors |

## CI results

Suite time is the sum of the test times in the Jest junit report. It
varies by about 25% between builds. The builds below ran the 24-test
version, before the 5 tests were deleted. A build of the final head is
pending.

| Build | Head | Suite time | Slowest test | The file |
| --- | --- | --- | --- | --- |
|
[544261](https://buildkite.com/elastic/kibana-pull-request/builds/544261)
| before the timeout change (limit 50 s) | 667 s (11.1 min) | 63.4 s | 1
failed (timeout) |
|
[544342](https://buildkite.com/elastic/kibana-pull-request/builds/544342)
| `6cddf7a` | 557 s (9.3 min) | 49.5 s | all passed |
|
[544821](https://buildkite.com/elastic/kibana-pull-request/builds/544821)
| `2dfb40e` | 699 s (11.7 min) | 70.1 s | all passed |
|
[544996](https://buildkite.com/elastic/kibana-pull-request/builds/544996)
| `6d424f0` (control column stub) | 584 s (9.7 min) | 55.7 s | all
passed |

All Jest jobs passed in the last three builds. Build 544996 failed on an
unrelated test, `FTR Configs elastic#29` (`apis/streams/schema.ts:153`,
"expected 'success' to equal 'failure'"). Its Jest junit has 0 failures
in 30,325 cases.

## Is it worth it? What it costs and what it gives

**Cost.**
- On `main` the suite is skipped (24 skipped, 0 s in four recent
builds). With the 24-test version it added about 9 to 12 minutes of Jest
time in one shard. The 19-test version is about as fast as the 24-test
version with the control column stub, within local noise. The rest of
the `public/timelines` tests take 7 to 8 minutes there.
- Jest runs in parallel shards, so the build gets longer only if that
shard ends last. In this PR's builds it was the last Jest shard, and the
builds took 58 to 61 minutes. The median of recent PR builds is about 52
minutes, but those are other PRs, so this is not a controlled
comparison. For `main`, a model that puts the 9.3 minutes in each shard
of four recent builds gives 0 minutes of wall time in three builds and
up to 3.8 minutes in one.
- The slowest tests take 50 to 70 s against the 90 s limit, so some
flakiness at the limit is possible.

**Gain.**
- 18 tests run again. Three of them have no test with the same name
anywhere else: `clear all sorting`, `sort by multiple columns` and
`should paginate correctly`. The tests that only repeated
`unified_components` are deleted.

**If the cost is too high:** the slowest grid tests can be skipped
again, with a comment.

Closes elastic#273709

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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.

1 participant