Commit graph

157 commits

Author SHA1 Message Date
Josh Dover
68f77d935f
[7.x] Refactor HttpService tests (#53033) (#53614) 2019-12-19 16:42:30 -06:00
Pierre Gayvallet
1722e28294
[7.x] Remove react references from core Notifications apis (#49573) (#50616)
* Remove react references from core `Notifications` apis (#49573)

* add reactMount util to kibana_react

(kibana-react) properly export reactMount

* add MountPoint types and utility

* adapt toast API to no longer accept react elements

(toast API) properly export new Toast type

* adapt calls by using reactMount

createNotifications: do not wrap if text

* update generated doc

* add custom snapshot serializer for reactMount

* fix unit tests

fix xpack unit tests

* adapt non-ts calls

* do not add __reactMount__ property in production

* remove string check on createNotifications

* fix typo and small fix using obj spread

* improve react mount snapshot serializer

* simplify convertToEui

* rename reactMount to toMountPoint

* adapt newly added calls

* move mount types to proper file

* use new Mount types for OverlayBanner apis

* fixing typo

* adapt new calls

* use destructured imports

* adapt call in 7.x
2019-11-14 10:36:08 +01:00
Spencer
0ee219e375
[7.x] move react/jsx-a11y rules into shared react preset (#492… (#49631)
* move react/jsx-a11y rules into shared react preset

* autofix react/jsx-closing-tag-location

* autofix react/no-unknown-property

* manually fix react/no-unescaped-entities

* maually fix react/jsx-pascal-case

* manually fix react/prefer-stateless-function

* disable known violations in specific plugins/areas

* remove code override

# Conflicts:
#	x-pack/legacy/plugins/upgrade_assistant/public/components/tabs/checkup/deprecations/reindex/flyout/warnings_step.tsx
2019-10-29 07:45:29 -07:00
Tim Sullivan
af952997c5
[Reporting] Replace Job Completion Notifier as NP Plugin (#47283) (#48703)
* [Reporting] Replace Job Completion Notifier as NP Plugin

* beautiful toasts

* unit test

* showNotifications returns observable

* fix kibana.json

* depends on links

* no prettier ignore

* Update content per feedback

* Remove unnecessary wrapper

* remove type annos and condense

* use an observable of the stop method

* rename the new platform plugin to match legacy

* fix i18n config

* additional plugin rename

* i18n strings prefix change

* try something with x-pack/.i18nrc.json

* remove a few more notifier phrasing from plugin definition
2019-10-21 12:25:47 -07:00
Court Ewing
dbb0534c21 Move x-pack plugins/server/common to x-pack/legacy 2019-06-20 13:35:00 -04:00
Matthew Kime
7d3b5564af
d13n PathProvider (#38505) (#38574)
* d13n PathProvider
2019-06-10 13:43:08 -05:00
Matthew Kime
24282a57be
No unused vars cleanup set two (#37051) (#37124)
* no unused vars cleanup
2019-06-08 22:25:33 -05:00
Josh Dover
8c24bfc6a5
[7.x] [new-platform] Simplify the frontend integration with the legacy platform (#37734) (#38172) 2019-06-06 14:49:08 -05:00
Chandler Prall
3a23648223
Make plugins/reporting config snapshot deterministic (#38019) (#38033) 2019-06-05 10:57:15 -04:00
Chandler Prall
8e37d72558
Upgrade EUI to 11.0.1; support dynamic import() calls in UI code + eui (#36316) (#37900)
* Upgrade EUI to 11.0.1; support dynamic import() calls in UI code + eui

* update snaps

* Clicking on the svg itself once loaded

* updated snaps

* update icon in snapshots

* Fix snapshot
2019-06-03 17:13:06 -04:00
Joel Griffith
f83db32ad5
Bugfix/reporting png is cancelled (#37513) (#37685)
* Making sure we have bindings properly set with our Classes + tests
2019-05-31 12:07:24 -07:00
Tiago Costa
60f852b344
Replace tsc compilation with transpile with babel on kbn plugin helpers for typescript (#36769) (#37642)
* chore(NA): add transpile with babel the typescript files on xpack when build.

* chore(NA): fix the globs for public folders inside server paths

* docs(NA): add comments to explain globs.

* chore(NA): use pipeline instead of async pipeline promise from dev utils. chore(NA): change globs definitions to match the overall convention.

* chore(NA): apply documented way to use stream pipeline.

* chore(NA): exclude test files from the build transpilation.

* chore(NA): add ignore for eslint complexity warning

* chore(na): fix bad added type files.

* fix(NA): unused type exports
2019-05-31 14:07:43 +01:00
Joel Griffith
a41791958f
[Feature/Reporting] Export Saved Search CSV as Dashboard Panel Action (#34571) (#37401) 2019-05-29 15:20:13 -07:00
Matthew Kime
4012fac123
emove angular i18n service calls (#36329) (#36851)
* Remove angular i18n service calls
2019-05-21 19:58:27 -05:00
Chris Roberson
2ac88caf21
[Monitoring/Telemetry] Force collectors to indicate when they are ready (#36153) (#36706)
* Initial code to force collectors to indicate when they are ready

* Add and fix tests

* Remove debug

* Add ready check in api call

* Fix prettier complaints

* Return 503 if not all collectors are ready

* PR feedback

* Add retry logic for  usage collection in the reporting tests

* Fix incorrect boomify usage

* Fix more issues with the tests

* Just add debug I guess

* More debug

* Try and handle this exception

* Try and make the tests more defensive and remove console logs

* Retry logic here too

* Debug for the reporting tests failure

* I don't like this, but lets see if it works

* Move the retry logic into the collector set directly

* Add support for this new collector

* Localize this

* This shouldn't be static on the class, but rather static for the entire runtime
2019-05-20 16:39:46 -04:00
Spencer
f7a8b33723
[7.x] [xpack/encryptionKeys] use default keys when running from source (#36452) (#36461)
* [xpack/encryptionKeys] use default keys when running from source

* add tests for the config schema with different contexts

* share the getConfigSchema helper

* await promises returned by expect().resolves

* tweak test naming

* use data-driven tests

* fix type error

* hide platform dependent config from snapshot
2019-05-10 13:21:46 -07:00
Josh Dover
ff2c2c467b
[7.x] Move Nav APIs to new platform (#34490) (#36453)
This moves the core Nav APIs from `ui/chrome` into the `ChromeService` in the new platform.

- `ChromeStart` now exposes a sub-service for reading and making limited updates to navlinks. These are powered by apps registered with the `ApplicationService` and filtered by UI Capabilities before being exposed by the `ChromeService`.
- The `header-global-nav` directive now consumes navlinks from the new platform.
- The `lastSubUrl` feature utilized by legacy apps has been refactored and will remain in `ui/chrome`. This feature utilizes the limited fields that `ChromeService` exposes to updates by outside code.

This change is the main blocker to moving the Chrome UI to the new platform. This will be necessary to enable the new platform to control top-level routing.
2019-05-10 13:08:21 -05:00
Larry Gregory
40d144f455
[7.x] Update archiving dependencies (#35896) (#35969)
* update tar to latest (4.4.8)

* remove unused bz2 extraction code

* update geckodriver to latest (1.16.2)

* update untar to ensure destination exists
2019-05-03 07:06:58 -04:00
Caroline Horn
6d97358edd Fix some EuiFlyout and EuiModal usages (#35829) (#35894)
* Fix maps layer flyout

* Fixing some flyout headers with border and size

* Using euiOverflowShadow to remove warnings

* Fixed up some regular modal usages

* Added danger colors to EuiConfirmModals where necessary
2019-05-01 15:48:41 -06:00
Chandler Prall
a4255a292f
Upgrade EUI to 10.1.0 (#35418) 2019-04-22 12:29:22 -06:00
Spencer
6d83fc488b
[7.x] [reporting] increase timeout of esqueue tests (#35325) (#35331)
Backports the following commits to 7.x:
 - [reporting] increase timeout of esqueue tests  (#35325)
2019-04-19 11:05:42 -07:00
Tim Sullivan
7bee8eaab8
[Typescript/Chore] Convert LevelLogger Logger to Typescript (#34972) (#35033)
* [Typescript/Chore] Convert LevelLogger to Typescript

* prettier

* tags optional for warn

* fix shadow lint rule
2019-04-12 16:37:15 -07:00
Joel Griffith
ea1793f5e3
Set a default timeout for all "waitfor" methods (#34756) (#34827) 2019-04-09 15:54:30 -07:00
Tiago Costa
f062c97302
chore(NA): merge and solve conflicts with 7.x (#34645) 2019-04-05 19:14:26 +01:00
dave.snider@gmail.com
43db4ef258
[7.x] EUI catchup to 9.7.1 (#34124)
* Upgrades EUI to 9.5 (#33672)

* Updates EUI to 9.5.0

* Remove duplicate type

* Updates snapshots and fixes a few type errors

* Updates x-pack snapshots

* Upgrade EUI to 9.6.0 (#33873)

* eui to 9.6.0

* update snapshots related to onClick

* EUI@9.7.0 (#34011)

* eui 9.7.1 (#34098)

* snaps
2019-03-28 16:26:57 -07:00
Chandler Prall
cb53a9941d Revert "Upgrade EUI to 9.6.0 (#33873)"
This reverts commit 3603613653.
2019-03-28 10:18:29 -06:00
Greg Thompson
3603613653 Upgrade EUI to 9.6.0 (#33873)
* eui to 9.6.0

* update snapshots related to onClick
2019-03-28 09:01:23 -07:00
Tiago Costa
4213441df7
[7.x] Migration to Babel7 and @babel/preset-typescript (#33093) (#33889)
* chore(NA): merge and solve conflicts with 7.x branch

* docs(NA): fix docs build with page headers.
2019-03-27 00:40:12 +00:00
Spencer
883ea31bd2
[@kbn/expect] "fork" expect.js into repo (#33761) (#33794)
* [@kbn/expect] "fork" expect.js into repo

* [eslint] autofix references to expect.js

* [tslint] autofix all expect.js imports

* now that expect.js is in strict mode, avoid reassigning fn.length
2019-03-25 13:13:21 -07:00
Spencer
f09e17e76c
[7.x] [eslint] merge custom rules into a single plugin (#33733) (#33758)
Backports the following commits to 7.x:
 - [eslint] merge custom rules into a single plugin  (#33733)
2019-03-22 18:53:45 -07:00
Spencer
552d6e3df4
[7.x] [reporting/extract] replace fixtures that look like source (#33739) (#33742)
Backports the following commits to 7.x:
 - [reporting/extract] replace fixtures that look like source  (#33739)
2019-03-22 15:55:08 -07:00
Tim Sullivan
fcaa76ec57
Reporting: register a single ESQueue worker, simultaneous poll for all export types (#32839) (#33339)
* Reporting: register a single ESQueue worker, simultaneous poll for all export types

* more typescript

* PLUGIN_ID constant

* move down log / internal state

* fix tests

* jest test for createWorker

* assert arguments to queue.registerWorker

* logic move

* make ts ignore specific

* minor reversion to fix some esqueue worker tests
2019-03-20 09:50:45 -07:00
Joel Griffith
01137f3e08
Chore/update headless shell to pptr@1.13.0 (#33272) (#33431) 2019-03-18 11:39:58 -07:00
Tim Sullivan
87357b3ef7
[Reporting] Consolidate startup self-checks (#31931) (#33213)
* [Reporting] Open test page in reporting browser self-check

* comment correction

* fix tests

* fix test

* fix tests more

* remove test of open Kibana URL
2019-03-14 09:22:55 -07:00
Tim Sullivan
969a33bb48
[Reporting] Use lowercased server host settings (#33020) (#33037) 2019-03-13 08:41:45 -07:00
Tim Sullivan
cb57465928
[Reporting/fix] include the error object job decryption errors (#32216) (#32912)
* [Reporting/fix] include the error object in the messages about can't decrypt the job data

+ Prettier fixes

* fix translation string values

* fix i18n

* fix translation files
2019-03-11 15:33:04 -07:00
Spencer
1967e99b43
[reporting/autoDownload] default to true when not in distributable (#32803) (#32804) 2019-03-08 12:37:27 -08:00
Jason Rhodes
a1f8dcd900
Upgrades EUI to 9.x (#32009) (#32642)
* Fixed a simple argument bug and removed infra date picker EUI types

* Fixes for EUI date picker types

* eui_8.0.0

* fix type errors in query_bar

* Small changes for EUI types

* Updates EUI to 9.0.0 and removes @types/react-datepicker as it now ships with EUI

* Updates to EUI 9.0.1 and removes duplicate types in infra eui.d.ts

* ts-ignore applied to ongoing type error with styled components and EUI

* Changes EuiProgress props to avoid TS errors

* Updates EUI 9.0 snapshots

* Updates kibana root snapshots for EUI 9.0 upgrade

* Update detail_panel.test.js for EUI changes

* Updated functioanl and unit tests to properly inspect EuiTableRowCell rendered values

* Fix docs_level_security_roles.js func tests

* Update EUI to 9.0.2

* Fixed failing snapshot for EUI icon default prop
2019-03-07 13:17:48 -05:00
Spencer
23d37cf7d9
[7.x] [eslint] require final newline (#32265) (#32268)
Backports the following commits to 7.x:
 - [eslint] require final newline  (#32265)
2019-02-28 19:10:43 -08:00
Josh Dover
1574dee431
Remove types from Esqueue (#32146) (#32229) 2019-02-28 14:07:57 -06:00
Aleh Zasypkin
515682956d
[7.x] Introduce Elasticsearch service. (#32206) 2019-02-28 18:53:32 +02:00
Tim Sullivan
0f0d53cf5d
[Reporting] Fix error handling in process request failed (#31861) (#32090)
* [Reporting] Fix error handling in process request failed

- Callback param is a Puppeteer `Request` object, not Error

* unrelated prettier
2019-02-27 09:23:46 -07:00
Tim Sullivan
f91336c0b7
[Reporting] Fix browser extraction logging (#31608) (#31645)
This change to the logging helps clarify to the reader what is going on,
the build ID of our Chromium, and where things are laid out in the system.
2019-02-20 17:06:46 -07:00
CJ Cenizal
13a7bb3835
Reintroduce linting rule that requires single-quotes in x-pack. (#30893) (#31215)
* Reintroduce linting rule that requires single-quotes in x-pack.
* Remove redundant quotes rule for ML.
* Convert ES-UI code to single quotes.
  - Dev tools
  - CCR
  - ILM
  - Index management
  - License management
  - Remote clusters
  - Rollup
  - Watcher
* Convert Graph code to single quotes.
* Convert Maps to single quotes.
* Convert Monitoring code to single quotes.
* Convert Reporting code to single quotes.
* Convert Security code to single quotes.
* Convert Telemetry code to single quotes.
* Convert Upgrade Assistant code to single quotes.
* Convert Grok Debugger to single quotes.
2019-02-14 17:36:25 -08:00
Tim Sullivan
f22e7fa48c
Fix/reporting vis preserve (#30456) (#30552)
* add state field for isPreserveLayoutSupported

* doc updates
2019-02-13 10:14:49 -07:00
Tim Sullivan
220d22d983
[Reporting] refactor routes files and helpers (#30111) (#30873)
* remove unused file

* refactor routes files and helpers

* default empty array for conflictedTypesFields

* minor prettier

* remove some unrelated diff

* some typescript conversions

* more typescripts

* more typscript

* jobtype is a string

* revert some logic change

* set payload.headers to undefined + not mutate

* fix jest import
2019-02-13 09:43:06 -07:00
nicknak
acd886b63b
Handle warnings from task manager without stack traces. (#30692) (#30869)
* Handle warnings from task manager without stack traces.

* Fix typescript errors.

* Catch no living connection errors.

Swallow stack traces and do not throw errors.

* Should use string substitution instead of concatenation.
2019-02-13 05:48:14 -05:00
Court Ewing
146518cab7 Update paths to ui, server, deprecation, plugin_discovery in src/legacy
This commit accompanies the four that precede it. Rather than squash
them altogether, the four previous commits all do nothing except move
files to help avoid conflicts.
2019-02-11 11:06:26 -05:00
Tim Sullivan
2fe64010ab
Fix date formatting on server for CSV export (#29977) (#30263)
* Fix date formatting on server for CSV export

* remove stray console.log

* allow async to act in parallel

* Log a warning when "Browser" is the timezone
2019-02-07 08:17:08 -07:00
Tim Sullivan
ef0fba1bd2
[Reporting] Copy Post URL: track layoutID in state (#30029)
* [Reporting] Post URL: track layoutID in state

* I think this code was not supposed to be here

* ts fix

* revert some diff

* Revert "I think this code was not supposed to be here"

This reverts commit b2e5f60afb.

* static getAbsoluteReportGenerationUrl

* ts fix
2019-02-05 13:48:44 -07:00