Connectors list: hide inference connector if inference endpoint does not exist#217585
Connectors list: hide inference connector if inference endpoint does not exist#217585alvarezmelissa87 wants to merge 3 commits intoelastic:mainfrom
Conversation
|
Pinging @elastic/ml-ui (:ml) |
| if ( | ||
| connector.actionTypeId !== '.inference' || | ||
| (connector.actionTypeId === '.inference' && | ||
| // @ts-ignore property 'config' does not exist on type ActionConnector |
There was a problem hiding this comment.
Due to the time sensitive nature of this change, I did not update types as I wanted to keep code churn to a minimum. I can create a follow up to get rid of this ignore.
There was a problem hiding this comment.
I think it will be better to filter on the server side instead of the client making http calls for each .inference connector.
There was a problem hiding this comment.
it 100% should be on the server, otherwise there's too many places where this can be used and it's A) a lot of work to find/update them all, B) we risk missing something
There was a problem hiding this comment.
Also I agree with Yuliia, making this a blocking HTTP call per connector is not the right choice (at all).
|
@elasticmachine merge upstream |
💔 Build Failed
Failed CI StepsHistory
|
|
Created a duplicate inference endpoint check function to avoid circular dependency errors. This is a temporary fix due to time constraints of trying to get this in to fix the release blocker |
|
Closing this in lieu of #217641 |
Summary
This PR adds a check to see if the inference endpoint exists before displaying inference connectors in the Connectors list.
This means that the default Elastic LLM connector (which is currently shown and just doesn't work) will now be hidden for users it is not enabled for.
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:breakinglabel should be applied in these situations.release_note:*label is applied per the guidelinesIdentify risks
Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss.
Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging.