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

[ML] DF Analytics / Transforms: job row actions menu throws invalid DOM nesting warning #63455

Closed
pheyos opened this issue Apr 14, 2020 · 3 comments · Fixed by #74499
Closed
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Data Frame Analytics ML data frame analytics features :ml v7.10.0

Comments

@pheyos
Copy link
Member

pheyos commented Apr 14, 2020

Opening the job row actions menu for a data frame analytics job throws a warning in the browser console for each button in the menu about invalid DOM nesting:
image

@pheyos pheyos added :ml Feature:Data Frame Analytics ML data frame analytics features labels Apr 14, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@darnautov
Copy link
Contributor

Transforms actions have the same issue. It requires significant refactoring to get a proper structure for the context menu, hence we made a decision to postpone it till 7.9.

@peteharverson peteharverson assigned walterra and unassigned darnautov Jul 1, 2020
@walterra walterra added the bug Fixes for quality problems that affect the customer experience label Jul 1, 2020
@walterra walterra changed the title [ML] DF Analytics - job row actions menu throws invalid DOM nesting warning [ML] DF Analytics / Transforms: job row actions menu throws invalid DOM nesting warning Jul 1, 2020
@walterra
Copy link
Contributor

walterra commented Jul 2, 2020

There is now a corresponding issue in EUI, it's likely there will be an improvement on EUI's side so solve this: elastic/eui#3679

walterra added a commit that referenced this issue Jul 8, 2020
…ount after button click. (#70555)

Related to #70383 and #63455.

Refactors the action buttons of the transform and data frame analytics jobs list:

Previously custom actions included state and JSX for e.g. confirmation modals. Problem with that: If the actions list popover hides, the modal would unmount too. Since EUI's behaviour will change with the release/merge of #70383, we needed a refactor that solves that issue right now.

With this PR, state management for UI behaviour that follows after a button click like the confirmation modals was moved to a custom hook which is part of the outer level of the buttons itself. The modal now also gets mounted on the outer level. This way we won't loose the modals state and DOM rendering when the action button hides.

Note that this PR doesn't fix the nested buttons issue (#63455) yet. For that we need EUI issue #70383 to be in Kibana which will arrive with EUI v26.3.0 via #70243. So there will be one follow up to that which will focus on getting rid of the nested button structure.
walterra added a commit to walterra/kibana that referenced this issue Jul 8, 2020
…ount after button click. (elastic#70555)

Related to elastic#70383 and elastic#63455.

Refactors the action buttons of the transform and data frame analytics jobs list:

Previously custom actions included state and JSX for e.g. confirmation modals. Problem with that: If the actions list popover hides, the modal would unmount too. Since EUI's behaviour will change with the release/merge of elastic#70383, we needed a refactor that solves that issue right now.

With this PR, state management for UI behaviour that follows after a button click like the confirmation modals was moved to a custom hook which is part of the outer level of the buttons itself. The modal now also gets mounted on the outer level. This way we won't loose the modals state and DOM rendering when the action button hides.

Note that this PR doesn't fix the nested buttons issue (elastic#63455) yet. For that we need EUI issue elastic#70383 to be in Kibana which will arrive with EUI v26.3.0 via elastic#70243. So there will be one follow up to that which will focus on getting rid of the nested button structure.
walterra added a commit that referenced this issue Jul 8, 2020
…ount after button click. (#70555) (#71050)

Related to #70383 and #63455.

Refactors the action buttons of the transform and data frame analytics jobs list:

Previously custom actions included state and JSX for e.g. confirmation modals. Problem with that: If the actions list popover hides, the modal would unmount too. Since EUI's behaviour will change with the release/merge of #70383, we needed a refactor that solves that issue right now.

With this PR, state management for UI behaviour that follows after a button click like the confirmation modals was moved to a custom hook which is part of the outer level of the buttons itself. The modal now also gets mounted on the outer level. This way we won't loose the modals state and DOM rendering when the action button hides.

Note that this PR doesn't fix the nested buttons issue (#63455) yet. For that we need EUI issue #70383 to be in Kibana which will arrive with EUI v26.3.0 via #70243. So there will be one follow up to that which will focus on getting rid of the nested button structure.

Co-authored-by: Elastic Machine <[email protected]>
@walterra walterra added v7.10.0 and removed v7.9.0 labels Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Data Frame Analytics ML data frame analytics features :ml v7.10.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants