Advanced Search: Selecting Multiple Products with the same Version shows duplicate Versions in UI
Categories
(Bugzilla :: Query/Bug List, defect)
Tracking
()
People
(Reporter: cfolts, Assigned: Logan)
References
(Blocks 1 open bug)
Details
Attachments
(4 files, 1 obsolete file)
Comment 1•15 years ago
|
||
| Assignee | ||
Updated•12 days ago
|
| Assignee | ||
Comment 2•12 days ago
|
||
This is reproducible in the current upstream code. js/productform.js::merge_arrays performs a two-pointer merge that assumes both input lists are already sorted case-insensitively. Product versions and target milestones can instead follow configured ordering, so a shared value at different positions can be emitted twice.
Bug 460693 tracks the BMO occurrence and now depends on this bug. A fix and regression test are being prepared to explicitly sort and de-duplicate the merged values.
Comment 3•12 days ago
|
||
Comment 4•12 days ago
|
||
Original bug (not a regression). merge_arrays() in js/productform.js — which does a two-pointer merge assuming both input lists are already sorted case-insensitively — dates essentially unchanged to this commit from 2004: cb2d1a0a9.
Affected branches: Present on 5.0.4, 5.2, harmony, and master — js/productform.js and Bugzilla::Product::versions()/milestones() are logically identical (only perltidy/comment differences) on all four.
Where it should be fixed: This is a genuine bug fix, not a new feature or large refactor, so per the commit rules it qualifies on all branches:
- harmony — fix here first (primary development branch): bugzilla/harmony
- 5.2 — allowed as a bug fix; no schema change or large refactor required.
- 5.0.4 — allowed as a bug fix (data-correctness issue, not merely cosmetic).
- master — same bug-fix rules as
5.0.4; deprecated but no reason to exclude a pure bug fix.
Expect the harmony patch to need manual reformatting (spacing/tidy conventions differ) when back-ported.
Updated•12 days ago
|
Comment 5•10 days ago
|
||
Comment 6•10 days ago
|
||
Comment 7•10 days ago
|
||
Comment on attachment 9632309 [details] [review]
[bugzilla/bugzilla] [4.4] Bug 681635: De-duplicate values in Advanced Search (#246)
The 4.4 branch is no longer supported. See the list in comment 4 for which branches this should be fixed on.
Comment 8•10 days ago
|
||
Comment 9•10 days ago
|
||
Comment 10•7 days ago
|
||
Comment on attachment 9632336 [details] [review]
[bugzilla/bugzilla] [master] Bug 681635: De-duplicate values in Advanced Search (#248)
Landed on master (5.3) :
https://github.com/bugzilla/bugzilla/commit/365d007426d8348e4f400270d666ce82b6ff55aa
Comment 11•7 days ago
|
||
Comment on attachment 9632308 [details] [review]
[bugzilla/bugzilla] [5.0.4] Bug 681635: De-duplicate values in Advanced Search (#245)
Landed on 5.0.4:
https://github.com/bugzilla/bugzilla/commit/5849118389e2d9fe9855c700b9e90ee9f23c59fe
Comment 12•7 days ago
|
||
Comment on attachment 9631444 [details] [review]
[bugzilla/bugzilla] [5.2] Bug 681635: De-duplicate values in Advanced Search (#244)
Landed on 5.2:
https://github.com/bugzilla/bugzilla/commit/0f87c06df8d6a7ef744f8ac00849d892101e3916
Comment 13•7 days ago
|
||
Comment on attachment 9632337 [details] [review]
[bugzilla/harmony] Bug 681635: De-duplicate values in Advanced Search (#184)
Landed on harmony:
https://github.com/bugzilla/harmony/commit/ffbdc927717b6a36cac699ac982433fd26286fb8
Comment 14•7 days ago
|
||
And that's everything. Thanks for the patches!
Description
•