Closed
Bug 1083592
Opened 11 years ago
Closed 10 years ago
Make device type code more DRY in `compatibility_filtering.js`
Categories
(Marketplace Graveyard :: Code Quality, defect, P5)
Tracking
(Not tracked)
VERIFIED
FIXED
2015-01-27
People
(Reporter: cvan, Assigned: mat)
Details
Bug 969244 added device filtering.
I could be misunderstanding things, but it seems that https://github.com/mozilla/fireplace/blob/3157104/src/media/js/compatibility_filtering.js#L17-L38 duplicates a bunch of logic that's already written in `capabilities.js`:
https://github.com/mozilla/fireplace/blob/master/src/media/js/commonplace/capabilities.js#L53-L64
| Assignee | ||
Comment 1•11 years ago
|
||
I totally missed the code in capabilities.js when I wrote compatibility_filtering.js. It's fairly similar yes, except that the one in compatibility_filtering.js does not set the device name to 'desktop' by default, in order not to filter on desktop by default.
Updated•10 years ago
|
Assignee: nobody → mpillard
Severity: normal → trivial
Priority: -- → P5
| Assignee | ||
Updated•10 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•10 years ago
|
||
https://github.com/mozilla/marketplace-core-modules/commit/ed17eda724dd4edec8ccb9862a39eb78d6481f9d refactors the device_* methods (and introduces new ones) in capabilities.js to help with that. Now I need to use the new methods in fireplace's compatibility_filtering.js (preserving the "desktop" exception)
| Assignee | ||
Comment 3•10 years ago
|
||
Fixed in https://github.com/mozilla/fireplace/commit/e512af12b4a658dba63ca73ebe8ff3fb97adfd0a
QA:
- Please make sure the compatibility filtering dropdown in search results, category page and new/popular pages is still working properly
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2015-01-27
Comment 4•10 years ago
|
||
Verified as fixed for all places where we have device filtering.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•