fleetdm / fleet

Open-source platform for IT, security, and infrastructure teams. (Linux, macOS, Chrome, Windows, cloud, data center)
https://fleetdm.com
Other
2.63k stars 374 forks source link

[QA Wolf] Hosts count on vulnerabilities table does not match count on filtered hosts table #19760

Open qawolf-fleet opened 1 week ago

qawolf-fleet commented 1 week ago

Fleet version: Fleet 0.0.0-SNAPSHOT-4413a20 • Go go1.19.4 (or newer)

Operating system: Linux 64-bit

Web browser: Google Chrome Version 109.0.5414.119 64-bit


🧑‍💻  Expected behavior

💥  Actual behavior

🐛 on Premium

NOTE: Reopened bug upon request as this bug is intermittent (https://qawolfhq.slack.com/archives/C0480CNGT45/p1715291620623659?thread_ts=1715203560.216649&cid=C0480CNGT45)

Steps to reproduce:

  1. Login to Fleet as the Global Admin
  2. Navigate to the Software page
  3. Click the Vulnerabilities tab
  4. Hover over a random vulnerability row, keep note of the hosts count on this row
  5. Click the "View all Hosts" button that appears
  6. On the next page we will now see all hosts filtered by the vulnerability we've selected Expected: The hosts count to match the hosts count we saw from the vulnerability table Actual: The hosts count is off, usually by 1

Video: https://www.loom.com/share/62a95a7f2141460b81b274f8b4f468e7 (https://www.loom.com/share/62a95a7f2141460b81b274f8b4f468e7)

Bug report: https://app.qawolf.com/fleet/bug-reports/a5aec7cb-052d-404c-b9c5-a359fe14bfec

Affected workflows: • View & Sort Software Vulnerabilities tab - Premium - https://app.qawolf.com/fleet/workflows/clve5te4a088y120gy4dexzyb • View All Hosts - Vulnerabilities - https://app.qawolf.com/fleet/workflows/clvrger99015lmfdew9cdxm97

If you are aware of this bug you can set the priority to low which will prevent it from causing a run failure.

More info

🛠️ To fix

sharon-fdm commented 1 week ago

@xpkoala I believe this is a duplicate. Can you find the similar bug ticket?

sharon-fdm commented 1 week ago

@rachaelshaw we agreed this is not a bug but need some behaviour that will explain the mismatch. For example: a comment that tells the results are updated X minutes ago.