-
Notifications
You must be signed in to change notification settings - Fork 474
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
Improve MySQL queries that aggregate MDM profile statuses for Apple hosts #22252
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #22252 +/- ##
==========================================
+ Coverage 65.20% 65.23% +0.02%
==========================================
Files 1495 1495
Lines 117110 117187 +77
Branches 3512 3512
==========================================
+ Hits 76365 76449 +84
+ Misses 33627 33619 -8
- Partials 7118 7119 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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 but would love another set of eyes on this.
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.
the query looks scary but it's very nice to read and way better than the old one. LGTM 🎉
21bf043
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, seems like an unrelated test failed but I'd be nice to see all tests pass before approving.
could you either remove the new TODO or add parenthesis to the if
clause? I think it'll confuse people if we leave it there.
Areas for future improvement:
|
Failing tests are known to be broken/flaky and are not related to this PR. |
Issue #22122
host_mdm_apple_profiles
andhost_mdm_apple_declarations
tables (where tables scale based on number of hosts multiplied by number of profiles)See areas for future improvement below.
Checklist for submitter
If some of the following don't apply, delete the relevant line.
changes/
,orbit/changes/
oree/fleetd-chrome/changes
.