generated from usnistgov/opensource-repo
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate file manager support #5
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* add get_uploads_directory() and determine_uploads_url() to FileManager * add fm/webdav.py to assist with access to webdav api * fix test_apiclient, add test data
This has been exercised extensively for the development and testing of the front end applications. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR extends the MIDAS DBIO service to interact with a file manager service that provides storage space for a DAP author to upload and interact with data files that should be included in the publication. The DBIO (via the
DAPService
) leverages the File Manager's MIDAS-application-specific web service to create and manage file spaces on behalf of the front-end user, but it also leverages the File Manager's WebDAV service interface as well. This is interaction is encapsulated within theFileManager
client class within thenistoar.midas.fm
package. A specializednistoar.midas.dap.nerdstore
(fmfs
) implementation leverages the File Manager's file scanning capability to generate NERDm metadata for files that have been uploaded into the user's file space. Information about the status of the file space is made available via a DAP-specific property in a DBIO Project record calledfile_space
. It includes both summary information about the usage of space (e.g. the number of files, total size of the uploaded files) as well as web pointers to the space via a browser or via WebDAV.The dockerized
midasserver
provided under the docker directory needs to be updated to allow starting a file manager to interact with (similar to how it can also start a MongoDB backend database).