-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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] Ping List Disable expand row if no body present #54898
Conversation
Pinging @elastic/uptime (Team:uptime) |
@andrewvc should we be displaying body, if there is no content in the body but bytes size is available? |
@shahzad31 we should display the byte count, and probably a message saying :
|
@katrin-freihofner mind chiming in ^^^ with any thoughts on this approach? |
Yes, I think this is a great idea. Let's give the user all the information we have and explain why there is no body. What do you think about adding a |
@andrewvc have added that |
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.
Functionality is great in manual testing and code looks good aside from the comments I left.
Can you also rename this PR and update the description to reflect what work was actually done?
x-pack/legacy/plugins/uptime/public/components/functional/ping_list/doc_link_body.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/uptime/public/components/functional/ping_list/ping_list.tsx
Show resolved
Hide resolved
<BodyExcerpt content={body.content || ''} /> | ||
</Fragment> | ||
<EuiSpacer size={'s'} /> | ||
{body.content ? <BodyExcerpt content={body.content || ''} /> : <DocLinkForBody />} |
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.
AFAICT we don't have a test case for this. The snapshot was updated, but there's no case where I see this rendered.
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 the case for this in test file.
@andrewvc Thanks for the review, i have taken care of all the feedback. |
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
@elasticmachine merge upstream |
user doesn't have permission to update head repository |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* update ping list * update snap * updated body * update snaps * fix i18n * updated translation * updated tests
Summary
Fix: elastic/uptime#125
This PR will disable expand row arrow if no content is available for expand row to display.
Also modified to display error in EuiCallout Error state and body in default EuiCallout
For Error State:
For Body State:
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers