-
Notifications
You must be signed in to change notification settings - Fork 800
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
[WIP] GIF Block: Replace source with Tumblr GIF Search #39896
base: trunk
Are you sure you want to change the base?
Conversation
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
69d2de0
to
b71add9
Compare
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I gave it a quick try, and left a few notes below.
...s/jetpack/_inc/lib/core-api/wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-tumblr-gifs.php
Outdated
Show resolved
Hide resolved
...s/jetpack/_inc/lib/core-api/wpcom-endpoints/class-wpcom-rest-api-v2-endpoint-tumblr-gifs.php
Show resolved
Hide resolved
91da91d
to
ad9f06c
Compare
Thank you for the review @jeherve! I've pushed a few changes to address the feedback, especially around the auth/proxying part. I also updated the testing instructions since the WP.com portion of this (the key) is now deployed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on those changes!
Things are working well on WordPress.com Simple, but not on WoA or self-hosted yet since there no endpoint to respond to https://public-api.wordpress.com/wpcom/v2/sites/%blog_id%/tumblr-gifs/search/%keyword%
yet, as far as I can tell. Is there a Phab diff with that endpoint, that I could use to test this on Atomic and self-hosted?
Not at the moment, as that would require adding the endpoints in Moon/Sun myself. The way I've been testing this is by running I did already deploy code that will load the endpoints from Jetpack; it just needs the files to exist. I can build a Phab diff, but I think it might just be easier to use the -- Also, we might be changing the way the GIF is embedded, so I'll follow up on that shortly! |
aa1e647
to
3f3c106
Compare
…rnalLink for sidebar attribution
0912071
to
f04498c
Compare
@jeherve I'm sorry for the delay in getting back to this. Getting the Tumblr Embeds working correctly took a little work. I've updated the PR here now using the new embeds, so I think this is ready for another look. As noted in the PR description, to get the endpoints on WordPress.com:
I'm guessing I also missed the window for 14.1, is that correct? Does that mean this would be slated for 14.2, next month? |
Honestly the embed needs some more design work on the Tumblr side.. putting this back to WIP for now. |
You're still good for 14.1, but if you want our beta testers to test it, you'd be better off waiting until 14.2 indeed. Of note, in the past few days we merged #40245, which will allow you to simplify some of the endpoint logic quite a bit! |
Proposed changes:
/v2/gif/search/{query}
and/v2/gif/popular
to retrieve Tumblr GIFs.giphyUrl
attribute is still detected, we honor those embeds.Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
No.
Testing instructions:
Testing an existing GIPHY GIF
trunk
Creating a new GIF
bin/jetpack-downloader test jetpack tumblr-gif-block
to apply the endpoints to your sandbox.JETPACK__SANDBOX_DOMAIN
to point at your sandbox.Demo:
gif_demo.mov