-
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
[Infra UI] Add URL State to Waffle Map #23649
[Infra UI] Add URL State to Waffle Map #23649
Conversation
💔 Build Failed |
jenkins test this |
💔 Build Failed |
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.
Almost works 😉
We only need to use the bound action creators changeGroupBy
and changeNodeType
from the function argument (as for changeMetrics
) in
kibana/x-pack/plugins/infra/public/containers/waffle/with_waffle_options.tsx
Lines 77 to 78 in 344f895
changeGroupBy(initialUrlState.groupBy || initialWaffleOptionsState.groupBy); | |
changeNodeType(initialUrlState.nodeType || initialWaffleOptionsState.nodeType); |
and remove the imports in
import { changeGroupBy, changeNodeType } from '../../store/local/waffle_options/actions'; |
💔 Build Failed |
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.
LGTM, the test failure seems to be unrelated
This PR fixes the name
WithWaffleOptionsUrlState
and adds it to the home page so the URL will serialize the state.