Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix latestUpdateTime not getting initialized for live list manager #4270

Merged
merged 1 commit into from Aug 1, 2016

Conversation

erwinmombay
Copy link
Member

No description provided.

@erwinmombay erwinmombay changed the title [WIP] eliminate dev().assert() and dev().fine() calls from src/log.js module [WIP] fix latestUpdateTime not getting initialized for live list manager Jul 29, 2016
@erwinmombay erwinmombay changed the title [WIP] fix latestUpdateTime not getting initialized for live list manager fix latestUpdateTime not getting initialized for live list manager Jul 29, 2016
@erwinmombay
Copy link
Member Author

@lannka PTAL. fixes a bug in live list where the first GET request does not contain the "amp_latest_update_time" parameter on its initial request

@erwinmombay erwinmombay force-pushed the fix-live-list-bug branch 3 times, most recently from 0afb6e4 to 8a8647a Compare July 29, 2016 18:31
@@ -137,6 +140,17 @@ describe('LiveListManager', () => {
});
});

it('should get the amp_latest_update_time on doc ready', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if it's feasible, but it would be better to test where this private value is used than where it is filled.
In this case, a more robust test would be to check whether the number is finally in the fetch request URL.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

@lannka
Copy link
Contributor

lannka commented Jul 29, 2016

LGTM with one suggestion on the test.

@erwinmombay
Copy link
Member Author

@lannka this fixes the live-blog sample in your PR. I need to fix the live-list sample next

@lannka
Copy link
Contributor

lannka commented Jul 29, 2016

LGTM

@lannka lannka added LGTM and removed NEEDS REVIEW labels Jul 29, 2016
@erwinmombay erwinmombay merged commit c7243ae into ampproject:master Aug 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants