-
Notifications
You must be signed in to change notification settings - Fork 2.7k
MM-17653 Remove metadata call for youtube links #3493
Conversation
@@ -3529,6 +3529,5 @@ | |||
"widgets.users_emails_input.loading": "Loading", | |||
"widgets.users_emails_input.no_user_found_matching": "No one found matching **{text}**, type email address", | |||
"widgets.users_emails_input.valid_email": "Add **{email}**", | |||
"yourcomputer": "Your computer", | |||
"youtube_video.notFound": "Video not found" |
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.
Was curious on this one so I tested with youtube link with available and unavailable video (only by changing the last character):
- post this (available) link --> https://www.youtube.com/watch?v=EW9rvhRnP04
- then (not available) link --> https://www.youtube.com/watch?v=EW9rvhRnP05
On master/5.14, second post showed unavailable thumbnail placeholder from youtube (probably expected but not entirely sure as I was expecting a message saying "Video not found")
On this PR, thumbnails shown as if both videos are available (clicking on second post reveals that the video is unavailable)
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.
Interesting. The thumbnail populated is from opengraph data so it must have returned so, i don't think this would be a bug we should fix here in webapp. In any case let me check and file a ticket for the bug
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.
@saturninoabril Seems related to how opengraph provides data. Weird it happens for that link. I tried couple of other links and if it is not a valid youtube link all you see is the link as a message as there will be no metadata.
@hmhealey Quick thoughts? Should we be creating a ticket for this?
Co-Authored-By: Harrison Healey <[email protected]>
Co-Authored-By: Harrison Healey <[email protected]>
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.
LGTM
* MM-17653 Remove metadata call for youtube links * Fix lint * Fix in8 issue * Add fallback for image url * Update components/youtube_video/youtube_video.jsx Co-Authored-By: Harrison Healey <[email protected]> * Update components/youtube_video/youtube_video.jsx Co-Authored-By: Harrison Healey <[email protected]> * Fix review comments * Update snapshots
#3493 unintentionally removed the import of `actions/integration_actions`, which defined a side effect necessary to the correct functioning of interactive dialogs. I've relocated this somewhere that is more intentionally imported, and commented details as to the issues with this code block. I'm not explicitly fixing the issues right now, and I'm not sure if I can unit test this, so I'm just restoring the import for now.
#3493 unintentionally removed the import of `actions/integration_actions`, which defined a side effect necessary to the correct functioning of interactive dialogs. I've relocated this somewhere that is more intentionally imported, and commented details as to the issues with this code block. I'm not explicitly fixing the issues right now, and I'm not sure if I can unit test this, so I'm just restoring the import for now.
#3493 unintentionally removed the import of `actions/integration_actions`, which defined a side effect necessary to the correct functioning of interactive dialogs. I've relocated this somewhere that is more intentionally imported, and commented details as to the issues with this code block. I'm not explicitly fixing the issues right now, and I'm not sure if I can unit test this, so I'm just restoring the import for now.
mattermost#3493 unintentionally removed the import of `actions/integration_actions`, which defined a side effect necessary to the correct functioning of interactive dialogs. I've relocated this somewhere that is more intentionally imported, and commented details as to the issues with this code block. I'm not explicitly fixing the issues right now, and I'm not sure if I can unit test this, so I'm just restoring the import for now.
#3493 unintentionally removed the import of `actions/integration_actions`, which defined a side effect necessary to the correct functioning of interactive dialogs. I've relocated this somewhere that is more intentionally imported, and commented details as to the issues with this code block. I'm not explicitly fixing the issues right now, and I'm not sure if I can unit test this, so I'm just restoring the import for now.
* MM-17653 Remove metadata call for youtube links * Fix lint * Fix in8 issue * Add fallback for image url * Update components/youtube_video/youtube_video.jsx Co-Authored-By: Harrison Healey <[email protected]> * Update components/youtube_video/youtube_video.jsx Co-Authored-By: Harrison Healey <[email protected]> * Fix review comments * Update snapshots
mattermost#3493 unintentionally removed the import of `actions/integration_actions`, which defined a side effect necessary to the correct functioning of interactive dialogs. I've relocated this somewhere that is more intentionally imported, and commented details as to the issues with this code block. I'm not explicitly fixing the issues right now, and I'm not sure if I can unit test this, so I'm just restoring the import for now.
* MM-17653 Remove metadata call for youtube links * Fix lint * Fix in8 issue * Add fallback for image url * Update components/youtube_video/youtube_video.jsx Co-Authored-By: Harrison Healey <[email protected]> * Update components/youtube_video/youtube_video.jsx Co-Authored-By: Harrison Healey <[email protected]> * Fix review comments * Update snapshots
mattermost#3493 unintentionally removed the import of `actions/integration_actions`, which defined a side effect necessary to the correct functioning of interactive dialogs. I've relocated this somewhere that is more intentionally imported, and commented details as to the issues with this code block. I'm not explicitly fixing the issues right now, and I'm not sure if I can unit test this, so I'm just restoring the import for now.
Summary
This removes the a API call made for youtube links and consumes data from metadata to remove scroll pop
Ticket Link
https://mattermost.atlassian.net/browse/MM-17653