-
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
[Uptime] Details page map handle geo information missing #54483
[Uptime] Details page map handle geo information missing #54483
Conversation
…details-left-side-title
Pinging @elastic/uptime (Team:uptime) |
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.
A few recommendations we should consider.
isOpen={isPopoverOpen} | ||
closePopover={togglePopover} | ||
> | ||
<EuiText style={{ width: '300px' }}> |
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.
I think we can improve the formatting/messaging here a bit. This isn't perfect, but something along these lines:
<EuiText style={{ width: '300px' }}>
<FormattedMessage
id="xpack.uptime.locationMap.locations.missing.message"
defaultMessage="Important geo location configuration is missing. You can use the {test} field
to create distinctive geographic regions for your uptime checks."
values={{ test: <EuiCode>observer.geo.??</EuiCode> }}
/>
</EuiText>
<EuiSpacer size="xs" />
<EuiText style={{ width: '300px' }}>
<FormattedMessage
id="xpack.uptime.locationMap.locations.missing.message1"
defaultMessage="Get more information in
our documentation."
/>
</EuiText>
<EuiSpacer size="xs" />
<LocationLink />
WDYT?
if (monitorLocations?.locations) { | ||
monitorLocations.locations.forEach((item: any) => { | ||
if (item.summary.down === 0) { |
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.
We should add some tests for this functionality, it's pretty nested.
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.
i have added tests.
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.
…-geo-information-missing
💚 Build SucceededHistory
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.
LGTM
* update API * update query * hide layer control and added loc tags * update test * remove unused comment * update API * remove capitalization * style fix * update types * added location status number on details page * useref instead of createRef * update interface * update import * removed redundant file * fix header for empty data * refactor for most recent check * remove redundant code * remone unused translation * update status bar * update styling * update snaps * added API tests * fix types * fixing integration tests and a typo * remove unused translations * update tests * fixed PR feedback * update feedback * update messaging * update snap * added timestamp in front of tags * update missing * update locs * update geo info missing * use formatted message * update snaps * updated types * update test * fix test * update tests * update more skipped tests * update test * update warning message Co-authored-by: Elastic Machine <[email protected]>
…4827) * update API * update query * hide layer control and added loc tags * update test * remove unused comment * update API * remove capitalization * style fix * update types * added location status number on details page * useref instead of createRef * update interface * update import * removed redundant file * fix header for empty data * refactor for most recent check * remove redundant code * remone unused translation * update status bar * update styling * update snaps * added API tests * fix types * fixing integration tests and a typo * remove unused translations * update tests * fixed PR feedback * update feedback * update messaging * update snap * added timestamp in front of tags * update missing * update locs * update geo info missing * use formatted message * update snaps * updated types * update test * fix test * update tests * update more skipped tests * update test * update warning message Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
* update API * update query * hide layer control and added loc tags * update test * remove unused comment * update API * remove capitalization * style fix * update types * added location status number on details page * useref instead of createRef * update interface * update import * removed redundant file * fix header for empty data * refactor for most recent check * remove redundant code * remone unused translation * update status bar * update styling * update snaps * added API tests * fix types * fixing integration tests and a typo * remove unused translations * update tests * fixed PR feedback * update feedback * update messaging * update snap * added timestamp in front of tags * update missing * update locs * update geo info missing * use formatted message * update snaps * updated types * update test * fix test * update tests * update more skipped tests * update test * update warning message Co-authored-by: Elastic Machine <[email protected]>
Summary
Fix : #54466
Handle use case where geo information is missing and show popover controlled by button over map.
Checklist
For maintainers