Skip to content

[ui:karma] Add New Platform mocks for data plugin#42261

Merged
alexwizp merged 1 commit intoelastic:masterfrom
alexwizp:mock-new-platform
Jul 31, 2019
Merged

[ui:karma] Add New Platform mocks for data plugin#42261
alexwizp merged 1 commit intoelastic:masterfrom
alexwizp:mock-new-platform

Conversation

@alexwizp
Copy link
Contributor

@alexwizp alexwizp commented Jul 30, 2019

Dev docs

Summary

Exception during execution of HeadlessChrome tests based on karma. -> adding mocks for the data plugin

After migration some of our visualizations to the new platform we faced with an issue in these types of tests. Karma tests before starting execute all registered 'hacks' methods. It happens from the following place: legacy\ui\public\test_harness\test_harness.js
image

Shimming our legacy visualization to the new platform require to use the 'hacks' function for initializing. It means that all nested dependencies should be mocked like e.g. data plugin.

Related PR:
#42261
#41760

@alexwizp alexwizp requested review from lukeelmers and streamich July 30, 2019 14:56
@alexwizp alexwizp added release_note:skip Skip the PR/issue when compiling release notes Feature:NP Migration labels Jul 30, 2019
@alexwizp alexwizp self-assigned this Jul 30, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch

@alexwizp alexwizp force-pushed the mock-new-platform branch from bbbb8ec to 36e6234 Compare July 30, 2019 15:22
@alexwizp alexwizp changed the title Add New Platform mocks for data plugin [ui:karma] Add New Platform mocks for data plugin Jul 30, 2019
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@alexwizp
Copy link
Contributor Author

retest

@elastic elastic deleted a comment from elasticmachine Jul 30, 2019
@elastic elastic deleted a comment from elasticmachine Jul 30, 2019
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@lukeelmers lukeelmers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM. I've opened #42302 to add details about this to the migration guide; please take a look and comment there if I'm missing anything. :)

@alexwizp alexwizp merged commit 1d0b72c into elastic:master Jul 31, 2019
alexwizp added a commit to alexwizp/kibana that referenced this pull request Jul 31, 2019
jloleysens added a commit to jloleysens/kibana that referenced this pull request Jul 31, 2019
…-or-edit-existing-rollup-job

* 'master' of github.com:elastic/kibana: (114 commits)
  [ML] Fixing empty index pattern list (elastic#42299)
  [Markdown] Shim new platform - cleanup plugin (elastic#41760)
  [Code] Enable hierarchicalDocumentSymbolSupport for java language server (elastic#42233)
  Add New Platform mocks for data plugin (elastic#42261)
  Http server route handler implementation (elastic#41894)
  [SR] Allow custom index pattern to be used instead of selectable list when choosing indices to restore (elastic#41534)
  [Code] distributed Code abstraction (elastic#41374)
  [SIEM] Sets page titles to the current page you are on  (elastic#42157)
  Saved Objects export API stable type order (elastic#42310)
  cancellation of interpreter execution (elastic#40238)
  [SIEM] Fixes a crash when Machine Learning influencers is an undefined value (elastic#42198)
  Changed the job to work with a dedicated index (elastic#42297)
  FTR: fix testSubjects.missingOrFail (elastic#42290)
  Increase retry timeout to prevent flaky tests (elastic#42291)
  Spaces - make space a hidden saved object type (elastic#41688)
  Allow applications to register feature privileges which are excluded from the base privileges (elastic#41300)
  Disable flaky log column reorder test (elastic#42285)
  Fixing add element in element reducer (elastic#42276)
  Fix infinite loop (elastic#42228)
  [Maps][File upload] Remove geojson deep clone logic, handle on maps side (elastic#41835)
  ...
@alexwizp alexwizp deleted the mock-new-platform branch January 4, 2020 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:NP Migration release_note:skip Skip the PR/issue when compiling release notes v7.4.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants