-
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 Pipeline] Allow to provide a redirect path and a tab in component template edit UI #134910
[Ingest Pipeline] Allow to provide a redirect path and a tab in component template edit UI #134910
Conversation
…iting a component template
Pinging @elastic/platform-deployment-management (Team:Deployment Management) |
e1c2540
to
c9b29e9
Compare
@elasticmachine merge upstream |
@elasticmachine merge upstream |
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.
Hi @nchaulet! Nice work. I left a few code comments, mostly around naming.
I tested the query params on edit and everything worked as expected.
This should work from the view component template to /app/management/data/index_management/component_templates/.alerts-ecs-mappings?redirect_path=/app/fleet
I'm not sure what the expected behavior here is. Can you explain?
Also, if the query param is set, I wonder if it should dynamically update when the user changes steps. For example, if mappings
is set, but then I got to the next step, "Aliases", the mappings
query param remains in the URL. WDYT?
x-pack/plugins/index_management/public/application/mount_management_section.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/index_management/public/application/hooks/redirect_path.test.tsx
Outdated
Show resolved
Hide resolved
...nent_templates/component_template_wizard/component_template_form/component_template_form.tsx
Outdated
Show resolved
Hide resolved
...nent_templates/component_template_wizard/component_template_edit/component_template_edit.tsx
Outdated
Show resolved
Hide resolved
...templates/component_template_wizard/component_template_edit/component_template_edit.test.tsx
Outdated
Show resolved
Hide resolved
@alisonelizabeth Thanks for the review to be able to update the step on step change I had to do a change to the FormWizzard component let me know if it make sense |
@elasticmachine merge upstream |
Jest test failure due to #135440 |
@elasticmachine merge upstream |
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.
Latest LGTM. Thanks for addressing my feedback! Found one minor typo in the test, but won't block on that.
I'm also not sure about this comment. If there's anything else I need to test related to this, please let me know and I can take another look if you'd like.
This should work from the view component template to /app/management/data/index_management/component_templates/.alerts-ecs-mappings?redirect_path=/app/fleet
...templates/component_template_wizard/component_template_edit/component_template_edit.test.tsx
Outdated
Show resolved
Hide resolved
…component_templates/component_template_wizard/component_template_edit/component_template_edit.test.tsx Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
@alisonelizabeth for
What I was meaning here if you visit that page and click cancel you will be redirected to |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @nchaulet |
…nent template edit UI (elastic#134910)
Description
Related to #133740
Similar to #134776
We need to be able to link the component template edit UI from Fleet on a specific tab and to be redirect to Fleet when the user save.
For this I introduced two query params
?tab=
and?redirect_path
to select a specific tab and to redirect on save/close.How to test
While running Kibana without basepath
Go to
/app/management/data/index_management/edit_component_template/.alerts-observability.logs.alerts-mappings?tab=mappings&redirect_path=/app/fleet
You should go directly to the mappings tab and on save be redirected to Fleet
This should work from the view component template to
/app/management/data/index_management/component_templates/.alerts-ecs-mappings?redirect_path=/app/fleet