RCOSDP / RDM-osf.io

Facilitating Open Science
https://rcos.nii.ac.jp
Apache License 2.0
13 stars 24 forks source link

Feature/rushfiles #343

Open Makinami opened 1 year ago

Makinami commented 1 year ago

Sending again the PR for adding RushFiles storage addon. The only changes from the previous (#295 ) is that I have cleaned up the git log a bit by rebasing and had to recreate translation file (with commands from README).
I'm copy-pasting the content of previous PR.


My name is Wiktor Klonowski and I am sending this pull request on behalf of Tsukaeru.net.

Purpose

As discussed via email and video conference in October last year, we would like to add to GakuNin RDM a support for our file storage solution: RushFIles (FileBako in Japan). This PR (and corresponding PR in waterbutler repository: https://github.com/RCOSDP/RDM-waterbutler/pull/36) implements an addon for this integration.

At the moment, addon integrates only with user panel. Integration with organization's administrator control panel might come in the future, but is out of scope of this PR.

Changes

Add support for a new file storage service called RushFiles (FileBako in Japan).

QA Notes

Please let us know if you need a RushFiles/FileBako account for testing.

Documentation

Depending on whether such list is provided on RCOSDP page, a list of supported file storage solutions might need updating.

The rudimentary documentation for RushFiles API can be found here: https://wiki.rushfiles.com/api . For any questions, you may contact support@tsukaeru.net .

Side Effects

No known side effects.

Ticket

N/A

Notes

  1. This feature branch was initially created in October from the develop, which was still using Python 2.7 back then, and developed as such. Before sending this PR, I have rebased the branch to the newest version of develop branch. Unfortunately, after the rebase I can't start GakuNin RDM system. Problems are with incompatible base requirements and/or missing linux libraries in docker image. Despite our best effort, we couldn't solve this problem without internal knowledge of the entire system or intrusive changes. Because of this, the addon wasn't tested on the latest version of branch. However, as it does not use deprecated Python 2.7 features and works similarly to other storage addons, I don't believe there will be any problem with running it on Python 3.6. Should there be bugs or if you know how to build and run newest develop branch, please let us know.
  2. The latest commit (91117ceeec2c4c319798dfc062414598e8f2bc29), changes user facing branding of the addon from RushFiles to FileBako. This is because we are the partner and reseller of RushFiles in Japan and in Japan it is known under the FileBako name: https://www.tsukaeru.net/file-bako / https://cloudfile.jp/