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 code shared with alerting api-integration plugins into a package #148846

Merged

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Jan 12, 2023

We're working on converting all plugins into packages, which turns almost all code in the repository into a package except for things like the test and x-pack/test directories. The problem we ran into is that the alerting api-integration test plugins are being migrated to packages but they are currently consuming a handful of helpers from the parent ../lib directory. This doesn't work, as packages can only import other packages and the ../lib directory isn't in a package, it's just free-floating x-pack/test code. To fix this I've moved the necessary components out of common/lib and into packages/helpers which is importable via @kbn/alerting-api-integration-helpers and updated all the uses to access this new package.

@spalger spalger force-pushed the implement/alerting-api-integration-helpers branch from 231b990 to 46681f7 Compare January 12, 2023 19:52
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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

@spalger spalger added Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) release_note:skip Skip the PR/issue when compiling release notes labels Jan 12, 2023
@spalger spalger marked this pull request as ready for review January 12, 2023 21:15
@spalger spalger requested a review from a team as a code owner January 12, 2023 21:15
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

Copy link
Member

@pmuellr pmuellr left a comment

Choose a reason for hiding this comment

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

LGTM

@spalger spalger merged commit 1880e8b into elastic:main Jan 12, 2023
@spalger spalger deleted the implement/alerting-api-integration-helpers branch January 12, 2023 21:32
@kibanamachine kibanamachine added v8.7.0 backport:skip This commit does not require backporting labels Jan 12, 2023
jennypavlova pushed a commit to jennypavlova/kibana that referenced this pull request Jan 13, 2023
…elastic#148846)

We're working on converting all plugins into packages, which turns
almost all code in the repository into a package except for things like
the `test` and `x-pack/test` directories. The problem we ran into is
that the alerting api-integration test plugins are being migrated to
packages but they are currently consuming a handful of helpers from the
parent `../lib` directory. This doesn't work, as packages can only
import other packages and the `../lib` directory isn't in a package,
it's just free-floating `x-pack/test` code. To fix this I've moved the
necessary components out of `common/lib` and into `packages/helpers`
which is importable via `@kbn/alerting-api-integration-helpers` and
updated all the uses to access this new package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants