Motivation

Media: YouTube is close to a stable release. This issue is to gather a list of any critical issues and significant code changes blocking a 2.0 and get them fixed and committed. The goal is stable UI/formatters and a stable developer experience.

The YouTube search tab still needs work and testing. To get a usable stable out ASAP, the YT tab will not be a part of the stable, but will remain a part of the dev branches. The code will still be there, just commented out.

You can use the tag D7 stable release blocker to help others identify issues that are blocking a stable release. Currently there are no issues with that tag.

Solution

Here's my list. A few are for 1.x, but we should check that the problem they report is fixed in 2.x. Some of these may be won't fix, some may be support requests, but they need to be addressed before we can call the module stable. Anyone who wants to test the 1.x issues in 2.x, please do and report on the issue:

#1768362: Add http/s/relative protocol options to fix protocol handling for js API and email/rss; choose https or relative as default
#1768364: Incorrect variable in media-youtube-video.tpl.php
#1658102: Remove M:YT support for Styles module
#1320308: Add display settings for "full", "teaser", and "preview" file view mode for media_youtube
#1497014: Couple of cleanups to MediaInternetYouTubeHandler.inc
#1180386: Use of copy() and simplexml_load_file() rather than drupal_http_request() causes Media:YouTube thumbnails to be empty
#1665524: Preserving original filename (origname) in table {file_managed}
#1402328: Preserve classes added by WYSIWYG

Minor:
#1658006: Fatal error: Call to a member function get_parameters() on a non-object in .../includes/themes/media_youtube.theme.inc
#1707250: File block added for MediaInternetYouTubeHandler
I'm pretty sure this is working in 2.x. Probably a problem with old formatters/wysiwyg integration/shortcodes or lack thereof. Needs to be tested just in case:
#1673890: Altering alignment on preview image inside WYSIWYG (ckeditor) causes the image to be displayed instead of video after saving

Feature requests to keep an eye on (but not release blockers):
#1405528: How to embed a whole youtube playlist - not just a video from the playlist - in 7.x?
#370927: Add support for time-specific urls, "t" or "start" parameter

Might as well:
#1744936: don't perform Youtube search on empty string

Tasks remaining:

  1. Create legacy tpl and update scripts.
  2. Comment out the YouTube tab and tag a release candidate.
  3. Update the project page with info on the YouTube tab.

Original Issue by Greggles

It would be nice to have a stable release to provide site builders more certainty that the module will get an SA for any security issues. Please feel free to update this issue summary to include links to issues to fix prior to that release.

As of this post, there are 9 critical bugs in the queue.

You can use the tag D7 stable release blocker to help others identify issues that are blocking a stable release. Currently there are no issues with that tag.

Comments

dddave’s picture

Marked #1555276: Clean up theming function, Use recommended iframe player by default, without js as a release blocker. Major changes with relevance to most embedding modules and a lot of work are in this issue. Everybody feel free to test it.

edit: Not sure about the procedure here. This issue was opened against the 2x branch yet the criticals are mostly concerning 1x. What do we want here? A stable 1x? Or a stable 2x?

greggles’s picture

I'll defer to the maintainers on that question.

aaron’s picture

at this point, there are not too many difference between the branches, other than the YouTube tab. Thus, I believe that it would be best to fix branch 2.X, and roll back to 1.X. That said, the YouTube tab still needs some work, so I am aiming for a stable 1.X branch 1st.

hongpong’s picture

#1668950: YouTube Tab: Fatal error: Cannot use string offset as array in sites/all/modules/media_youtube/media_youtube.module on line 175 seems to be pretty bad. I have to use "Enabled Browser Plugins: Web" in order to post youtube videos -- the Youtube option works ok for videos on that auto-display but if you post a youtube video ID into the box it gives the string offset error. Needs more documentation?

RobW’s picture

There are no critical bugs against 2.x now, unless HongPong's is raised up.

2.x is working well enough right now that I'd recommend it for production sites. I'd like to do some cleanup, including removing styles code, and get the js API integration running smoothly out of the box. After that, let's give 2.x a look and see if we can upgrade it to a full release.

aaron’s picture

we also need to ensure that people can upgrade smoothly between versions, before pushing a stable release. As I recall, there may be some issues after that last big patch.

RobW’s picture

@Aaron: between 7.x-1.x and 7.x-2.x, or between 6.x-1.x, 7.x-1.x and 7.x-2.x?

I did remove and rename some of the formatter options, and the theme output is significantly different. Would it be possible to create a bridge template that is only used by those upgrading from 7.x-1.x, but let all new installs use the simpler tpl? Haven't written any update scripts before.

RobW’s picture

Priority: Normal » Major

Added list of issues to summary.

RobW’s picture

Issue summary: View changes

Updated with issue list

RobW’s picture

Issue summary: View changes

added call to action.

RobW’s picture

Almost there. Going to go through the issue queue once more tomorrow and see if anything jumps out.

RobW’s picture

Issue summary: View changes

updated task list

RobW’s picture

Issue summary: View changes

added some more issues

RobW’s picture

Issue summary: View changes

Added some more

RobW’s picture

All major issues have been fixed and committed to 2.x-dev.

Tasks remaining:

  1. Create legacy tpl and update scripts.
  2. Comment out the YouTube tab and tag a release candidate.
  3. Update the project page with info on the YouTube tab.
RobW’s picture

Issue summary: View changes

remove an issue.

RobW’s picture

RobW’s picture

Issue summary: View changes

updated tasks

RobW’s picture

Issue summary: View changes

revised tasks

RobW’s picture

Added some major feature requests to keep track of.

RobW’s picture

Status: Active » Needs review
StatusFileSize
new6.96 KB

Almost there. As far as I can tell #1402328: Preserve classes added by WYSIWYG is the last issue that needs to go in before we can roll a stable.

Added update hooks and fixed some whitespace issues in this patch. The update hook removes deprecated options from the ctools exportables, and migrates the one deprecated option that can be replicated with new settings. I couldn't find an acceptable way to feed two different tpls to a user depending on if they are updating or installing fresh -- I think 2.x being in alpha, the markup changes are fine. In Vimeo I'll bump to 2.x when that gets to release stage to avoid passive markup changes.

Adding an explanation of the legacy tpl in the readme is probably a good idea. Other suggestions/concerns?

RobW’s picture

StatusFileSize
new9.01 KB

And here's one with some general notes and a readme section on updating. Not that anyone reads them, but for the first month or so I'll add a note that if you're updating read the important notes in the readme to the front page.

[Edit] Introduced some whitespace errors in this patch. I'll clean them out next roll/apply.

RobW’s picture

Issue summary: View changes

added some important feature requests

hongpong’s picture

Hey thanks for all the fine work -- i'm a big fan of Readmes really, i just wish d.o auto-pegged them to the module page.

RobW’s picture

StatusFileSize
new14.59 KB

This patch should bring us to 2.0-RC1, or just 2.0 if people test here and say it's looking good. Major readme update, commenting out of YouTube tab, some extra code doc, etc.

aaron’s picture

Status: Needs review » Needs work

+ dpm($formatters[$formatter]);

RobW’s picture

StatusFileSize
new75.45 KB

Peer review to the rescue.

Wait, ignore this one, head to #21.

RobW’s picture

Status: Needs work » Needs review
RobW’s picture

StatusFileSize
new14.56 KB

Ahem, anyways:

aaron’s picture

Status: Needs review » Needs work
+      // Migrate chromeless=1 or controls='0' to autohide=1, showinfo=0.
+      if (isset($formatters[$formatter]->settings['chromeless'])) {
+        if ($formatters[$formatter]->settings['chromeless'] == 1) {
+          $formatters[$formatter]->settings['autohide'] = 1;
+          $formatters[$formatter]->settings['showinfo'] = 0;
+        }
+      }
+      if (isset($formatters[$formatter]->settings['controls'])) {
// I believe the following should be ->settings[’controls'] == 0
+        if ($formatters[$formatter]->settings['chromeless'] == 1) {
+          $formatters[$formatter]->settings['autohide'] = 1;
+          $formatters[$formatter]->settings['showinfo'] = 0;
+       }
+      }
aaron’s picture

diff --git a/includes/themes/media-youtube-video-legacy.tpl.php b/includes/themes/media-youtube-video-legacy.tpl.php
deleted file mode 100644
index eedd516..0000000
--- a/includes/themes/media-youtube-video-legacy.tpl.php
+++ /dev/null

Why are you deleting that file?

RobW’s picture

Status: Needs work » Needs review
StatusFileSize
new14.56 KB

#22: Thanks! Totally correct.

#23: It's a rename from media-youtube-video-legacy.tpl.php to media-youtube-video.legacy-example.tpl.php. There's probably a way to do that where git recognizes it as a rename or move, not a delete file then create new file... I should look that up.

gmclelland’s picture

RobW’s picture

Status: Needs review » Fixed

Fixed Aaron's catches, did one last code review, and pushed the changes plus a 2.0-rc1 tag. I'll set it as the recommended release as soon as the tag .rars are built, and we'll see if users can uncover any more issues in the next week. If not, it's 2.0 time!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

edits n updates