Two aspects of this module work together to give you a seamless MediaCore experience from within Drupal. WYSIWYG integration (supports TinyMCE, and CKEditor) gives you a new button while editing content; click it and your MediaCore library is right there! Just select which one you'd like to embed, and we'll insert a shortcode for it in your content. The content filter turns these shortcodes into the appropriate code so that your video appears right within your page.

Project page: http://drupal.org/sandbox/mediacore/1708680
Git repo: http://git.drupal.org:sandbox/mediacore/1708680.git

===Shortcode example:===
[mediacore:http://demo.mediacore.tv/media/trap-jaw-ants]

==ABOUT==

MediaCore (http://mediacore.com/) is an online video platform for managing,
encoding, monetizing and delivering video to mobile and desktop devices.
MediaCore makes it easy for any organization to share video either publicly or
privately and build an amazing user experience on both desktop and mobile
browsers around their own content.

Who's using Mediacore? More and more MediaCore powered sites are popping up all
over the world. You can learn more about some of these sites here on our
MediaCore showcase: http://mediacore.com/why-mediacore.

Comments

PA robot’s picture

Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxmediacore1708680git

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

kscheirer’s picture

Priority: Major » Normal

Anything in needs work is not major.

mediacore’s picture

It seems the PA robot actually reviewed the old version of our code not the new version. I have run the new code through the automated review tools and have corrected the issues.

Can we get this reviewed again so the plugin can be released ASAP?

mediacore’s picture

Issue summary: View changes
Priority: Normal » Major
Status: Needs work » Needs review
kscheirer’s picture

Priority: Major » Normal
Status: Needs review » Needs work
Master Branch
It appears you are working in the "master" branch in git. You should really be working in a version specific branch. The most direct documentation on this is Moving from a master branch to a version branch. For additional resources please see the documentation about release naming conventions and creating a branch in git.
  • You README should have a max width of 80 chars per line.
  • You can remove the .gitignore file from the repo.
  • Remove the empty _mediacorechooser_settings().
  • Your docblocks are wrong, _mediacorechooser_process() is not an implementation of hook_process(). Neither is mediacorechooser_admin_validate(). Only use the "implements hook_foo()." docblock when there really is a hook_foo defined in Drupal. Otherwise document the function normally.
  • Don't include mediacorechoosersigning.php in the global scope - this just means it will be loaded on every Drupal page request. Only load it where it is needed.

Otherwise looks like a nice module!

----
Top Shelf Modules - Crafted, Curated, Contributed.

mediacore’s picture

Priority: Normal » Major
Status: Needs work » Needs review

All of the changes indicated by kscheirer have been fixed. Please review and approve. Thanks.

barthje’s picture

Status: Needs review » Needs work
  • You are still not working in the correct branch. See the first part in kscheirer's comment
  • You missed a couple of review points from the automated review. Please fix them
  • Please create an install file with an uninstall hook to remove all the variables used in your module.
  • I would recommend to add comments in the function _mediacorechooser_process. Like why and what is happening. It would make it a lot more clear for other people. The same for mediacorechooser_get_signed_qs.
  • You are including a php file in your code at line 197. You could/should use module_load_include and rename the file to mediacorechooser.signing.inc.
  • (optional)I know the second parameter in variable_get is optional, but I would still recommend using this so either the variable will be of the correct type(not as important in php). or the programmer will know what type the variable can expect. See line 66
  • mediacore’s picture

    Alright, these issues have been corrected. I did not comment mediacorechooser_get_signed_qs, as the mediacorechooser module will only be worked on by the MediaCore team, and this whole plugin (including our URL signing code) is documented internally.

    We have been waiting on having this module converted from a sandbox project to launch a marketing campaign for the MediaCore Chooser within Drupal. Please ensure ALL comments/recommendations are noted in the next review, as we keep having additional improvements tacked on that were not mentioned in any previous reviews and it is severely slowing this review process.

    Please get back to us ASAP, as we would have liked to have released this plugin to our customers 2 months ago.

    Thanks!

    mediacore’s picture

    Priority: Major » Critical
    Status: Needs work » Needs review
    barthje’s picture

    Status: Needs review » Needs work

    I hope you do know Drupal is open source and what the idea behind that is? That's why I would recommend to add comments and make it clear what is happening.

    Question #8 in the FAQ on this site has a good point: "However, if your module is of general use then it is often a good idea to contribute it back to the community anyway. You can get feedback, bug reports, and new feature patches from others who find it useful."

    Anyway:

    • http://pareview.sh/pareview/httpgitdrupalorgsandboxmediacore1708680git is still giving some warnings
    • You added defaults to your variable_get's but it could be better to add the correct defaults. E.g:
      '#default_value' => variable_get('mediacorechooser_enable_signing', 0) It would be better to use FALSE instead of 0. And with '#default_value' => variable_get('mediacorechooser_key_id', NULL), it could be better to use '' instead of NULL because it expects a string. Same for the other variable_gets

    If you do want this module to be released ASAP I do recommend you to review other projects to get a review bonus. Please read: https://drupal.org/node/1975228

    kscheirer’s picture

    Priority: Critical » Normal

    We can also promote this project immediately if you're not interested in getting "git vetted user" status. You can always apply for that later when you have more time.

    kscheirer’s picture

    Status: Needs work » Needs review

    The issues raised don't look like blockers, just suggestions for improvement.

    mediacore’s picture

    The issues indicated by barthje have been fixed. Please promote this project immediately. If there are any other issues, promote anyway and we will deal with getting vetted user status later.

    kscheirer’s picture

    Status: Needs review » Fixed
    Issue tags: +PAreview: single application approval

    It is done!

    I looked through the module and these are my only minor suggestions:

    • Single quotes are preferred when there's no variable substitution going on.
    • mediacorechooser_key_id should be szie 11 as well, there's no point in offering more room if the maxlength is 11.
    • mediacorechooser_secret_key should have a maxlength of 128?
    • You should try to keep HTML out of t() strings, like in _mediacorechooser_tips().

    ----
    Top Shelf Modules - Crafted, Curated, Contributed.

    Status: Fixed » Closed (fixed)

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