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

Fleet UI: Add reset results warning for modifying platform or min osquery version #17663

Merged

Conversation

RachelElysia
Copy link
Member

@RachelElysia RachelElysia commented Mar 15, 2024

Issue

FE of #17018

Description

  • Warning modal for users when updating the platform or minimum osquery version of a query

Recording

https://www.loom.com/share/698e75a3d70f460799ed3c7458906cdc?sid=2133e4ae-04de-47ac-ad7c-77e78dbf5e06

Checklist for submitter

If some of the following don't apply, delete the relevant line.

  • Changes file on feature branch
  • Manual QA for all new/changed functionality

@RachelElysia
Copy link
Member Author

Wait on solution decided for #17662 before continuing

Copy link

codecov bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.59%. Comparing base (c450088) to head (496f33e).
Report is 89 commits behind head on 17018-reset-query-report.

Additional details and impacted files
@@                    Coverage Diff                    @@
##           17018-reset-query-report   #17663   +/-   ##
=========================================================
  Coverage                     65.59%   65.59%           
=========================================================
  Files                          1191     1191           
  Lines                        107547   107564   +17     
  Branches                       2566     2582   +16     
=========================================================
+ Hits                          70543    70557   +14     
- Misses                        31646    31649    +3     
  Partials                       5358     5358           
Flag Coverage Δ
frontend 52.00% <100.00%> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@RachelElysia RachelElysia changed the base branch from main to 17018-reset-query-report March 19, 2024 13:36
@@ -638,12 +638,32 @@ const EditQueryForm = ({
"differential_ignore_removals",
].includes(lastEditedQueryLoggingType);

// Note: The backend is not resetting the query reports with equivalent platform strings
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the best way I could think of to test equivalence, especially if we ever add new platforms. @jacobshandling would love your input on the naming of this equivalence checker.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -638,12 +638,32 @@ const EditQueryForm = ({
"differential_ignore_removals",
].includes(lastEditedQueryLoggingType);

// Note: The backend is not resetting the query reports with equivalent platform strings
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@RachelElysia RachelElysia merged commit 481ec94 into 17018-reset-query-report Mar 22, 2024
14 checks passed
@RachelElysia RachelElysia deleted the reset-report-platform-osquery-version branch March 22, 2024 19:18
lucasmrod pushed a commit that referenced this pull request Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants