UI – Render Query Report 'No Results' state when discard_data is enabled, regardless of contents/presence of results; cleanup tooltip content (#15777)

## Addresses #15778 and part of #15608 

## Checklist for submitter
- [x] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
This commit is contained in:
Jacob Shandling 2023-12-21 09:23:34 -08:00 committed by GitHub
parent d49255dfdb
commit cce6875787
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View file

@ -342,7 +342,7 @@ const QueryDetailsPage = ({
}
// Empty state with varying messages explaining why there's no results
if (emptyCache) {
if (emptyCache || lastEditedQueryDiscardData) {
return (
<NoResults
queryInterval={storedQuery?.interval}

View file

@ -75,7 +75,6 @@ const NoResults = ({
The following setting prevents saving this query&apos;s results
in Fleet:
</div>
\
<div>
&nbsp; Query reports are globally disabled in organization
settings.
@ -90,7 +89,6 @@ const NoResults = ({
The following setting prevents saving this query&apos;s results
in Fleet:
</div>
\
<div>
&nbsp; This query has <b>Discard data</b> enabled.
</div>
@ -104,7 +102,6 @@ const NoResults = ({
The following setting prevents saving this query&apos;s results
in Fleet:
</div>
\
<div>
&nbsp; The logging setting for this query is not{" "}
<b>Snapshot</b>.