Closed Bug 936544 Opened 11 years ago Closed 11 years ago

[e.me][bug] Cloudapps do not get deduped in Collections

Categories

(Firefox OS Graveyard :: Gaia::Everything.me, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ranbena, Assigned: amirn)

References

Details

Attachments

(1 file)

Cloudapp results which are equivalent to installed apps get deduped in e.me search results but not in Collections.

STR:
1. Install Facebook app from Marketplace.
2. Open "social" Collection.

Expected:
The Facebook cloudapp doesn't appear in results

Actual:
The Facebook cloudapp does appear in results

Doing the same when searching "social" yields the expected behavior.
Assignee: nobody → amirn
Blocks: 1.3-e.me
Status: NEW → ASSIGNED
Attachment #829566 - Flags: review?(ran)
Didn't work too well in some cases. I pushed a new version. Try it out.
Flags: needinfo?(amirn)
updated PR, please review.
Flags: needinfo?(amirn)
Found one dedup bug in installedApps-appUrls:

STR:
1. Search for "facebook"
2. Long press the "facebook" cloud app and "save to Homescreen"

Expected:
Cloud app appears above and not below

Actual:
Cloud app appears in both places

Reason:
The style rule has whitespace in the data-url
<style id="installedApps-appUrls">
    .evme-apps ul:not(.installed) li[data-url="http://m.facebook.com   "]{display:none}
</style>
the whitespace originates from the server response (only for facebook).

added trim() when creating grid items and updated PR.
Comment on attachment 829566 [details] [review]
patch - redirect to github PR #13535

Tested it a million ways! Works great.
Attachment #829566 - Flags: review?(ran) → review+
Attachment #829566 - Flags: review?(crdlc)
Comment on attachment 829566 [details] [review]
patch - redirect to github PR #13535

Looks good to me, thanks
Attachment #829566 - Flags: review?(crdlc) → review+
landed
https://github.com/mozilla-b2g/gaia/commit/900a9a4a579cda9a792ef3a5e6d5a0ef47e1cd09
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
blocking-b2g: --- → 1.3?
Clearing nom - this is already part of 1.3, so this doesn't need to be triaged.
blocking-b2g: 1.3? → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: