Commit graph

169 commits

Author SHA1 Message Date
Tim Sullivan
40fa961d53
[Reporting] Remove unused priority field (#92552)
* [Reporting] Remove unused priority field

* fix test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 10:41:08 -07:00
Tim Sullivan
348472cd59
[Reporting] Clean up test helpers and mocks (#92550)
* [Reporting] Clean up logger instances and mocks

* revert logging changes, just keep test changes

* remove fluff

* clean up too much logger.clone

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-03-01 10:19:13 -07:00
Tim Sullivan
fd348d3f82
[Reporting/Discover] include the document's entire set of fields (#92730)
* fix get_sharing_data to provide a list of fields if none are selected as columns in the saved search

* add logging for download CSV that fields must be selected as columns

* add more functional test coverage

* fix ts in test

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-25 14:47:04 -07:00
Daniil
d0a7ca2eb4
Use EuiResizableContainer in visualize (#86934)
* Use EuiResizableContainer

* Code cleanup

* Memoize the sidebar for performance boost

* Prevent mouseLeave event

* Downgrade eui to 30.6.0

* Revert eui downgrade

* Update styles

* Render embeddable after a timeout

* Fix printing

* Fix resizer functional test

* Create an explicit layout breakpoint

* Remove extra code

* Update layout styles

* Add a note of using height: 1px

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-22 17:19:58 +03:00
Ahmad Bamieh
832c639cc6
remove xregexp package (#91369)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-17 17:10:40 +02:00
Brandon Kobel
4584a8b570
Elastic License 2.0 (#90099)
* Updating everything except the license headers themselves

* Applying ESLint rules

* Manually replacing the stragglers
2021-02-03 18:12:39 -08:00
Tim Sullivan
8701ac85d3
Deprecate CSV job type (#89794)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-02-01 09:36:49 -07:00
Clint Andrew Hall
af337ce4ed
[Presentation Team] Migrate to Typescript Project References (#86019)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-31 08:37:58 -06:00
Ahmad Bamieh
82902e8918
[Telemetry] Settings Collector: redact sensitive reported values (#88675) 2021-01-27 17:57:53 +02:00
Mikhail Shustov
1f644e44c9
Update babel to v7.12 (#89006)
* bump babel version

* build kbn-pm

* fix integration test

* remove cicular dependency between files which crashes Kibana  in rutime

Co-authored-by: spalger <spalger@users.noreply.github.com>
2021-01-26 17:42:41 +01:00
Mikhail Shustov
b3a9754394
[Core] Explicit typings for request handler context (#88718)
* move context to server part. couple with RequestHandlerContext

Context implementation will be simplified in follow-up.

* adopt core code

* adopt bfetch code

* adopt data code

* adopt search examples

* adopt vis_type_timelion

* adopt vis_type_timeseries

* adopt plugin functional tests

* adopt actions

* adopt alerting plugin

* adopt APM plugin

* adopt beats_management

* adopt case plugin

* adopt cross_cluster_replication

* adopt data_enhanced

* adopt event_log

* adopt global_search

* adopt index_management

* adopt infra

* adopt licensing

* adopt lists

* adopt logstash

* adopt reporting

* adopt observability

* adopt monitoring

* adopt rollup

* adopt so tagging

* adopt security

* adopt security_solutions

* adopt watcher

* adopt uptime

* adopt spaces

* adopt snapshot_restore

* adopt features changes

* mute error when null used to extend context

* update docs

* small cleanup

* add type safety for return type

* refactor registerRouteHandlerContext type

* update docs

* update license header

* update docs

* fix type error. fetch body does not accept array of strings

* fix telemetry test

* remove unnecessary ts-ignore

* address comments

* update docs
2021-01-21 15:20:22 +01:00
Tiago Costa
5dca937c01
chore(NA): move reporting plugin test fixtures out of __tests__ folder (#87888)
* chore(NA): move reporting plugin test fixtures out of __tests__ folder

* fix(NA): fix a test import
2021-01-12 02:44:07 +00:00
Tim Sullivan
5d135359d7
[Reporting] set viewport to include clip area (#87253)
* [Reporting] set viewport to include clip area

* remove getViewport

* fix tests

* simpler

* fix 1

* revert

* hacks

* scope the logging variables

* polish

* hacky fix

* quieter logging

* make less hacky

* fix functional test

* revert lowering log level of browser console messages

* revise comments

* setViewport only to happen once

* fix snapshot of layout type tests

* fix comment text

* Revert "setViewport only to happen once"

This reverts commit 15977f9db4.

* fix disgusting bug

* use x/y ordering for width/height

* fix fn test snapshots

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2021-01-06 15:30:35 -07:00
Thomas Watson
b0a66da8f0
Remove support for setting server.host to '0' (breaking) (#87114) 2021-01-06 13:12:01 +01:00
Christiane (Tina) Heiligers
a98550b4f1
Reporting usage collector fetch migration (#86675) 2020-12-22 11:23:54 -07:00
Thomas Watson
e8b21bc6c1
Upgrade to hapi version 20 (#85406) 2020-12-19 13:10:11 +01:00
Devon Thomson
e4114dc08f
Dashboard Print Optimize Class Change (#85878)
* Fixed print oversight from deangularize PR & removed grey lines from background of print optimized dashboard PDF
2020-12-15 14:01:11 -05:00
Poff Poffenberger
cda3627a79
[Reporting/PDF] Layout option for generating full-page Canvas reports (#84959)
* [Reporting/PDF] Custom layout option for Canvas

* fix snapshots

* --wip-- [skip ci]

* check pdf data

* add test

* functional tests work

* add fixme comment

* read strings from pdf for test

* Update reports.ts

* function name / comment improvment

* Add Canvas toggle to choose pdf layout type

* Fix Canvas pdf panel storybook test

* Update style for new Canvas report type switch

* Update canvas share menu snapshot

* Fix tests for validating Canvas PDF using inline snapshots

Run test server with:
node scripts/functional_tests_server.js --config x-pack/test/functional/config.js

Run test suite with:
node scripts/functional_test_runner.js --config x-pack/test/functional/config.js --grep 'Canvas PDF Report'

* Fix i18n and typo

* Add a test for removing borders

* Fix i18n

* Update snapshot

Co-authored-by: Timothy Sullivan <tsullivan@elastic.co>
Co-authored-by: Tim Sullivan <tsullivan@users.noreply.github.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-10 13:34:47 -06:00
Joel Griffith
9073aec955
[Reporting] Bump puppeteer 5.4.1 + roll chromium rev (#85066)
* Update puppeteer + new headless shell bin

* Bump types for pptr

* Fix broken mock for pptr
2020-12-04 14:50:07 -08:00
Brandon Kobel
f9ade905a2
Deprecate reporting.index setting (#84005)
* Deprecating `xpack.reporting.index` setting

* Adding unit test

* Now with more standard deprecation messages

* Updating the xpack.reporting.index docs

* Fixing tests

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-12-03 06:42:32 -08:00
Alejandro Fernández Haro
cb55898c98
[UsageCollection] Remove formatBulkUpload and other unused APIs (#84313)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-11-30 11:30:47 +00:00
Mikhail Shustov
5ec6fe315f
[DX] Bump TS version to v4.1 (#83397)
* bump version to 4.1.1-rc

* fix code to run kbn bootstrap

* fix errors

* DO NOT MERGE. mute errors and ping teams to fix them

* Address EuiSelectableProps configuration in discover sidebar

* use explicit type for EuiSelectable

* update to ts v4.1.2

* fix ts error in EuiSelectable

* update docs

* update prettier with ts version support

* Revert "update prettier with ts version support"

This reverts commit 3de48db3ec.

* address another new problem

Co-authored-by: Chandler Prall <chandler.prall@gmail.com>
2020-11-24 16:04:33 +01:00
Mikhail Shustov
95861a0fb0
[DX] Prettier v2.2 (#83899)
* update prettier with ts version support

* mute type-error

* run prettier on codebase

* fix examples

* fix errors after master merged
2020-11-23 13:17:05 +01:00
Jonathan Budzenski
6c23302b36
[cli] Add bin/kibana-encryption-keys (#82838)
Co-authored-by: Aleh Zasypkin <aleh.zasypkin@gmail.com>
Co-authored-by: Tyler Smalley <tylersmalley@me.com>
2020-11-19 12:41:48 -06:00
Joel Griffith
e07d6d0b38
Derive the port from the protocol in cases where it's not explicitly stated (#83583) 2020-11-18 08:19:41 -08:00
Alejandro Fernández Haro
484437f66d
[UsageCollection] Expose KibanaRequest to explicitly opted-in collectors (#83413) 2020-11-18 08:32:33 +00:00
Thomas Watson
4c49d5d1be
Upgrade Node.js to version 12 (#61587) 2020-11-12 22:00:57 +01:00
Tim Sullivan
4932dc55a6
[Reporting] Move "common" types and constants to allow cross-plugin integration (#83198) 2020-11-12 08:58:05 -07:00
Thomas Watson
700225061a
Upgrade to hapi version 18 (#80468) 2020-11-02 13:18:00 +01:00
Thomas Watson
1407f713e5
Update KibanaRequest to use the new WHATWG URL API (#80713) 2020-10-29 14:35:48 +01:00
Tim Sullivan
ae95bf2b05
[Reporting/Tech Debt] Convert PdfMaker class to TypeScript (#81242)
* convert pdf.js to TS

* more typescript

* simplify caller

* more typescript

* more typescript

* fix the code to match the expected interface

* very cool comment

* interface correction

* remove unused class method

* add unit test for PdfMaker

* file rename for typo correction

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-21 13:54:52 -07:00
Tim Sullivan
2fa083763b
[Reporting] Config Schema Validation for rules[N].protocol strings (#80766) 2020-10-15 16:14:23 -07:00
Tim Sullivan
f09aefb9e2
[Reporting] Add context to logging about Space ID handling (#80106)
* [Reporting] Logger Fixes

* info level to debug level for default space message

* fix context for custom logo

* fix tags

* Update x-pack/plugins/reporting/server/core.ts

Co-authored-by: Joel Griffith <joel@joelgriffith.net>

* rm whitespace

* one more backtick string

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Joel Griffith <joel@joelgriffith.net>
2020-10-13 15:22:26 -07:00
Christiane (Tina) Heiligers
70a9164790
[Usage Collection] Improves Collector fetch API (#79595)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2020-10-13 09:55:22 -07:00
Tiago Costa
e5d8d49164
chore(NA): assures a single version for the same dependency across the entire project (#78825)
* chore(NA): script to check for multiple version of same dependency

* chore(NA): remove multiple versions for the same dependency

* chore(NA): hook single_version_dependencies script into the CI

* chore(NA): remove grunt from the CI hook integration

* chore(NA): update kbn pm dist

* chore(NA): fix typechecking

* chore(NA): update code to run under last extract-zip version

* fix(NA): multiple versions of the same type dependency

* move validation to bootstrap (#13)

Co-authored-by: spalger <spalger@users.noreply.github.com>

* chore(NA): todo to remove logic to validate single version deps once we move into a single package.json

* chore(NA): remove verify dependency versions jenkins task

* chore(NA): update kbn pm dist file

* chore(NA): remove last mention to verify_dependency_versions.sh fom tasks.groovy

Co-authored-by: Spencer <email@spalger.com>
Co-authored-by: spalger <spalger@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-10-02 00:46:00 +01:00
Tyler Smalley
7211f78ce1
Bumps Jest related packages (#78720)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
2020-10-01 14:38:51 -07:00
Alejandro Fernández Haro
66866d0af1
[Usage Collection] [schema] reporting + add MappedType support (#78591) 2020-09-29 19:00:09 +01:00
Tim Sullivan
aa9131f641
[Reporting] Add Refresh parameter to Delete query (#78516)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-29 09:10:33 -07:00
Tim Sullivan
38f517ae9f
[Reporting] TS changes to reference an interface instead of class as the logger object (#78359)
* [Reporting] TS changes to reference an interface instead of class, making functions more shareable

* rename the interface

* less flexible interface
2020-09-24 08:54:34 -07:00
Matthew Kime
533309dc2c
Remove [key: string]: any; from IIndexPattern (#77968)
* Remove [key: string]: any; from IIndexPattern
2020-09-22 18:03:22 -05:00
Tim Sullivan
a537f9af50
[Reporting] Clean Up TypeScript Definitions (#76566)
* [Reporting] Simplify Export Type Definitions, use defaults for generics, refactor

* ReportApiJSON interface for common

* rename JobSummary to JobStatusBucket for clarity

* revert unneeded create mock changes

* clean up the diff

* revert changes to worker.js

* rewrite comment

* rename type to jobtype in JobStatusBucket

* allow type inference

* JobSummarySet

* remove odd comment

* Reflect that browser timezone may be undefined in the BaseParams

* comment about optional browserTimezone

* revert unecessary es archive change

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-22 12:33:59 -07:00
Tim Sullivan
b7cc6d3f2f
[Reporting/PDF] Switch layout to no border (#78036) 2020-09-22 10:34:25 -07:00
Tim Sullivan
6908fe7619
[Reporting] Use spaceId from request in export generation (#76998)
* [Reporting] Use spaceId from request in export generation

* remove todo that has been done

* whitespace

* use post params api in test

* add logging to core

* Update x-pack/plugins/reporting/server/export_types/printable_pdf/lib/get_custom_logo.ts

Co-authored-by: Joel Griffith <joel@joelgriffith.net>

* more logging

* fix interdependence and remove Promise.all

* getAbsoluteUrl have only 1 way to provide basePath

* --wip-- [skip ci]

* log apipath

* deleteAllReports at the end

* tests pass locally

* set config in the tests

* re-add skips of flaky tests

* test using csv:quoteValues

Co-authored-by: Joel Griffith <joel@joelgriffith.net>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-18 13:08:15 -07:00
Pierre Gayvallet
3759063e81
remove legacy ES plugin (#77703)
* remove legacy ES plug

* fix types

* delete some `legacy/core_plugins` references

* fix type
2020-09-18 09:30:13 +02:00
Tim Sullivan
d22c47d47b
[Reporting/Config] allow string representations of duration settings (#74202)
* [Reporting/Config] use better schema methods

* add createMockConfig

* update documentation

* fix observable.test

* add docs links to common options page

* make the schema match the docs

* wording edits per feedback

* self edits

* todo comment

* fix tests

* feedback change 1

* schema utils

* fix goof

* use objects for the defaults when available

* fix pollInterval

* fix snapshots

* Update report_listing.tsx

* call new ByteSizeValue on server side only

* revert xpack.reporting.poll

* fix ts

* fix snapshot

* use correct input for duration

* revert reorganize imports

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-17 12:04:01 -07:00
Matthias Wilhelm
0dc0f1f34c
[Discover] Migrate discover.html Angular template to React (#75784)
Co-authored-by: Andrea Del Rio <delrio.andre@gmail.com>
2020-09-17 07:51:31 +02:00
Vadim Dalecky
ea56a32d51
Neutral-naming in reporting plugin (#77371)
* refactor: 💡 remove "blacklist" reference in reporting plugin

* refactor: 💡 remove "whitelist" in reporting plugin

* fix: 🐛 correctly import function after refactor

* refactor: 💡 use "blocked" instead of "denied" terminology
2020-09-14 22:08:04 +02:00
Larry Gregory
2e34eb239f
Hide management sections based on cluster/index privileges (#67791)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-14 09:30:47 -04:00
Joel Griffith
9edb8d9ae2
Reporting/diagnostics (#74314)
* WIP: Adding in new reporting diag tool

* WIP: chrome-binary test + log capturing/error handling

* More wip on diagnostic tool

* More work adding in diagnose routes

* Alter link in description + minor rename of chrome => browser

* Wiring UI to API + some polish on UI flow

* WIP: Add in screenshot diag route

* Adding in screenshot diag route, hooking up client to it

* Add missing lib check + memory check

* Working screenshot test + config check for RAM

* Small test helper consolidation + screenshot diag test

* Delete old i18n translations

* PR feedback, browser tests, rename, re-organize import statements and lite fixes

* Lite rename for consistency

* Remove old validate check i18n

* Add config check

* i18n all the things!

* Docs on diagnostics tool

* Fixes, better readability, spelling and more for diagnostic tool

* Translate a few error messages

* Rename of test => start_logs for clarity. Move to observables

* Gathering logs even during process exit or crash

* Adds a test case for the browser exiting during the diag check

* Tap into browser logs for checking output

* Rename asciidoc diag id

* Remove duplicate shared object message

* Add better comment as to why we merge events + wait for a period of time

* Cloning logger for mirroring browser stderr to kibana output

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2020-09-09 16:11:23 -07:00
Joel Griffith
fef21ab373
Adds back in custom images for reporting + tests (#76810) 2020-09-04 13:16:15 -07:00