* modify API to get the total comments in _find + Add user action to track what user are doing + create _pushed api to know when case have been pushed
* fix rebase
* add connector name in case configuration saved object
* fix total comment in all cases
* totalComment bug on the API
* integrate user action API with UI
* fix merged issue
* integration APi to push to services with UI
* Fix bugs
* wip to show pushed service in ui
* finish the full flow with pushing to service now
* review about client discrepency
* clean up + review
* merge issue
* update error msgs to info
* add aria label + fix but on add/remove tags
* fix i18n
Co-authored-by: Christos Nasikas <christos.nasikas@elastic.co>
* Create Painless Playground app (#54578)
* Replace heart script with smiley face script. (#57755)
* Rename Painless Playground -> Painless Lab. (#57545)
* Fix i18n namespace.
* Improve smiley face proportions.
- Add def keyword to Painless spec.
- Temporarily fix broken highlighting.
- Add small padding to main controls.
* [Painless Lab] Minor Fixes (#58135)
* Code restructure, improve types, add plugin id, introduced hook
Moved the code execution hook to a custom hook outside of main,
also chaining off promise to avoid lower level handling of
sequencing.
* Re-instated formatting code
To improve DX the execution error response from the painless API
was massaged to a more reader friendly state, only giving non-repeating
information.
Currently it is hard to determine the line and character information from
the painless endpoint. If the user wishes to see this raw information it
will be available in the API response flyout.
* Remove leading new line in default script
* Remove registration of feature flag
* Fix types
* Restore previous auto-submit request behaviour
* Remove use of null and remove old comment
Stick with "undefined" as the designation for something not existing.
* [Painless Lab] NP migration (#59794)
* Fix sample document editor.
* [Painless Lab] Fix float -> integer coercion bug (#60201)
* Clarify data and persistence flow. Fix floating point precision bug.
* Send a string to API and ES client instead of an object.
* Rename helpers lib to format. Add tests for formatRequestPayload.
* Add query parameter to score context (#60414)
* Fix typo and i18n
* Make state init lazy
Otherwise we are needlessly reading and JSON.parse'ing on every
state update
* Support the query parameter in requests to Painless
* Fix borked i18n
* Fix i18n
* Another i18n issue
* [Painless] Minor state update model refactor (#60532)
* Fix typo and i18n
* Make state init lazy
Otherwise we are needlessly reading and JSON.parse'ing on every
state update
* Support the query parameter in requests to Painless
* WiP on state refactor
* Some cleanup after manual testing
* Fix types and i18n
* Fix i18n in context_tab
* i18n
* [Painless] Language Service (#60612)
* Added language service
* Use the correct monaco instance and add wordwise operations
* Remove plugin context initializer for now
* [Painless] Replace hard-coded links (#60603)
* Replace hard-coded links
Also remove all props from Main component
* Pass the new links object to the request flyout too
* Link directly to painless execute API's contexts
* Remove responsive stacking from tabs with icons in them.
* Resize Painless Lab bottom bar to accommodate nav drawer width (#60833)
* Validate Painless Lab index field (#60841)
* Make JSON format of parameters field more prominent. Set default parameters to provide an example to users.
* Set default document to provide an example to users.
* Simplify context's updateState interface.
* Refactor store and context file organization.
- Remove common directory, move constants and types files to root.
- Move initialState into context file, where it's being used.
* Add validation for index input.
* Create context directory.
* Fix bottom bar z-index.
* Position flyout help link so it's bottom-aligned with the title and farther from the close button.
Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alison Goryachev <alison.goryachev@elastic.co>
* Move timeline template to Define step of Rule creation
This required a refactor/simplification of the step_define_rule logic to
make things work. In retrospect I think that the issue was we were not
handling incoming `defaultValues` props well, which was causing local
component state to be lost.
Now that we're doing a merge and removed a few unneeded local useStates,
things are a) working and b) cleaner
* Fix Rule details/edit view with updated data
We need to fix the other side of the equation to get these to work: the
timeline data was moved to a different step during creation, but when
viewing on the frontend we split the rule data back into the separate
"steps."
* Remove unused import
* Fix bug in formatDefineStepData
I neglected to pass through index in a previous commit.
* Update tests now that timeline has movied to a different step
* Fix more tests
* Update StepRuleDescription snapshots
* Fix cypress Rule Creation test
Timeline template moved, and so tests broke.
* Add unit tests for filterRuleFieldsForType
* [Reporting/New Platform Migration] Use a new config service on server-side
* unit test for createConfig
* use promise.all and remove outdated comment
* design feedback to avoid handling the entire config getter
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
resolves https://github.com/elastic/kibana/issues/57143
Currently, the built-in email action requires user/password properties to be
set in it's secrets parameters. This PR changes that requirement, so they
are no longer required.
* PR base
* adds designed resolver nodes
* adjust distance between nodes
* WIP remove stroke
* WIP changes to meet mocks
* new boxes
* remove animation
* new box assets
* baby resolver running nodes complete
* cleanup defs, add running trigger cube
* added 2 more defs for process cubes
* adding switched for assets on node component
* vacuuming defs file
* adjusting types and references to new event model
* switch background to full shade for contrast
* switch background to full shade for contrast
* cube, animation and a11y changes to 25% nodes
* PR base
* adds designed resolver nodes
* adjust distance between nodes
* WIP remove stroke
* WIP changes to meet mocks
* new boxes
* remove animation
* new box assets
* baby resolver running nodes complete
* cleanup defs, add running trigger cube
* added 2 more defs for process cubes
* adding switched for assets on node component
* vacuuming defs file
* adjusting types and references to new event model
* switch background to full shade for contrast
* cube, animation and a11y changes to 25% nodes
* merge upstream
* change from Legacy to new Resolver event
* cleaning up unused styles
* fix adjacency map issues
* fix process type to cube mapping
* fix typing on selctor
* set viewport to strict
* remove unused types
* fixes ci / testing issues
* feedback from Jon Buttner
* fix index from Jon Buttner comment
* reset focus state on nodes
* Robert review: changing adjacency map property names for better semantics
* Robert Austin review: changing var name
* Robert Austin review: rearrange code for readability
* Robert Austin review: change const name
* Robert Austin review: rearranging code for readability
* Robert Austin review: adjustments to process_event_dot
* Robert Austin review: replace level getter
* Robert Austin review: removing unnecessary casting
* Robert Austin review: adjust selector
* Robert Austin review: fix setting parent map
* Robert Austin review: replace function with consts
* K Qualters review: change return type of function
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Clean up the cytoscape component and event handlers to simplify the layout logic.
Make all centering animations animated.
Add logging of cytoscape events when we're in debug mode.
Add Elasticsearch icon.
* [Lens] Improve suggestions when dragging into an existing visualization
* Include 0 metrics case
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Added an emphasize prop to the top nav menu item and used it for a new 'Create new' button which redirects to the 'new visualization' modal.
Co-authored-by: Ryan Keairns <rkeairns@chef.io>
* build: update @elastic/charts to v18.1.0
* tests: fix breaking-change on legendItem className
* fix: type changes and ml custom tooltip data
* tests: fix snapshot test
* [Lens] Use new charts APIs to simplify series naming
* Fix types
* Fix naming
* Remove accidental file
* Update snapshots
Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This removes the rescaling of ordinal values to the [0,1] domain, and modifies the creation of the mapbox-style rules to use the actual RangeStyleMeta-data. This is an important prerequisite for Maps handling tile vector sources. For these sources, Maps does not have access to the raw underlying GeoJson and needs to use the stylemeta directly.
* just a demo of function to return saved object table elements
* fix esArchive data, extend import objects test case for relationships
* improved data-test-subjs
* update snapshot for jest test
* unskip other half of the tests
* removed commented-out code
* use new findByTestSubject methods
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Add configurable page size to monitor list.
* Add functional tests for new feature.
* Update outdated snapshots.
* Extract UI concerns for size select component to dedicated function.
* Add missing props to resolve type check errors.
* Add unit test for new UI functionality.
* Refresh snapshots after additional changes.
* Introduce new parameter to API test function.
* Update flex behavior for new UI component.
* Clean up code in functional page object file.
* Refresh snapshots that were broken by previous feedback implementation.
* Fix async error introduced to test framework by other patch.
* [Telemetry] Migration to NP
* Telemetry management advanced settings section + fix import paths + dropped support for injectVars
* Fix i18nrc paths for telemetry
* Move ui_metric mappings to NP registerType
* Fixed minor test tweaks
* Add README docs (#60443)
* Add missing translation
* Update the telemetryService config only when authenticated
* start method is not a promise anymore
* Fix mocha tests
* No need to JSON.stringify the API responses
* Catch handleOldSettings as we used to do
* Deal with the forbidden use case in the optIn API
* No need to provide the plugin name in the logger.get(). It is automatically scoped + one missing CallCluster vs. APICaller type replacement
* Add empty start method in README.md to show differences with the other approach
* Telemetry collection with X-Pack README
* Docs update
* Allow monitoring collector to send its own ES client
* All collections should provide their own ES client
* PR feedback
* i18n NITs from kibana-platform feedback
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* adds data for having closed signals
* adds 'Open one signal when more than one closed signals are selected' test'
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Gate ML Rules behind a license check
If they don't have a Platinum or Trial license, then we disable the ML
Card and provide them a link to the subscriptions marketing page.
* Add aria-describedby for new ML input fields
* Add data-test-subj to new ML input fields
* Remove unused prop
This is already passed as isLoading
* Fix capitalization on translation id
* Declare defaulted props as optional
* Gray out entire ML card when ML Rules are disabled
If we're editing an existing rule, or if the user has an insufficient
license, we disable both the card and its selectability. This is more
visually striking, and a more obvious CTA.
* Parsing the Authorization HTTP header to grant API keys
* Using HTTPAuthorizationHeader and BasicHTTPAuthorizationHeaderCredentials
* Adding tests for grantAPIKey
* Adding http_authentication/ folder
* Removing test route
* Using new classes to create the headers we pass to ES
* No longer .toLowerCase() when parsing the scheme from the request
* Updating snapshots
* Update x-pack/plugins/security/server/authentication/http_authentication/http_authorization_header.ts
Co-Authored-By: Aleh Zasypkin <aleh.zasypkin@gmail.com>
* Updating another inline snapshot
* Adding JSDoc
* Renaming `grant` to `grantAsInternalUser`
* Adding forgotten test. Fixing snapshot
* Fixing mock
* Apply suggestions from code review
Co-Authored-By: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-Authored-By: Mike Côté <mikecote@users.noreply.github.com>
* Using new classes for changing password
* Removing unneeded asScoped call
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
* Fix edge case where reindex op is can falsely be seen as stale
This is for multiple Kibana workers, to ensure that an item just
coming off the queue is seen as "new" we set a "startedAt" field
which will update the reindex op and give it the full timeout
window.
* Update tests to use new api too
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
* Fix formatter on range aggregation
* Fix test that was using unformatted byte ranges
* Fix test
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>