[ARVADOS] updated: 1.1.1-290-g7da8eaf

Git user git at public.curoverse.com
Fri Dec 15 07:02:02 EST 2017


Summary of changes:
 build/run-tests.sh                                 |  65 +++----
 doc/_includes/_mount_types.liquid                  |  22 +--
 sdk/R/.RData                                       | Bin 321963 -> 192106 bytes
 sdk/R/R/Collection.R                               |  23 ++-
 sdk/go/arvados/client.go                           |   1 +
 sdk/go/arvados/container.go                        |   3 +
 sdk/go/arvadostest/fixtures.go                     |   7 +
 .../controllers/arvados/v1/schema_controller.rb    |   8 +
 services/api/app/models/commit.rb                  |   2 +-
 services/api/test/helpers/git_test_helper.rb       |  12 +-
 services/api/test/test.git.tar                     | Bin 256000 -> 143360 bytes
 services/arv-git-httpd/auth_handler.go             |  48 +++--
 services/arv-git-httpd/auth_handler_test.go        | 116 ++++++++++++
 services/crunch-run/crunchrun.go                   |  22 ++-
 services/crunch-run/crunchrun_test.go              |  59 ++++++
 services/crunch-run/git_mount.go                   | 110 +++++++++++
 services/crunch-run/git_mount_test.go              | 209 +++++++++++++++++++++
 17 files changed, 619 insertions(+), 88 deletions(-)
 create mode 100644 services/crunch-run/git_mount.go
 create mode 100644 services/crunch-run/git_mount_test.go

       via  7da8eaf51a23ab23369b6e65f0634448cc4aeb3b (commit)
       via  05d6f9301e863a2b0aad1178d629354601f14325 (commit)
       via  6cae747c4bd57a2787e943cbc87b95e9cc1015a0 (commit)
       via  9a7f1bba655da249a0445eefa50e92a8b305b753 (commit)
       via  e64b71e098878da66c434b7f7c09d36f2650f38e (commit)
       via  fc880f7053c5fc5a669d92453f4fc293e0b514f1 (commit)
       via  14e2d1af9ed30ca354805eb1f232444478d7427b (commit)
       via  64d66bca9b9816d0ff025fbee91d04b1d7211f13 (commit)
       via  635123c249440ef01cd1f4a56fc4464541d55926 (commit)
       via  d5f8662b50e80d8ffbeaff61d1c7dfb617e81298 (commit)
       via  0fbc2ee6f150426919eaf3ab9361208aa2968a70 (commit)
       via  cb8f4bb6e6d11eff6439822b9d3a3e2763eb61be (commit)
       via  1f4e3f1e85bf5b829108f43a61f13cb9801835dd (commit)
       via  4ce855e6b1368cc6ce95c27da2238fa39060c069 (commit)
       via  4343e1f1035baaa22f117d119c6e6bc35b1e385b (commit)
       via  a6c6892623dcd1ca882478a06f274a19d7951cb8 (commit)
       via  1d2020d448c45a1bb8a7b1f6aa04ed1d87dc353b (commit)
       via  314f9396cd140456a5e5a6d29e4d7741de0181f4 (commit)
       via  9dd3035e4c844d2f94aac8e1e2a37f20b42594ea (commit)
      from  5c5ec11a744d47f7235e5a1862d2d22288ffe90f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 7da8eaf51a23ab23369b6e65f0634448cc4aeb3b
Merge: 05d6f93 6cae747
Author: Fuad Muhic <fmuhic at capeannenterprises.com>
Date:   Fri Dec 15 13:01:48 2017 +0100

    Merge branch 'master' of git.curoverse.com:arvados into 11876-r-sdk
    
    Arvados-DCO-1.1-Signed-off-by: Fuad Muhic <fmuhic at capeannenterprises.com>


commit 05d6f9301e863a2b0aad1178d629354601f14325
Author: Fuad Muhic <fmuhic at capeannenterprises.com>
Date:   Fri Dec 15 13:00:41 2017 +0100

    Added feature to delete file from a collection.
    
    Arvados-DCO-1.1-Signed-off-by: Fuad Muhic <fmuhic at capeannenterprises.com>

diff --git a/sdk/R/.RData b/sdk/R/.RData
index 5745e7d..19eceda 100644
Binary files a/sdk/R/.RData and b/sdk/R/.RData differ
diff --git a/sdk/R/R/Collection.R b/sdk/R/R/Collection.R
index 0ebaed8..49a1e81 100644
--- a/sdk/R/R/Collection.R
+++ b/sdk/R/R/Collection.R
@@ -107,11 +107,6 @@ Collection <- R6::R6Class(
 
         createNewFile = function(relativePath, content, contentType)
         {
-            node <- private$fileTree$getNode(relativePath)
-
-            if(is.null(node))
-                stop("File already exists")
-
             fileURL <- paste0(private$api$getWebDavHostName(), "c=", self$uuid, "/", relativePath);
             headers <- list(Authorization = paste("OAuth2", private$api$getToken()), 
                             "Content-Type" = contentType)
@@ -128,6 +123,24 @@ Collection <- R6::R6Class(
             paste0("File created (size = ", fileSize , ")")
         },
 
+        removeFile = function(relativePath)
+        {
+            node <- private$fileTree$getNode(relativePath)
+
+            if(is.null(node))
+                stop("File doesn't exists.")
+
+            fileURL <- paste0(private$api$getWebDavHostName(), "c=", self$uuid, "/", relativePath);
+            headers <- list(Authorization = paste("OAuth2", private$api$getToken())) 
+
+            serverResponse <- private$http$DELETE(fileURL, headers)
+
+            if(serverResponse$status_code != 204)
+                stop(paste("Server code:", serverResponse$status_code))
+
+            "File deleted"
+        },
+
         update = function(subcollection, event)
         {
             #Todo(Fudo): Add some king of check here later on.

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list