* [Maps] replace jquery_ui_sortable with EUI Drag And Drop
* minor clean up
* fix drag and drop skipping
* add jest snapshot test for LayerTOC
* extract EuiDraggable list to js variable
* more unique droppableId
* update jest snapshot
The FilterEditor component was not updating derived state when the filter prop changed. This issue was exposed by a race condition in the dashboard app. When there are no panels with an index pattern the dashboard will fetch the default index pattern and pass it into the FilterBar. As a result, if a user managed to click the "Add Filter" button before the default index pattern finished loading the editor would first render with a filter containing no index pattern, which would cause the Field ComboBox to render in a disabled state. The FilterEditor props would update after the default index pattern finished loading, but state variables such as selectedIndexPattern would remain unchanged.
The root issue is that the source of truth about which index pattern should be used is stored in both the filter prop and the selectedIndexPattern state variable. To fix this I added a key prop to the FilterEditor that will be unique to each filter so that the component will be recreated on each filter change, while the draft state can remain fully uncontrolled in the FilterEditor component.
* uptime design cleanup
* uptime design cleanup
* test
* errorlist now styled
* errorlist now styled
* errorlist now styled
* cleanup
* replace color vars with correct naming
* some titles
* more cleanup
* clean up silly gray graph
* Address problems with UI update.
* Refresh jest snapshots.
* Fix busted types.
* Refresh jest snapshots broken by busted type fix.
* Rename duplicate localization key.
* Use same curve type for both check series on monitors page.
* Remove unused translations.
* Display name instead of ID in ErrorList component.
* Update x-pack/plugins/uptime/public/components/functional/ping_list.tsx
Co-Authored-By: snide <dave.snider@gmail.com>
* Update x-pack/plugins/uptime/public/components/functional/ping_list.tsx
Co-Authored-By: snide <dave.snider@gmail.com>
* Modify updated code to avoid flooding console log with errors.
* Get functional and unit tests passing.
* Fix busted unit test.
* Update jest snapshots.
* Add panel to empty state.
* Avoid rendering monitor list sparkline charts when downSeries has no values.
* Remove crosshair synchronization from monitor charts because of display bug. Provide default 0 value to series for check chart.
* Fix broken snapshot.
* Update monitor list and errors list to handle simple_query_string filters.
* Make FilterBar component incremental to avoid overwriting queries that are in progress of being edited.
* Update histogram query to support simple_text_query.
* Delete hardcoded height prop that was breaking UI in mobile-sized windows.
* Fix bug in check histogram function and add tests.
* Update API tests and functional UI tests.
* Fix type error in test file.
* Last few fixes
- Center empty prompt
- remove crosshairs from sparkline
- reconcile styles of text in table
* Update snaps
* WIP.
* Update snapshot query to avoid Apollo Query class and allow manual fetching.
* Update SnapshotLoading component to better reflect the actual shape of the Snapshot component.
* Introduce HOC to manage GraphQL querying.
* Remove unneeded code.
* Update monitor page query components to use new query paradigm.
* Remove remaining references to apollo query component.
* Update filter bar snapshot.
* Update empty state.
* Fix busted type in test.
* Update schema type to avoid server error.
* Remove obsolete translations.
* Remove more obsolete translations.
* Remove obsolete code from Snapshot component. Rewrite graphql HOC with hooks.
* Change loading state condition for filter bar.
* Simplify app refresh process.
* Update loading state for several components to avoid unnecessary renders.
* Add default sort order for getAll pings function.
* Add translation to bare UI string.
* Update API fixtures to handle new default sort direction.
* Fix type errors.
* Remove unused import.
* Change the way component passes children prop.
* Fix typing error.
* Modify import APIs to handle special use cases from the previous import process
* Cleanup
* Add more examples to the docs
* Make title come from data inside file
* Fix some broken tests
* Fix docs
* Fix docs wording
* Apply PR feedback pt1
* Apply PR feedback pt2
* Fix migrate significant terms include/exclude
* update ref to expect, update test initialization
* created function to encapsulate duplicated code
* commented seemingly extraneous code in test
* Removed extraneous initialization code from sig terms test, updated migrate_include_exclude_format.js to use named import from lodash, added localized displayName to sig terms
* Delete dirty prompt
* Moved check box directive
* Move kbn tooltip directive to watcher
* Moved toggle directives to watcher
* Moved json input directive to watcher
* Moved sortable column to watcher
* Fixed sortable column translations
* Remove kbn src directive (unused)
* Moved table cell directive to paginated table
* Moved number list into agg types
* Moved
- agg table
- paginated table
to table_vis plugin
* Moved draggable to vis editor
* Moved sort_prefix_first filter to agg types
* Now actions from dashboard/discovery/visualize listing table is screenreader accessible
* passing screen title to search_bar compoenent
* remove screen title from URL state
* removed obsolete translation for Asian language
* fix: add expression and filter to ElementWrapper propso
cause the component to re-render when these values change
* fix: correctly spread additional props
* chore: convert ElementWrapper to functional component
* chore: refactor ElementWrapper container
use connectAdvanced instead of connect since it provides a way to get a hold of dispatch just one time, so the handlers object can be built in the container and only updated when something actually changes
* fix: reset handlers isComplete when element changes
allow completeFn to be called again, required so that the correct external actions happen
* feat: make expression available on shapes object
* fix: reset done checker on function change
* fix: only rebuild handlers when element changes
rebuild on happens when id, filter, or expression change
* chore: remove unused ElementWrapper props
This commit introduces two changes:
- Adds new platform plugins as a new bundles to the optimizer
- A PluginsService in the UI that loads plugin bundles, initializes plugins, and manages the lifecycle of plugins.
* Generate core API docs from TSDoc comments
Uses api-extractor and api-documenter to generate documentation for
the Kibana core API from TSDoc comments in the source code.
Documentation can be generated using `npm run docs:api`.
I used --no-verify to ignore the following pre-commit hook errors:
1. Filenames MUST use snake_case - api-extractor.json
It's possible to specify a different config file, but I prefer to keep the "standard" config file name.
2. UNHANDLED ERROR: Unable to find tsconfig.json file selecting "common/core_api_review/kibana.api.ts". Ensure one exists and it is listed in "src/dev/typescript/projects.ts"
This is not a source file, so safe to ignore.
* Flesh out API docs a little bit
* Ignore snake_case check for api-extractor.json
* Ignore api-extractor's review file from pre-commit check
* Try to fix build failing by using masters yarn.lock
* I'm being stupid
* Found a better home for ignoring common/core_api_review/kibana.api.ts
* Node script for detecting core API changes
I initially wanted to include this as a precommit hook, but it takes
quite long to execute (~12s) so might be better suited as a test or
as part of the release process.
The script currently fails because api-extractor uses an older version
of typescript.
* Fix tslint precommit hook ignore condition
* Write tsdoc-metadata.json into ./build
* Add LogMeta and ElasticSearch to exported types & docs
* Suppress logging when running api-extractor from script
* Improve check_core_api_changes script and run as test
* Inline api-extractor.json config
* Fix check_core_api_changes --help flag
* LogMeta TSDoc comments
* check_core_api_changes: fail if api-extractor produces warnings or errors
And print more useful messages to the console
* Move ignored ts files list into dev/file
* Add back build:types since api-exporter cannot operate on source files
* Upgrade api-exporter/documenter
* api-extractor: independantly analyze core/public and core/server
Becasue of https://github.com/Microsoft/web-build-tools/issues/1029
api-extractor can't use core/index.ts as a single entry point for
analyzing the public and server API's as isolated namespaces.
Instead we analyze these projects separately. This introduces other
problems like the api review files and documentation always being
called "kibana." from the package.json filename.
* Build types as part of build task
* Include types in typescript browser compilation
* Force inclusion of core/public for building types
* Fix api review filename in api-exporter errors
* Update docs and API review files
* Fix api-extractor warnings
* Remove ts file ignored list since it's no longer necessary
* Rename exported api package name
* Review comments
* Export other missing types
* Upgrade api-documenter to latest beta
* Export more missing types
* Fix warnings and add api-exporter to Jenkins tests
* Correctly handle runBuildTypes() exceptions
* Fix another swallowed exception
* Fix api-extractor warnings after master merge
* Add collector to ui_metric app so that it reports its own telemetry, so app maintainers don't need to update their apps' collectors.
* Remove UI metrics and some collectors from Index Manamgement, ILM, and Rollups.
This changes two things with how the log entries are loaded:
* This adds a reload action that is triggered when the stream item container is mounted. This is the case when the source configuration is being updated. Previously, the entry list was only loaded during the initialization of the log position url state container (which only happened once).
* This also adds handling of log entry loading failures (e.g. because the configuration has been changed to use an invalid timestamp field) by emptying out the log entry list in the store. Previously, the old log entries would be kept.
fixes#34033