[Context Menu] User dismiss changes rolls causing spocs based on probability appear and disappear
Categories
(Firefox :: New Tab Page, defect, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | verified |
People
(Reporter: pdahiya, Assigned: pdahiya)
References
Details
(Keywords: github-merged)
Attachments
(1 file)
With dismiss link menu support in pocket new tab, dismiss action causes our redux state to change by hiding blocked story. This triggers refresh of selectLayoutRender.js which houses logic of displaying spocs based off probability.
https://github.com/mozilla/activity-stream/blob/master/content-src/lib/selectLayoutRender.js#L23
This works now as no spoc roll is based on percentages.
https://github.com/mozilla/activity-stream/pull/4837#pullrequestreview-214090555
If the roll isn't always 100% (server changes in the future), this would have a bug where blocking a non spoc would cause existing spocs to appear and disappear. This will be similar to spoc appear and disappear experience on page refresh.
Assignee | ||
Comment 1•6 years ago
|
||
As suggested here https://github.com/mozilla/activity-stream/pull/4837#pullrequestreview-214090555, including Nick to review this issue.
Scott, please feel free to add/edit issue described here. Thanks!
Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 3•6 years ago
•
|
||
Steps to test:
- Set discoverystream.config pref as
{"api_key_pref":"extensions.pocket.oAuthConsumerKey","enabled":true,"show_spocs":true,"layout_endpoint":"https://gist.githubusercontent.com/punamdahiya/b4a0d9bb9dabac5e6248dd23ea5e09cf/raw/522fe988639b0ba890cf30bfcf6485f97566d592/feed-spocs.json"}
and discoverystream.endpoints pref as
https://getpocket.cdn.mozilla.net/,https://gist.githubusercontent.com/
-
Reset pref browser.newtabpage.activity-stream.discoverystream.spoc.impressions and browser.newtabpage.activity-stream.discoverystream.rec.impressions
-
If needed reset pref browser.newtabpage.blocked and restart browser to make dismissed stories come back
-
Card Grid component beside Hero component at the bottom of layout should have 3rd story (index 2) as sponsored content showing up with probability of 0.5.
-
In card grid component from step 4, click of dismiss link menu option in context menu on non-spoc stories should not cause disappear and reappear of 3rd story.
Updated•6 years ago
|
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
I have verified that this issue is no longer reproducible with the latest Firefox Nightly (68.0a1 Build ID - 20190404215521) installed, on Windows 10 x64, Arch Linux and Mac 10.13.3. Now, after following the steps from comment 3, the sponsored content card from step 3 remains displayed.
Updated•6 years ago
|
Description
•