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

Do not display a scary message if summary is empty #508

Merged
merged 4 commits into from
Dec 11, 2024
Merged

Conversation

ecooper
Copy link
Contributor

@ecooper ecooper commented Dec 11, 2024

Problem

If you use --summary or --performanceHints, you'll get a scary message "No summary available." when it's empty. It sounds like something broke or that's what the API returned.

Solution

Instead, display nothing and make sure the help text outlines this behavior for both flags.

Result

Summary available
Screenshot 2024-12-11 at 9 21 13 AM

No summary available
Screenshot 2024-12-11 at 9 21 21 AM

Testing

A functional test proves formatSummary in the query command.

@ecooper ecooper requested a review from a team as a code owner December 11, 2024 17:24
@ecooper ecooper merged commit a520215 into v3 Dec 11, 2024
4 checks passed
@ecooper ecooper deleted the v3-empty-summary branch December 11, 2024 18:07
@cleve-fauna cleve-fauna mentioned this pull request Dec 13, 2024
@mwilde345 mwilde345 mentioned this pull request Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants