but 1520262 - v1 personalization for regular feeds.#4911
but 1520262 - v1 personalization for regular feeds.#4911ScottDowne merged 10 commits intomozilla:masterfrom
Conversation
|
Steps to test:
http://softpedia.com
|
| }; | ||
|
|
||
| export class ToggleSpocButton extends React.PureComponent { | ||
| export class ToggleStoryButton extends React.PureComponent { |
There was a problem hiding this comment.
This is now generic for stories of all types, recs and spocs. So needed a name change.
| return isMatch; | ||
| } | ||
|
|
||
| renderFeedData(url) { |
There was a problem hiding this comment.
We are now showing feed data, along with spoc data, to test that the score changes.
| this.componentFeedFetched = true; | ||
| feed = { | ||
| lastUpdated: Date.now(), | ||
| data: this.rotate(feedResponse), |
There was a problem hiding this comment.
Rotate was unpacking the response, making changes to data, and repacking it.
I changed it so rotate takes the items, rotates them, and returns them. I then repackage it after calling it.
this was needed because I'm needing to call scoreItems now for both spocs and recs, but I only want to do rotate on recs, and rotate wasn't clumsy, I would have needed to make score items also unpack and repack, causing a bunch of pointless packing of the object.
This also meant I needed to make some changes to the way spocs call scoreItems.
I'm seeing Complete object for 36451: |
|
I updated the steps, mind trying again? it's super fickle. |
|
With the updated repro steps I get: |
gvn
left a comment
There was a problem hiding this comment.
Code LGTM, so if you're satisfied with the object then I'd say R+!
No description provided.