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

[Cases] Revert preconfigured connectors support for Cases #130372

Merged
merged 6 commits into from
Apr 27, 2022

Conversation

cnasikas
Copy link
Member

@cnasikas cnasikas commented Apr 15, 2022

Summary

Reverts back the support of preconfigured connectors for Cases that was mistakenly removed in 7.17.0

Testing

Add a supported preconfigured connector to your kibana.dev.yml. It should be able to be used in Cases.

xpack.actions.preconfigured:
  preconfigured-servicenow:
    name: preconfigured-servicenow
    actionTypeId: .servicenow
    config:
      apiUrl: https://example/com
    secrets:
      username: <username>
      password: <password>

Video of the fix

preconf.mp4

Release notes

Revert back the support of preconfigured connectors for Cases that was mistakenly removed in 7.17.0

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@cnasikas cnasikas added Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) Feature:Cases Cases feature auto-backport Deprecated - use backport:version if exact versions are needed v8.2.0 v8.0.2 v8.3.0 v8.1.3 v7.17.4 labels Apr 15, 2022
@cnasikas cnasikas self-assigned this Apr 15, 2022
@cnasikas cnasikas changed the title [] Revert preconfigured connectors support for Cases [Cases] Revert preconfigured connectors support for Cases Apr 15, 2022
@cnasikas cnasikas force-pushed the pre_conf_connectors branch 2 times, most recently from 32e016a to af7db42 Compare April 19, 2022 07:38
@cnasikas cnasikas marked this pull request as ready for review April 19, 2022 09:02
@cnasikas cnasikas requested a review from a team as a code owner April 19, 2022 09:02
@elasticmachine
Copy link
Contributor

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

@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops-cases (Feature:Cases)

Copy link
Contributor

@academo academo left a comment

Choose a reason for hiding this comment

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

I don't clearly understand this part of the code but I can confirm I tested this locally and it works.

@cnasikas cnasikas force-pushed the pre_conf_connectors branch from 60b9174 to f117f09 Compare April 19, 2022 14:22
Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

Tested locally and LGTM. Just a couple of minor edits suggested for the tests.

@cnasikas cnasikas enabled auto-merge (squash) April 27, 2022 08:43
@cnasikas cnasikas merged commit 12fdfd6 into elastic:main Apr 27, 2022
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
cases 288.5KB 288.7KB +194.0B

History

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

cc @cnasikas

@cnasikas cnasikas deleted the pre_conf_connectors branch April 27, 2022 09:13
cnasikas added a commit to cnasikas/kibana that referenced this pull request Apr 27, 2022
…0372)

* Fix bug with deprecated connectors

* Add integration test

* Improve integration tests

* Fix grammar

* Fix CI

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit 12fdfd6)

# Conflicts:
#	x-pack/plugins/cases/server/client/configure/client.test.ts
cnasikas added a commit to cnasikas/kibana that referenced this pull request Apr 27, 2022
…0372)

* Fix bug with deprecated connectors

* Add integration test

* Improve integration tests

* Fix grammar

* Fix CI

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit 12fdfd6)

# Conflicts:
#	x-pack/plugins/cases/server/client/configure/client.test.ts
cnasikas added a commit to cnasikas/kibana that referenced this pull request Apr 27, 2022
…0372)

* Fix bug with deprecated connectors

* Add integration test

* Improve integration tests

* Fix grammar

* Fix CI

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit 12fdfd6)

# Conflicts:
#	x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.test.tsx
#	x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.test.tsx
#	x-pack/plugins/cases/server/client/configure/client.test.ts
#	x-pack/test/case_api_integration/security_and_spaces/tests/basic/configure/create_connector.ts
#	x-pack/test/case_api_integration/security_and_spaces/tests/basic/configure/get_connectors.ts
#	x-pack/test/case_api_integration/security_and_spaces/tests/common/configure/get_connectors.ts
#	x-pack/test/cases_api_integration/common/config.ts
#	x-pack/test/cases_api_integration/common/lib/utils.ts
#	x-pack/test/cases_api_integration/security_and_spaces/tests/common/configure/get_connectors.ts
#	x-pack/test/cases_api_integration/security_and_spaces/tests/common/index.ts
#	x-pack/test/cases_api_integration/security_and_spaces/tests/trial/configure/get_connectors.ts
#	x-pack/test/cases_api_integration/spaces_only/tests/trial/configure/get_connectors.ts
cnasikas added a commit that referenced this pull request Apr 27, 2022
) (#131043)

* [Cases] Revert preconfigured connectors support for Cases (#130372)

* Fix bug with deprecated connectors

* Add integration test

* Improve integration tests

* Fix grammar

* Fix CI

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit 12fdfd6)

# Conflicts:
#	x-pack/plugins/cases/server/client/configure/client.test.ts

* Fix linting
cnasikas added a commit that referenced this pull request Apr 27, 2022
…0372) (#131046)

* [Cases] Revert preconfigured connectors support for Cases (#130372)

* Fix bug with deprecated connectors

* Add integration test

* Improve integration tests

* Fix grammar

* Fix CI

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit 12fdfd6)

# Conflicts:
#	x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_itsm_case_fields.test.tsx
#	x-pack/plugins/cases/public/components/connectors/servicenow/servicenow_sir_case_fields.test.tsx
#	x-pack/plugins/cases/server/client/configure/client.test.ts
#	x-pack/test/case_api_integration/security_and_spaces/tests/basic/configure/create_connector.ts
#	x-pack/test/case_api_integration/security_and_spaces/tests/basic/configure/get_connectors.ts
#	x-pack/test/case_api_integration/security_and_spaces/tests/common/configure/get_connectors.ts
#	x-pack/test/cases_api_integration/common/config.ts
#	x-pack/test/cases_api_integration/common/lib/utils.ts
#	x-pack/test/cases_api_integration/security_and_spaces/tests/common/configure/get_connectors.ts
#	x-pack/test/cases_api_integration/security_and_spaces/tests/common/index.ts
#	x-pack/test/cases_api_integration/security_and_spaces/tests/trial/configure/get_connectors.ts
#	x-pack/test/cases_api_integration/spaces_only/tests/trial/configure/get_connectors.ts

* Fix tests

Co-authored-by: Kibana Machine <[email protected]>
@cnasikas cnasikas added backport:skip This commit does not require backporting and removed backport:skip This commit does not require backporting v8.0.2 labels Apr 28, 2022
cnasikas added a commit that referenced this pull request May 4, 2022
kertal pushed a commit to kertal/kibana that referenced this pull request May 24, 2022
…0372)

* Fix bug with deprecated connectors

* Add integration test

* Improve integration tests

* Fix grammar

* Fix CI

Co-authored-by: Kibana Machine <[email protected]>
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 Feature:Cases Cases feature release_note:fix Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.17.4 v8.1.4 v8.2.1 v8.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants