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:
Create legacy tpl and update scripts.- Comment out the YouTube tab and tag a release candidate.
- 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.
| Comment | File | Size | Author |
|---|---|---|---|
| #24 | media-youtube-2.0-1693648-24.patch | 14.56 KB | RobW |
| #19 | media-youtube-2.0-1693648-19.patch | 75.45 KB | RobW |
| #21 | media-youtube-2.0-1693648-21.patch | 14.56 KB | RobW |
| #17 | media-youtube-2.0-1693648-17.patch | 14.59 KB | RobW |
| #15 | media-youtube-2.0-1693648-15.patch | 9.01 KB | RobW |
Comments
Comment #1
dddave commentedMarked #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?
Comment #2
gregglesI'll defer to the maintainers on that question.
Comment #3
aaron commentedat 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.
Comment #4
hongpong commented#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?
Comment #5
RobW commentedThere 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.
Comment #6
aaron commentedwe 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.
Comment #7
RobW commented@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.
Comment #8
RobW commentedMight want to get these changes in too:
#1497014: Couple of cleanups to MediaInternetYouTubeHandler.inc
#1320308: Add display settings for "full", "teaser", and "preview" file view mode for media_youtube
Comment #9
RobW commentedAdded list of issues to summary.
Comment #9.0
RobW commentedUpdated with issue list
Comment #9.1
RobW commentedadded call to action.
Comment #10
RobW commentedAlmost there. Going to go through the issue queue once more tomorrow and see if anything jumps out.
Comment #10.0
RobW commentedupdated task list
Comment #10.1
RobW commentedadded some more issues
Comment #10.2
RobW commentedAdded some more
Comment #11
RobW commentedAll major issues have been fixed and committed to 2.x-dev.
Tasks remaining:
Comment #11.0
RobW commentedremove an issue.
Comment #12
RobW commentedAdded legacy markup tpl: http://drupalcode.org/project/media_youtube.git/commit/5905583.
Comment #12.0
RobW commentedupdated tasks
Comment #12.1
RobW commentedrevised tasks
Comment #13
RobW commentedAdded some major feature requests to keep track of.
Comment #14
RobW commentedAlmost 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?
Comment #15
RobW commentedAnd 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.
Comment #15.0
RobW commentedadded some important feature requests
Comment #16
hongpong commentedHey 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.
Comment #17
RobW commentedThis 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.
Comment #18
aaron commented+ dpm($formatters[$formatter]);
Comment #19
RobW commentedPeer review to the rescue.
Wait, ignore this one, head to #21.
Comment #20
RobW commentedComment #21
RobW commentedAhem, anyways:
Comment #22
aaron commentedComment #23
aaron commentedWhy are you deleting that file?
Comment #24
RobW commented#22: Thanks! Totally correct.
#23: It's a rename from
media-youtube-video-legacy.tpl.phptomedia-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.Comment #25
gmclelland commented@RobW - git mv http://kernel.org/pub/software/scm/git/docs/git-mv.html
Comment #26
RobW commentedFixed 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!
Comment #27.0
(not verified) commentededits n updates