kbaseapps / datafileutil Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Currently, if a google drive file is not publicly available, the request gets forwarded to a request access page with a 200 status code. This tricks the download code into thinking things are ok, and the code saves a file (at least currently) called uc
with the contents of the page, which hopefully will cause any remaining steps to fail based on the file format. If not things could get messy.
Hopefully this doesn't happen too often, as most people will get the link from google drive directly, which means they have access.
The google download code should be replaced to avoid using direct links if possible, since Google thinks they're coming from a browser.
Investigate the google drive python library.
The code looks for a cookie called download_warning
and then uses the contents in a confirm
query parameter when downloading the file. However, that cookie no longer exists when querying the download url.
Another case where we should probably look into using the google drive library
This has 2 benefits:
Re 2), note that if the object has map keys that are workspace refs, but not UPAs, that might trigger a resort, so the client application may need to swap UPAs for refs to avoid a workspace-side sort.
If the object is sorted already, this would add a low cost scan step to the save.
At least unpack_files is now missing... although I'm not sure if these documents are even used. I sure don't use them. 3rd party devs maybe?
ShockException is thrown here:
...but isn't defined anywhere in the code.
Add options to retry save / get calls for the workspace and the blobstore.
For the workspace, might want to add a load ID to the object metadata (or make the workspace support it directly) to make it easy to check if the object you expected was loaded.
Currently the code does
Instead
Result: 1 less GET
What it says on the can ^. Useful for passing to own_shock_node
See https://kbase-jira.atlassian.net/browse/PUBLIC-866
If it is possible to use a different library, that could be a fix.
If it is possible to use the unzip binary directly, that could be a fix.
If it is not possible, then we should provider a clearer message for failure to unzip.
nose is deprecated and pytest tests are much cleaner, IMO. This is a big job though...
Allows getting / saving object via file vs. passing through the callback server, which can cause memory issues. DFU would take a file path and pass that on to WSLDIO.
With the blobstore, it's impossible for a node to be file-less.
See https://codecov.io/gh/kbaseapps/DataFileUtil/pull/72/changes
what it says on the tin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.