The OSS SDK for PHP provides a library for developers working with Aliyun OSS(Open Storage Service).
Aliyun OSS is an open storage service provided by Aliyun Company which owned by Alibaba Group.
Other modules may build full feature upon this module. For example: make oss the storage for drupal site's files.
Similar module: AWS SDK
Project Page

git clone --branch 7.x-1.x http://git.drupal.org/sandbox/csunny/2015135.git osssdk

Comments

csunny’s picture

Issue summary: View changes

update git link

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://ventral.org/pareview/httpgitdrupalorgsandboxcsunny2015135git

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.

Vasiliy Grotov’s picture

Hello.

Please, check Coder's report:

osssdk.module

  • Line 33: Function comment short description must end with a full stop
  • Line 33: Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().", or "* Implements hook_foo_BAR_ID_bar() for xyz_bar.tpl.php.".
  • Line 56: Function comment short description must end with a full stop
  • Line 56: Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().", or "* Implements hook_foo_BAR_ID_bar() for xyz_bar.tpl.php.".
  • Line 58: osssdk_requirements() is an installation hook and must be declared in an install file
  • Line 96: Inline comments must end in full-stops, exclamation marks, or question marks
  • Line 102: Files must end in a single new line character
chrisscudder’s picture

Create osssdk.install

hook_install

variable_set('oss_key_id','');
.. oss_key_secret

hook_uninstall

variable_del as above.

Thanks

csunny’s picture

Status: Needs work » Needs review

Hello friends,

I have fixed the above issues and please review it.

Thanks

sergeypavlenko’s picture

Status: Needs review » Needs work

Hello.

PAReview found many of errors, please correct them - http://ventral.org/pareview/httpgitdrupalorgsandboxcsunny2015135git-7x-1x

Also, you will need to remove the master branch.

csunny’s picture

Status: Needs work » Needs review

Hello,

I have fixed all the issues and please review it.

Thanks

fluxsauce’s picture

Status: Needs review » Needs work

http://ventral.org/pareview/httpgitdrupalorgsandboxcsunny2015135git is currently passing.

https://drupal.org/sandbox/csunny/2015135

  • Does not link to OSS SDK for PHP, only the actual downloadable. I'm not downloading a file without getting a complete description of what's in it and seeing a project overview.
  • What can a Drupal developer do with the OSS SDK for PHP? Why use this module?
  • I searched the codebase for osssdk_key_id - and it's not used anywhere other than the install script and the form to enter it.

What functionality does this module actually provide? I don't see that it does anything other than describe itself to libraries and links back to Aliyun OSS.

csunny’s picture

Status: Needs work » Needs review
  • Now project page have link to page containing download link of OSS SDK for PHP instead of download directly.
  • Note that this module doesn't provide any visible functions to the user on its own, it just provides sdk library register/load services for other modules. Actually I am developing another module named aliyunoss (like amazons3 module) to provide storage of files to aliyun oss.
  • Now I removed the osssdk_key_id since this may be more appropriate to be reside in aliyunoss module.

This is module is a 'rewrite' of AWS SDK for PHP module to work with Aliyun OSS.
Thanks for suggestion!

kscheirer’s picture

Status: Needs review » Postponed (maintainer needs more info)
Code too short
This project is too short to approve you as git vetted user. We are currently discussing how much code we need, but everything with less than 120 lines of code or less than 5 functions cannot be seriously reviewed. However, we can promote this single project manually to a full project for you.

Please let us know if you'd like to see this project promoted without granting you git vetted user status. Or set back to "needs review" if you add more code. The AWK SDK module for example provides tests and a UI submodule.

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

csunny’s picture

Status: Postponed (maintainer needs more info) » Needs review

Hi,
I have added more code:

  • A config UI form to setup the oss access_key/access_secret info pair.
  • A simple test file

Thanks!

kscheirer’s picture

Status: Needs review » Reviewed & tested by the community

In osssdk_install() you don't need to set default values for your variables. You can still provide those defaults when you read them with variable_get('varname', 'defaultvalue').

No blocking issues found - the test could be improved though. Currently I think it's just a repeat of hook_requirements?

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

csunny’s picture

I have Removed setting default values for variables in hook_install().
Thanks

kscheirer’s picture

Status: Reviewed & tested by the community » Fixed

It's been a month without any problems reported, so I'm promoting this myself as per https://drupal.org/node/1125818.

Thanks for your contribution, csunny!

I updated your account to let you promote this to a full project and also create new projects as either a sandbox or a "full" project.

Here are some recommended readings to help with excellent maintainership:

You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and get involved!

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.

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

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

add aliyun link