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

Stubs out UI for the ML Inference Pipeline panel #140456

Merged
merged 18 commits into from Sep 13, 2022

Conversation

daveyholler
Copy link
Contributor

@daveyholler daveyholler commented Sep 9, 2022

Summary

This PR gets the ML Inference Pipeline panel UI stubbed out. It also makes some modifications to the data_panel component in Enterprise Search:

  1. Allows for a document link to be added to the footer of the panel as a React.ReactNode
  2. Shuffles the header EuiFlexItems around so that the subtitle can go fullwidth

image

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@daveyholler daveyholler added release_note:feature Makes this part of the condensed release notes v8.5.0 labels Sep 9, 2022
@daveyholler daveyholler requested a review from a team as a code owner September 9, 2022 22:54
@daveyholler daveyholler marked this pull request as draft September 9, 2022 22:57
Copy link
Member

@sphilipse sphilipse left a comment

Choose a reason for hiding this comment

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

This looks pretty good to me. Want to convert this to a regular PR so we can get it merged after tests are complete?

* 2.0.
*/

export interface IInferencePipeline {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove the first I for purposes of consistency? It doesn't look like we use that convention anywhere else in the enterprise search Kibana code.

Copy link
Contributor

Choose a reason for hiding this comment

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

But let's merge this first :)

@daveyholler daveyholler marked this pull request as ready for review September 12, 2022 20:41
@daveyholler
Copy link
Contributor Author

@brianmcgue @sphilipse - the test file here currently only covers the individual inference pipeline cards. I know that this is blocking other work, so if we wanna get this merged and tackle test coverage in a follow up PR, I'm not personally opposed.

Either way, this has been marked as ready for review. In the meantime, I'll try to get more code coverage in the test files.

Comment on lines 8 to 13
export interface IInferencePipeline {
pipelineName: string;
trainedModelName: string;
isDeployed: boolean;
modelTypes: string[];
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think for consistency's sake, we want to remove the first I from the interface name. Then modelTypes seems to be a combination of model_type and tags fields from the Get trained models API. Not sure if you want both or a specific one.

export interface InferencePipeline {
  isDeployed: boolean;
  modelType: string;
  pipelineName: string;
  tags: string[];
  trainedModelName: string;
}

daveyholler and others added 5 commits September 12, 2022 15:57
…r/kibana into ent-search-ml-pipelines-panel

# Conflicts:
#	x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/inference_pipeline_card.test.tsx
@daveyholler daveyholler enabled auto-merge (squash) September 13, 2022 17:34
@daveyholler daveyholler merged commit 8854421 into elastic:main Sep 13, 2022
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
enterpriseSearch 1650 1651 +1

Async chunks

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

id before after diff
enterpriseSearch 1.6MB 1.6MB +3.9KB

History

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

@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Sep 13, 2022
@KOTungseth KOTungseth added the :ml label Oct 11, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

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 :ml release_note:feature Makes this part of the condensed release notes v8.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants