-
Notifications
You must be signed in to change notification settings - Fork 473
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
Added software_titles unique index idx_unique_sw_titles
#25794
Conversation
What happens if I have "GoLand 2.app" and "GoLand.app" both with the same bundle ID? Those should resolve to the same software title. Can chat through in tmw afternoon's meeting. Also not 100% on collations, since we have #25353. Likely worth bringing this proposal to tomorrow's backend sync to get another set of eyes on this. |
I can write an explicit test for "GoLand 2.app" and "GoLand.app" both with the same bundle ID. But this doesn't seem like it worked before or after this change. |
73ddb20
to
02dd421
Compare
02dd421
to
44ce244
Compare
44ce244
to
d63d96d
Compare
d63d96d
to
f6b9adb
Compare
f6b9adb
to
a38da6b
Compare
a38da6b
to
b813545
Compare
b813545
to
b794db2
Compare
b794db2
to
c56628c
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #25794 +/- ##
=======================================
Coverage 63.67% 63.67%
=======================================
Files 1628 1629 +1
Lines 156151 156183 +32
Branches 4051 4051
=======================================
+ Hits 99425 99447 +22
- Misses 48890 48897 +7
- Partials 7836 7839 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
c56628c
to
175088a
Compare
idx_sw_titles
to include bundle identifier when present
idx_sw_titles
to include bundle identifier when presentidx_sw_titles
to use bundle identifier when present
175088a
to
b0457a1
Compare
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.
Maybe out of scope but another thing I noticed when troubleshooting for a customer related to this is a bunch of software
entries with title_id
values that were set but that didn't actually reference software_titles
. I'm guessing the fkey was left off for performance reasons, but for sanity we should probably clean those up in ReconcileSoftwareTitles
before the "clean up orphaned software titles" step, unless I'm missing something.
@mna @gillespi314 y'all touched the orphaned cleanup code most recently; is there a downside to removing invalid title_id
refs where I'm mentioning?
server/datastore/mysql/migrations/tables/20250124194347_UpdateSoftwareTitlesUniqueIndex.go
Outdated
Show resolved
Hide resolved
server/datastore/mysql/migrations/tables/20250124194347_UpdateSoftwareTitlesUniqueIndex.go
Outdated
Show resolved
Hide resolved
server/datastore/mysql/migrations/tables/20250124194347_UpdateSoftwareTitlesUniqueIndex.go
Outdated
Show resolved
Hide resolved
server/datastore/mysql/migrations/tables/20250124194347_UpdateSoftwareTitlesUniqueIndex_test.go
Show resolved
Hide resolved
b0457a1
to
05b41a5
Compare
idx_sw_titles
to use bundle identifier when presentidx_unique_sw_titles
05b41a5
to
581bfe9
Compare
Yes, I think that was the reason.
By cleanup do you mean update the |
@gillespi314 yep, that's that I mean. Sounds like we're good to do that. |
This allows software with different names but the same bundle identifier to be grouped under the same title. It also allows for software with the same name but different bundle identifiers to be under two separate titles.
581bfe9
to
68db063
Compare
a9015aa
to
68db063
Compare
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.
Code LGTM. Good to merge once CI passes.
For #25235
This allows software with different names but the same bundle identifier
to be grouped under the same title. It also allows for software with the
same name but different bundle identifiers to be under two separate
titles.
changes/
,orbit/changes/
oree/fleetd-chrome/changes
.See Changes files for more information.
COLLATE utf8mb4_unicode_ci
).