Provide a new derivation engine to Media Derviatives API for uploading videos to Youtube API.

Media Derviatives API provide a flexible, extensible and abstract API to implement derivation engines for different types of files.

Dependencies:

sandbox url: http://drupal.org/sandbox/camdarley/1371632
git repository: camdarley@git.drupal.org:sandbox/camdarley/1371632.git
This is a Drupal 7 module

Comments

patrickd’s picture

Status: Needs review » Needs work

Your code got some coding standart issues (See http://ventral.org/pareview/httpgitdrupalorgsandboxcamdarley1371632git, you can use this site to re-test your self)

Your code has too feee...eew comments, please do more detailed commenting so other developers don't have to re-think your thoughts

If you got any questions on that, please ask

camdarley’s picture

Status: Needs work » Needs review

Thanks for the review.
I commented some function, the most i can ;)
http://ventral.org/pareview/httpgitdrupalorgsandboxcamdarley1371632git does not log error anymore.
Also, some parts of this code come from other Derivatives Engine (http://drupal.org/project/media_ffmpeg_simple)... That's why it's not commented.

klausi’s picture

Status: Needs review » Needs work
  • Remove the 7.x branch to avoid confusion.
  • media_derivatives_youtube.features.inc: @file doc block is wrong.
  • media_derivatives_youtube.info: duplicate entry "core = 7.x"
  • "define('YOUTUBE_AUTH_URL', 'https://www.google.com/youtube/accounts/ClientLogin');": constants should begin with your module name.
  • "watchdog('Youtube Engine',...": you should use your module name for the log entry.
  • "watchdog('Youtube Engine', 'Uploaded file !file to Youtube. Story id: !story_id'": why do you use the "!" placeholder here? Path variables are plain text, right? so you should use "@".
  • media_derivatives_youtube.info: dependency on Libraries API is missing?
jthorson’s picture

Status: Needs work » Closed (duplicate)

It appears that there have been multiple project applications opened under your username:

Youtube Derivatives: http://drupal.org/node/1371658
Media: Kewego: http://drupal.org/node/1348120

As successful completion of the project application process results in the applicant being granted the 'Create Full Projects' permission, there is no need to take multiple applications through the process. Once the first application has been successfully approved, then the applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue.

With this in mind, I have marked your secondary applications as 'closed(duplicate)', and left one application open (chosen at random).

If you prefer that we proceed through this review process with a different application than the one I that I have left open, then please feel free to close the 'open' application as a duplicate, and re-open one of the other project applications which I had closed.

Thanks in advance for your patience and understanding!

camdarley’s picture

Status: Closed (duplicate) » Needs review

That's ok, I didn't know about the 'Create Full Projects' permission.
Youtube Derivative is a better candidate for a successful completion, as it is easier to review.
I fixed the issues in #3.
Sorry for misunderstanding and thanks for the review.

camdarley’s picture

I update this issue, as i'm waiting for a month without review...
Please, I fixed the code/branch issues. Can anyone review it?
Thanks

patrickd’s picture

sorry for the delay! too many applications too few reviewers :(
you can help out and get a review bonus to speed up you application.
See http://drupal.org/node/1410826

camdarley’s picture

Yes I just see the Review Bonus process... Already did one review...
Thanks anyway!

camdarley’s picture

Issue tags: +PAreview: review bonus

Added tag: PAReview: review bonus

klausi’s picture

Issue tags: -PAreview: review bonus

Removing review bonus tag, you have not done any manual review, you just posted the output of an automated review tool.

klausi’s picture

Issue summary: View changes

Added links to other project reviews

camdarley’s picture

I understand and i'm sorry, i didn't read http://drupal.org/node/1410826 carefully enough.
I'll do my best for the next reviews.

luxpaparazzi’s picture

I would find it helpful, if you would explain what "Media Derviatives API" actually is in the project application description.

luxpaparazzi’s picture

Status: Needs review » Reviewed & tested by the community

I'm not quite sure this project will suffice for full project review, as it only contains 5 functions (all implementing hooks), no user-interaction and no database-activity. But that's only a thought about what I read on other reviews.

Because no database and no user interaction I cannot imagine any "security flaws".

Pareview on ventral does not show any coding standard problems.

As the complexity of the module is very low, it's diffcult to find any "best practice" issues.

I don't see any objection on why this project should not be promoted to full project.

luxpaparazzi’s picture

Issue summary: View changes

Removed reviews of other projects

camdarley’s picture

Hi luxpaparazzi. Thanks for the review.
I just added a description of what Derivatives API does.
I understand that this module is very light. When I applied for full project review, that was the only one I could publish that was easy to review.
I have some other module waiting for a full project upgrade:

If you can take a look on these, you'll see that I use more function, class and "user-interaction", and you'll can evaluate my skill in using Drupal API.
I use them on productions site and they works well.
I was so busy last months that I couldn't review other project as I said I'll do, hope I'll can do some soon.

luxpaparazzi’s picture

Generally it is recommanded only submitting one project for review.
As if you get "Full Project Access" this will be for all your current and future projects.

So it would be best to cancel all but the one which shows best your programming skills, this will also make the overall review process faster for everybody.

patrickd’s picture

Assigned: Unassigned » patrickd

right,
once your first application has been successfully approved, an applicant can promote other projects without review. Because of this, posting multiple applications is not necessary, and results in additional workload for reviewers ... which in turn results in longer wait times for everyone in the queue.

I'll have a deeper look into this in the next couple minutes..

patrickd’s picture

Status: Reviewed & tested by the community » Fixed
  1. I think your project page could still be enhanced, have a look at the tips for a great project page. Same with the README.txt, see guidelines for in-project documentation.
  2. If you fixed an issue in your queue, don't forget to mark it as "fixed", if everything is okay and there's no further activity it'll be closed after a week to "closed (fixed)". Also have a look at Commit messages - providing history and credit. ( the " - from [name]" is not the accurate way to provide credit, use "Issue #[num] by [name]: [topic]")
  3. .info: Missspell in you description "Youube"
  4. Would be nice to have all constants documented /**/
  5. Begin your comments with uppercase and and them with fullstop
  6. function media_derivatives_youtube_ctools_plugin_api() {
      list($module, $api) = func_get_args();

    I don't get the point of this line, what's it good for? :o, would _plugin_api($module = NULL, $api = NULL) not do the same?

  7. You should check whether Zend Gdata framework is available by hook_requirements.
  8. As Derivatives API is still under "heavy" development, I'd suggest you to not create a "recommended" release until Derivatives did. (but as your the creator of derivatives api, I'm pretty sure you'd done it this way anyway)

Generally I think here are no critical issues that should be block this and even if here's not 'much' code to review I'm quite sure you know what you're doing ;-)

Therefore, thanks for your contribution and welcome to the community of project contributors on drupal.org!! :)

I've granted you the git vetted user role which will let you promote this to a full project and also create new projects as either sandbox or "full" projects depending on which you feel is best. But keep in mind that this power also brings responsibility ;-)

Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

Thanks to the dedicated reviewer(s) as well.

camdarley’s picture

Thank you so much! That's great.
I only submitted one project for review, the others weren't in the project application issues.
I will consider the issues in #17 asap.
I would be glad reviewing other projects. As soon as I finish my current work, I will try to do my best.
Once again, thanks you for your consideration and your work.

luxpaparazzi’s picture

Congratulations camdarley for becoming a true Drupal developer.

I would find it a good idea explaining what "derivation engines" are on your project page.

If you don't mind and have time to spend, I would be glad for a review of my project-application "Directory based organisational layer." http://drupal.org/node/1302786 :-)

camdarley’s picture

I should have some free time next week. I'll try to check out your application.
It seems you've done a huge work! Sound promising.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Add Derivatives API description

avpaderno’s picture

Title: Youtube Derivatives » [D7] Youtube Derivatives
Issue summary: View changes