Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move StubIndexPattern to data plugin and convert to TS. #78518

Merged
merged 2 commits into from
Sep 28, 2020

Conversation

lukeelmers
Copy link
Member

@lukeelmers lukeelmers commented Sep 24, 2020

Part of #76355

src/test_utils previously had a dependency on the data plugin (via StubIndexPattern). This PR relocates StubIndexPattern to the data plugin to remove this dependency.

I've also converted it to TypeScript and created a getStubIndexPattern factory function to facilitate easier typing.

Ideally we would get rid of StubIndexPattern altogether, but this would require some work on the data plugin's jest mocks to provide a more detailed mock index pattern. I've created an issue to address this here, but for the time being am simply moving the existing stub over to get rid of the dependency.

cc @restrry

@lukeelmers lukeelmers added review chore Feature:Data Views Data Views code and UI - index patterns before 8.0 v8.0.0 Team:AppArch release_note:skip Skip the PR/issue when compiling release notes v7.10.0 labels Sep 24, 2020
@lukeelmers lukeelmers self-assigned this Sep 24, 2020
@lukeelmers lukeelmers marked this pull request as ready for review September 24, 2020 23:23
@lukeelmers lukeelmers requested a review from a team September 24, 2020 23:23
@lukeelmers lukeelmers requested a review from a team as a code owner September 24, 2020 23:23
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@lukeelmers lukeelmers mentioned this pull request Sep 24, 2020
8 tasks
@lukeelmers
Copy link
Member Author

@elasticmachine merge upstream

Copy link
Member

@kertal kertal 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, KibanaApp Codeowner review, just tests were adapted, didn't checkout

@kertal
Copy link
Member

kertal commented Sep 28, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@lukeelmers lukeelmers merged commit 786a2d0 into elastic:master Sep 28, 2020
@lukeelmers lukeelmers deleted the fix/move-stub-index-pattern branch September 28, 2020 14:14
lukeelmers added a commit to lukeelmers/kibana that referenced this pull request Sep 28, 2020
# Conflicts:
#	src/test_utils/public/stub_index_pattern.js
gmmorris added a commit to gmmorris/kibana that referenced this pull request Sep 28, 2020
* master:
  Fix APM lodash imports (elastic#78438)
  Add deprecated message to tile_map and region_map visualizations. (elastic#77683)
  Fix Lens smokescreen flaky tests (elastic#78566)
  updated discover with alt text (elastic#77660)
  Fix types (elastic#78619)
  Update tutorial-visualizing.asciidoc (elastic#76977)
  Update tutorial-discovering.asciidoc (elastic#76976)
  [Search] Error notification alignment (elastic#77788)
  Update tutorial-define-index.asciidoc (elastic#76975)
  [Lens] Fieldless operations (elastic#78080)
  [Usage Collection] [schema] Explicit "array" definition (elastic#78141)
  Update tutorial-define-index.asciidoc (elastic#76973)
  Fix --no-basepath references in doc (elastic#78570)
  Move StubIndexPattern to data plugin and convert to TS. (elastic#78518)
  Index pattern class - remove unused methods (elastic#78538)
  [Security Solution] [ALL] Eliminates all console.error and console.warn from Jest output (elastic#78523)
  [Actions] avoids setting a default dedupKey on PagerDuty (elastic#77773)
  First stab at developer-focussed saved objects docs (elastic#71430)
  remove unnecessary config validations (elastic#78527)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Feature:Data Views Data Views code and UI - index patterns before 8.0 release_note:skip Skip the PR/issue when compiling release notes review v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants