-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Ingest pipelines] Add ability to stop pipeline simulation #78183
[Ingest pipelines] Add ability to stop pipeline simulation #78183
Conversation
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @alisonelizabeth ! I think this is a nice UX polish! I looked at the code and everything looks good to me, thanks for adding tests too!
I looked at the current UI and I have some suggestions about what I think would be cool, but not necessarily work that needs to be done in this PR.
To my mind the "edit documents" and "reset" buttons represent actions that both are scoped to documents, so it makes sense they live together as they currently do. An improvement on this, I think, is moving them out of the document selector dropdown -- so that the selector is just a selector (second image).
The controls for selecting and managing documents can be grouped visually (per image 1, not showing view output as I think this is distinct from managing documents). These controls could live in a bottom bar because they are not "primary" level actions to editing the pipeline but relevant to the process of testing.
I think it would be great to hear from @mdefazio or others on this too.
@@ -49,6 +49,12 @@ export const TestPipelineActions: FunctionComponent = () => { | |||
}); | |||
}; | |||
|
|||
const stopPipelineSimulation = () => { | |||
setCurrentTestPipelineData({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit; I think a better name for setCurrentTestPipelineData
would be testPipelineDataDispatch
(if we want to disambiguate) otherwise dispatch
.
One thought I had on this was instead of 'Reset', this is a toggle button that says 'Autorun test' and then 'Test paused'. (Probably better text here). Then reseting the documents can be done in the document flyout only. |
@mdefazio Thanks for the suggestions! Would you mind taking another look when you get a chance? Based on your feedback on #77939, I've added a "Clear all" button to the flyout and removed the "Reset" button originally added in this PR. The "paused" toggle is an interesting idea. I think it needs to be fleshed out a little more. For example, if it was "paused", would the documents in the dropdown list be disabled? Also, would you still be able to click the "View output" button? I think adding the "Clear all" button resolves the original concern about being stuck in testing mode and is a good step forward. I think I'd prefer to hold off on the toggle for now, unless you feel strongly about it. Latest screenshots: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks good. I have one tiny nit: Can we update the Edit documents button so it uses the EuiPopoverFooter
(and add the fullWidth
prop? Might simplify things a bit but also want to make sure the button spans the width of the popover.
The toggle isn't really necessary anymore IMO.
Thanks @mdefazio! I was not aware of the |
💚 Build SucceededMetrics [docs]@kbn/optimizer bundle module count
async chunks size
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for making that edit.
…-to-timeline * 'master' of github.com:elastic/kibana: (22 commits) update apm index pattern (elastic#78732) 78024: move transform out of dataset (elastic#78216) [QA][Code Coverage] Upload the coverage static site before ingestion (elastic#78695) [Discover] Make _source field not clickable (elastic#78698) [Fleet] Rename Ingest Manager => Fleet, Fleet => Agents in the UI (elastic#78685) [APM] Review feedback from distribution + transaction metrics (elastic#78752) [Ingest pipelines] Add ability to stop pipeline simulation (elastic#78183) [CSM] Fix core vital legend background (elastic#78273) [Usage Collection] [schema] Support spreads + `canvas` definition (elastic#78481) fix lodash imports (elastic#78456) [Maps] Add layer type preview icons (elastic#78650) [APM] Use transaction metrics for distribution charts (elastic#78484) [Uptime] Ml anomaly alert edit (elastic#76909) [ML] Limit exposing shared static code through ml/public/index.ts. (elastic#77745) making expression debug info serializable (elastic#78727) fix lodahs imports in app-arch code (elastic#78582) Make Field a React.lazy export (elastic#78483) [Security Solution] Improves detections tests (elastic#77295) [TSVB] Different field format on different series is ignored (elastic#78138) RFC: Improve saved object migrations (elastic#66056) ...
This PR adds the ability to stop/reset testing a pipeline.
This addresses feedback received here: #74964 (review).
How to test
Screenshots