Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ResponseOps][Connectors] Fix bug with deprecated icon in the connect…
…ors table (elastic#184342) ## Summary If the connector's table shows a deprecated connector it crashes. This PR fixes this issue by removing any usage of the deprecated access to the EUI theme variables. ## Screenshots <img width="541" alt="Screenshot 2024-05-28 at 1 34 48 PM" src="https://github.com/elastic/kibana/assets/7871006/a2aad5e3-c49c-476a-b7bf-37ec57ed03b9"> <img width="456" alt="Screenshot 2024-05-28 at 1 33 13 PM" src="https://github.com/elastic/kibana/assets/7871006/b2953215-1744-481b-8fbf-70a5df26fc30"> <img width="743" alt="Screenshot 2024-05-28 at 1 34 11 PM" src="https://github.com/elastic/kibana/assets/7871006/66b1e86f-f618-4a68-bdc0-7c6e1727a4b7"> ## Testing 1. Create a deprecated SN connector. 2. Verify that the page that list all connectors (Stack Management -> Connectors) does not crash You can create a deprecated SN connector like: ``` curl --location 'https://localhost:5601/api/actions/connector' \ --header 'kbn-xsrf: true' \ --header 'Content-Type: application/json' \ --header 'Authorization: Basic <basic auth token>' \ --data-raw '{ "name": "SN", "connector_type_id": ".servicenow", "config": { "apiUrl": "https://<whatever>.service-now.com/", "usesTableApi": true <-- This makes the connector deprecated }, "secrets": { "username": "admin", "password": "<whatever>" } }' ``` ### For maintainers - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- Loading branch information