* wip: add api test for evaluate endpoint
* Add api test for evaluate endpoint
* add tests for view only and unauthorized user
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Add Event Filters section to the Admin area (behind feature flag)
* new `PaginatedContent` generic component
* Refactor Trusted Apps grid view to use PaginatedContent
* Refactor usages of `getTestId()` to use new hook
* WIP
* WIP
* Remove unnecessary fields
* Work on node detail page
* Cluster overview looking good
* Index page
* Fix types
* ML jobs
* CCR
* CCR
* We just need total here
* Standalone cluster fix
* Re-enable logstash
* FIx jest test
* Fix tests
* Fix tests
* Fix unused import
* Add new MB-based archives
* Add actual archives
* Fix types
* Add this file back in
* Fix tests and add more
* Update whitelist
* Renames
* Renames
* Only do ccs if enabled
* Updates
* Comment out
* More tests passing
* Another passing test
* More passing, yay
* Forgot to add the actual tests, wow
* CCR
* Fix CI issues
* Missed a field here
* Kibana tests passing
* Fix type issues
* Fix type
* Fix types
* Good chunk of logstash work
* Fix types
* Fix jest test
* Fix issue with get usage in logstash code
* Fix small bug here
* Update archives with proper mappings
* Handle both legacy and mb fields properly
* Fixes
* Fix jest test
* Fix issue
* Getting setup tests in a better state
* Only beats is failing now, which is good
* Progress on cluster listing
* Functional tests passing!
* More progress on cluster tests
* More cluster work
* Fix test
* Last recovery working
* Fix types
* Fix tests
* More tweaks
* Fix snapshot
* Use stats instead of kibana_stats
* Use node and node_stats for logstash
* Beats tests passing
* APM tests passing
* API tests passing!
* Fix types
* Fix tests
* Renames beats-with-restarted-instance archive dirs
Kebab case is disallowed for all newly added files.
* Renames logstash-pipeline dirs
Kebab case disallowed for all new files
* Renames multi-basic dirs
Kebab case disallowed for all new files
* Renames singlecluster-* dirs
Kebab case disallowed for all new files
* Fixes inaccurate path change for archive setup
* Reverts changes to rebuild_all script
Co-authored-by: Jason Rhodes <jason.matthew.rhodes@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* updated code to use Clipboard API rather than document.execCommand
* added link to deprecation of document.execCommand
* removed legacy copy text method
* [ML] Fixing categorization job wizard with CCS
* adding comment
* switching logic around
* updating text
* moving ccs check to util function
* fixing jest test mock
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
* Empty State in Curations
* Adds Empty State to Documents View
* Updates Empty State in Engines Overview
* Updates Relevance Tuning empty state
* Updates the Result Settings empty state
* Updating test files.
* Display the empty state in the table only
* Copy changes
Small copy changes to bring it more inline with Elastic guidelines
* Update api_logs_table test
* Copy adjustments
* Fixing failing type check
* Copy adjustments on credentials empty state
* Copy changes on meta engines table
* Removes emptyState__prompt class
* Removes emptyState__prompt class
Forgot to save a file
* Update x-pack/plugins/enterprise_search/public/applications/app_search/components/engines/components/empty_state.tsx
* Adding the popout icon to docs links
* Removes the need for the engineIcon class
Also allows EuiIcon props to be passed to metaEngineIcon
* Updates meta engine empty state button to docs link
* Adds a separate constant for the empty meta engine button
* Meta Engines empty state refactor
- pull it out to its own component
- simplify tests
- simplify constants, they're only in 1 location so prob don't need to be in DRY'd out
- fix some i18n IDs
* Curations refactor
* Documents empty state refactor
- create components/ folder, move document creation button to there (feels like it belongs)
- move empty state there
- remove other empty state prompt from SearchExperienceContent??? Not sure why that wasn't showing up, but fixed tests/returns
* Relevance Tuning refactor
- create components/ folder
- move empty state + shared boost icon & value badge to it
- write test for missing value badge coverage
MISC
- Fix loading screen to an early return (matches UI of all other views)
- Remove extra EuiSpacer in layout (matches UI of all other views)
Sorry for the extra noise in your PR Davey!
* Result Settings refactor
- move empty state to its own component
- fix broken .html.html link
* Fix missing popout icon on documentation button link
* EnginesOverview cleanup
- Remove unnecessary CSS
- fix responsive behavior of icons
- standardize responsive behavior of create button actions
- standardize spacing between content headers & tables
- Tweak gap between 2 tables
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Constance <constancecchen@users.noreply.github.com>
Co-authored-by: Constance Chen <constance.chen.3@gmail.com>
* Refactor execution service to use observables underneath
* Fix canvas plugin to initialize workspace after assets
* Update expression functions implementations to resolve observables instead of promises
* Revert "skip flaky suite (#97382)"
This reverts commit e321f57f64.
* Revert "skip flaky suite (#97387)"
This reverts commit a89b756710.
* Revert "Skip test to try and stabilize master" (#97378)
This reverts commit 194355fdd3.
* upload heap dumps when they are created
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
## Summary
When we updated our codebase to use the newer bsearch/async search, we ended up using error messages which were not the same as we had before which would show the network errors in the full message when the "see full error button" was clicked.
This has been bad lately as users and quality assurance people have been posting screen shots that have very little information, blank error messages, and/or stack traces instead of network errors. This makes them think the code has issues when it is a configuration issue or a networking issue that is happening.
This PR does the following:
* Changes all the bsearch queries to use the use useAppToasts
* Modifies the useAppToasts to be able to transform bsearch with the kibana global notification
* Cleans up the useAppToasts some
* Deprecates the GlobalErrorToaster in favor of the useAppToasts
* Fixes and adds a few i18n missing strings found
* Removes most of the deprecated error dispatch toasters from detection_engine except for 1 place where it is not a hook.
Before screen shot of errors with no buttons and messages that were not pointing to network errors:
<img width="422" alt="Screen Shot 2021-04-21 at 4 24 45 PM" src="https://user-images.githubusercontent.com/1151048/115642119-9a942300-a2d7-11eb-955a-b51097a8d3ec.png">
After screen shot where you have a button and that button will show you the network error:
<img width="395" alt="Screen Shot 2021-04-21 at 3 26 12 PM" src="https://user-images.githubusercontent.com/1151048/115642216-c6170d80-a2d7-11eb-8c94-0a1c15186fab.png">
<img width="786" alt="Screen Shot 2021-04-21 at 3 26 21 PM" src="https://user-images.githubusercontent.com/1151048/115642222-ca432b00-a2d7-11eb-9ddd-4ed6c6270b94.png">
You can manually test this easily by making non ECS indexes to cause errors and then add them as a kibana index and use them in the data sourcer.
### Checklist
- [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
* Refactor main component
* Refactor faux view button
The original design called for a button-looking component on the accordion header so it looks clickable to reveal the error underneath. Using a button element caused the console to error because the entire header is a button and this is a child. Adding an href fixes the error and allows for styling as a button
* Use empty button rather than styles components for view button
* Remove extra classNames and fix layout to stretch cells
* Add stylesheet
Without the width: 100% on .euiIEFlexWrapFix, the header table does not stretch across the screen. Couldn’t find another way around this and happy to take suggestions of a better idea.
* Add prop to prevent line break on IDs
Existing implementation was causing multi-character IDs to break to a new line. So for 12, its was:
1
2
* Render flash message when server sends back an error
* Fetch data on all route changes
This produced a bug where the nav and loading states were triggered between route changes. Added conditional to prevent resetting between in-source changes