Closed
Bug 1721239
Opened 4 years ago
Closed 4 years ago
Put newtab story collections behind a feature flag
Categories
(Firefox :: Pocket, enhancement, P1)
Firefox
Pocket
Tracking
()
RESOLVED
FIXED
92 Branch
| Tracking | Status | |
|---|---|---|
| firefox92 | --- | fixed |
People
(Reporter: thecount, Assigned: thecount)
Details
Attachments
(1 file, 1 obsolete file)
We make requests to the backend for Pocket newtab story collections, and let the data returned be the deciding factor to showing a collection or not.
It'll be optimal to not add the collection position to the request unless we're going to use it, so we're going to put this feature behind a feature flag. Then the client can read that flag and decide to include collections or not.
| Assignee | ||
Updated•4 years ago
|
Assignee: nobody → sdowne
| Assignee | ||
Comment 1•4 years ago
|
||
| Assignee | ||
Updated•4 years ago
|
Summary: Put newtab story collections behind a pref → Put newtab story collections behind a feature flag
| Assignee | ||
Comment 2•4 years ago
|
||
Updated•4 years ago
|
Attachment #9232047 -
Attachment is obsolete: true
Updated•4 years ago
|
Priority: -- → P1
| Assignee | ||
Comment 3•4 years ago
|
||
Steps to test:
the default state should be no collections. So after a cache reset, the new collections pref should still be false.
- Set browser.newtabpage.activity-stream.asrouter.devtoolsEnabled to true
- Open about:home#devtools-ds
- Click "Refresh Cache"
Expected: The pref for browser.newtabpage.activity-stream.discoverystream.sponsored-collections.enabled should still be false.
This also touched a bit of the layout rendering code, so doing a little regression tests for basic layout and spoc position is a good idea.
Spoc positions
- Verify newtab spoc positions match what is in the pref browser.newtabpage.activity-stream.discoverystream.spoc-positions
- Change browser.newtabpage.activity-stream.discoverystream.spoc-positions to something like 0,1,2,3
- Reload newtab
Expected: ensure spocs are in positions 1, 2, 3, 4.
Basic layout
- Ensure newtab is 7 rows of content.
- flip browser.newtabpage.activity-stream.discoverystream.hardcoded-basic-layout to true
- Reload newtab.
Expected: Should be 1 row of stories now.
Pushed by sdowne@getpocket.com:
https://hg.mozilla.org/integration/autoland/rev/c55a9d422f8d
Pocket newtab server signal to toggle pocket collections. r=gvn
Comment 5•4 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 4 years ago
status-firefox92:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•