kibana/x-pack/plugins/uptime/server
Justin Kambic 0c8d5e8f89
[Synthetics] Support synthetics dedupe strategy in Uptime app (#101678)
* Add new runtime types for parsing on client/server.

* Add more runtime types.

* Remove dead code.

* Mark parameter as unused.

* Improve typing for failed journey request function.

* Add new API functions, improve typing in a few others.

* Modify API calls to work with new screenshot_ref data.

* Fix untested refactor error.

* Add required fields to runtime type.

* Update typing in failed steps component.

* Adapt client to work with old screenshots as well as new screenshot_ref.

* Refactor composite code to reusable hook.

* Implement screenshot blocks endpoint.

* Define runtime types for full-size screenshots.

* Delete dedicated screenshot and ref queries.

* Optimize screenshot endpoint by combining queries.

* Handle parsing error.

* Clean up screenshot/ref typings.

* Remove dead types. DRY a type out.

* Simplify types.

* Improve typing in step screenshot components.

* Prefer PNG to JPG for canvas composite op.

* Simplify and clean up some code.

* Remove reliance on `Ping` type, clean up types.

* Add a comment.

* Add a comment.

* Fix typing for `FailedStep` component.

* Standardize loading spinner sizes.

* Add comments to composite code.

* Remove unnecessary optional chaining.

* Reformat error string.

* Remove unneeded key from request return object.

* Add a comment to a return object explaining very large cache value.

* Make type annotation more accurate.

* Resolve some type and test errors.

* Clean up remaining type errors.

* Move type definitions to simplify imports.

* Simplify `PingTimestamp` interface.

* Refactor failing unit test to use RTL and actually test things.

* Add tests for new helper functions.

* Add a comment.

* Test `PingTimestamp` for screenshot ref data.

* Test `StepImageCaption` for ref data.

* Improve typing for step list column definitions.

* Harden a test.

* Extract code to avoid repeated declarations.

* Create centralized mock for `useCompositeImage`.

* Add test for ref to `StepScreenshotDisplay`.

* Add tests for `getJourneyDetails`.

* Extract search results wrapper to helper lib.

* Add tests for `getJourneyFailedSteps`.

* Add support for aggs to result helper wrapper.

* Write tests for `getJourneyScreenshot` and simplify type checking.

* Write tests for `getJourneyScreenshotBlocks`.

* Simplify prop types for `FailedStep`.

* Remove unused type.

* Fix regression in step navigating for new style screenshots.

* Implement PR feedback.

* Implement PR feedback.

* Implement PR feedback.

* Reduce limit of screenshot block queries from 10k to 1k.

* Remove redundant field selection from ES query.

* Implement PR feedback.

* Fix regression that caused "Last successful step" to not show an image.

* Delete unused props from `Ping` runtime type.

* More precise naming.

* Naming improvements. Add `useCallback` to prevent callback re-declaration.

* Prefer explicit props to `{...spread}` syntax.

* Remove redundant type checking.

* Delete obsolete unit tests.

* Fix a regression.

* Add effect to `useEffect`.
2021-06-29 08:08:52 -04:00
..
lib [Synthetics] Support synthetics dedupe strategy in Uptime app (#101678) 2021-06-29 08:08:52 -04:00
rest_api [Synthetics] Support synthetics dedupe strategy in Uptime app (#101678) 2021-06-29 08:08:52 -04:00
index.ts
kibana.index.ts
plugin.ts
types.ts
uptime_server.ts