[Uptime] Fix full reloads while navigating to alert/ml#73796
[Uptime] Fix full reloads while navigating to alert/ml#73796shahzad31 merged 16 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/uptime (Team:uptime) |
justinkambic
left a comment
There was a problem hiding this comment.
Functionality looks good and the testing pattern is great. I did ask that we add more aria-label props to the nav components, as we should've already had those.
x-pack/plugins/uptime/public/components/common/react_router_helpers/eui_link.test.tsx
Show resolved
Hide resolved
x-pack/plugins/uptime/public/components/monitor/ml/manage_ml_job.tsx
Outdated
Show resolved
Hide resolved
| to: string; | ||
| } | ||
|
|
||
| export const EuiReactRouterHelper: React.FC<IEuiReactRouterProps> = ({ to, children }) => { |
There was a problem hiding this comment.
I'm questioning this naming convention. These components aren't actually part of EUI so I am concerned that overloading their prefix could be a source of confusion.
Perhaps we can refer to them as Uptime{Helper} or Um{Helper} components.
There was a problem hiding this comment.
i have removed the Eui prefix, i think it makes more sense now.
There was a problem hiding this comment.
I might not have explained what I meant clearly enough - I was talking in general, we should probably avoid prefixing anything that we ourselves maintain with the Eui prefix because it overloads the meaning.
If someone sees a reference to EuiReactRouterHelper in our code they may try to find documentation that doesn't exist. Renaming it as you have below (like ReactRouterEuiHelper) might be a more effective solution. Does that seem like a good idea? cc @andrewvc
There was a problem hiding this comment.
ahh i agree, i renamed others but i missed this. let me do that.
There was a problem hiding this comment.
👍 ping me when it's ready for another look and we are otherwise in pretty good shape here I think
justinkambic
left a comment
There was a problem hiding this comment.
I found one small typo we should fix and then this LGTM.
x-pack/plugins/uptime/public/components/common/react_router_helpers/link_for_eui.tsx
Outdated
Show resolved
Hide resolved
|
@justinkambic i think this is good to go now. |
|
@elasticmachine merge upstream |
💚 Build SucceededBuild metrics@kbn/optimizer bundle module count
async chunks size
History
To update your PR or re-run it, just comment with: |
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
…-task * master: (42 commits) Allow any hostname for chromium proxy bypass (elastic#74693) [ML] ML on Kibana Management: Add ability to pass a group ID filter to job management page (elastic#74533) [Metrics UI] Fix No Data preview pluralization (elastic#74399) [Bug][Security_Solution][Telemetry] Capitalize S in macOS (elastic#74688) Remove karma tests from legacy maps (elastic#74668) [Ingest Manager] stop creating events-* index pattern and placeholder index (elastic#74683) [Enterprise Search] Update the browser/document title on plugin navigation (elastic#74392) [visualizations] Add i18n translation for 'No results found' (elastic#74619) [maps] convert vector style properties to TS (elastic#74553) bump geckodriver binary to 0.27 (elastic#74638) fix: update apm agents to catch abort requests (elastic#74658) [Security Solution] Resolver children pagination (elastic#74603) add memoryStatus to df analytics page and analytics table in management (elastic#74570) [Ingest Manager] Allow prerelease in package version (elastic#74452) [App Arch]: remove legacy karma tests (elastic#74599) [i18n] revert reverted changes (elastic#74633) [Lens] Clear out all attribute properties before updating (elastic#74483) [Uptime] Fix full reloads while navigating to alert/ml (elastic#73796) Index pattern field class refactor (elastic#73180) [ML] Functional tests - stabilize DFA job type check (elastic#74631) ...
Summary
Fixes: #73795
Uses
RedirectAppLinkscomponent in uptime to avoid full reload while navigating to other apps.Testing
This changes no functionality, everything should work as expected.