-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
tables: update Windows codename column to be that of name #5887
Conversation
bf7b122
to
ed6a09b
Compare
I think you got bit by a flaky test:
|
@keeleysam @FritzX6 @directionless y'all mind taking a look considering this is relevant to the issue discussing this problem? Curious of folks' thoughts on removing the list whole sale. |
This looks like a completely reasonable change to me, and good to not maintain that list in the source code any longer. |
@@ -142,7 +31,10 @@ QueryData genOSVersion(QueryContext& context) { | |||
} | |||
|
|||
wmiResults[0].GetString("InstallDate", r["install_date"]); | |||
wmiResults[0].GetString("Caption", r["name"]); | |||
std::string osName{""}; |
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.
I think the {""}
is superfluous.
@muffins, one nitpick, but do you mind rebasing onto master too? |
ed6a09b
to
97c9e44
Compare
Summary: This updates the logic for lookups on Windows codenames to correctly return '6' as the minimum version, which corresponds with Windows 7. Test Plan: Ran the code on Windows 7, will update with results: ``` ```
97c9e44
to
a8f54d7
Compare
I agree maintaining the mapping here seems hard. I don't know what the underlying intent is, but I'm generally onboard here. I also observe that removing the leading
|
@directionless good call, I'm happy to hear what @FritzX6 has to say. I'm going to close this out, but am happy to do follow-up PRs if folks think it's necessary. Overall I feel this might be worth just calling |
Works for me! |
Summary:
This addresses Issue #4080 by removing the
code_name
column on Windows whole-sale, and replacing it's contents with that of thename
column. See the discussion in #4080 for additional details.Test Plan:
Ran on Windows 10:
Ran on Windows 7: