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
iansltx
left a comment
There was a problem hiding this comment.
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?
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
iansltx
left a comment
There was a problem hiding this comment.
Code LGTM. Good to merge once CI passes.
The software titles unique key was changed to include bundle identifier in #25794.
The software titles unique key was changed to include bundle identifier in #25794. This caused an issue when running gitops - installing a software with the same bundle identifier but different names. #26226 - [x] Input data is properly validated, `SELECT *` is avoided, SQL injection is prevented (using placeholders for values in statements) - [x] Added/updated automated tests - [x] A detailed QA plan exists on the associated ticket (if it isn't there, work with the product group's QA engineer to add it) - [x] Manual QA for all new/changed functionality
The software titles unique key was changed to include bundle identifier in #25794. This caused an issue when running gitops - installing a software with the same bundle identifier but different names. #26226 - [x] Input data is properly validated, `SELECT *` is avoided, SQL injection is prevented (using placeholders for values in statements) - [x] Added/updated automated tests - [x] A detailed QA plan exists on the associated ticket (if it isn't there, work with the product group's QA engineer to add it) - [x] Manual QA for all new/changed functionality
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).