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

✨ [Story Video] Connect CacheUrl service to amp-video and load sources #33466

Merged
merged 55 commits into from
Apr 21, 2021

Conversation

mszylkowski
Copy link
Contributor

@mszylkowski mszylkowski commented Mar 24, 2021

Fetches the /mbv video sources from the CDN cache and populates the sources with the result.

Working DOM structure:
image

@lgtm-com
Copy link

lgtm-com bot commented Apr 12, 2021

This pull request introduces 1 alert when merging 678d3b3 into 66ad8b8 - view on LGTM.com

new alerts:

  • 1 for Invocation of non-function

@mszylkowski mszylkowski requested a review from gmajoulet April 19, 2021 19:46
Copy link
Contributor Author

@mszylkowski mszylkowski left a comment

Choose a reason for hiding this comment

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

@gmajoulet fixed the tests according to your comments. PTAL

Copy link
Contributor

@gmajoulet gmajoulet left a comment

Choose a reason for hiding this comment

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

Super high quality PR 🥇

Co-authored-by: Gabriel Majoulet <gmajoulet@google.com>
@mszylkowski mszylkowski merged commit efd8b56 into ampproject:main Apr 21, 2021
@mszylkowski mszylkowski deleted the ampvideo_cacheservice branch April 21, 2021 19:31
rochapablo pushed a commit to rochapablo/amphtml that referenced this pull request Aug 30, 2021
ampproject#33466)

* Added canonical to videos example

* Started video cache

* Use cdn url from url-impl

* Remove unnecessary | null

* Undo videos.html

* Remove console.log

* Using ternary operator for reduce

* Account for cached docs

* Update logic with toolbox

* Added service

* Undo amp-video

* Added cache url service

* Added owners

* Cache url to video

* Simplified cache example

* Updated title

* Changed name to amp-cache-url of folder

* Update readme

* Update comments

* Remove example

* Updated readme

* Added code

* Fixed tests

* Removed comment

* Added some more tests

* Fixed cdnurl

* Update names of docSupports

* Fix cacheUrl not replacing

* updated cacheDomain param name

* Check not cached doc to add cache sources

* improved implementation from comments

* added tests

* Added gregable file on examples

* Added warning

* Uppercase user error

* Updated opt in

* Fix response.json is promise

* Updated test

* Fixed toArray import

* Fixed visibilityState

* Use helper functions

* Added tests to amp-cache-url

* Update extensions/amp-cache-url/0.1/test/test-amp-cache-url.js

Co-authored-by: Ryan Cebulko <ryan@cebulko.com>

* Using extensionScriptInNode with win

* Updated tests to match comments

* Not export applySources

Co-authored-by: Gabriel Majoulet <gmajoulet@google.com>

Co-authored-by: Ryan Cebulko <ryan@cebulko.com>
Co-authored-by: Gabriel Majoulet <gmajoulet@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants