You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2021/07/27 21:13:28 UTC

[airavata-django-portal-sdk] branch master updated (f30958b -> 4ce71c9)

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal-sdk.git.


    from f30958b  AIRAVATA-3460 Pass path as query param to handle full resource path paths when creating a directory
     new 11e3959  AIRAVATA-3485 POST experiment-id in request body for consistency
     new 4ce71c9  Version bump to 1.1.dev5

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 airavata_django_portal_sdk/user_storage/api.py | 8 ++++----
 setup.py                                       | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

[airavata-django-portal-sdk] 01/02: AIRAVATA-3485 POST experiment-id in request body for consistency

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal-sdk.git

commit 11e39590e7bbe1c731e7cc3f375ca62a8ccab257
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Mon Jul 26 13:01:24 2021 -0400

    AIRAVATA-3485 POST experiment-id in request body for consistency
---
 airavata_django_portal_sdk/user_storage/api.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/airavata_django_portal_sdk/user_storage/api.py b/airavata_django_portal_sdk/user_storage/api.py
index 368019a..c226e08 100644
--- a/airavata_django_portal_sdk/user_storage/api.py
+++ b/airavata_django_portal_sdk/user_storage/api.py
@@ -84,7 +84,7 @@ def save(request, path, file, name=None, content_type=None, storage_resource_id=
         resp = _call_remote_api(request,
                                 "/user-storage/~/{path}",
                                 path_params={"path": path},
-                                params={"experiment-id": experiment_id},
+                                data={"experiment-id": experiment_id},
                                 method="post",
                                 files=files)
         data = resp.json()
@@ -320,7 +320,7 @@ def delete_dir(request, path, storage_resource_id=None, experiment_id=None):
         resp = _call_remote_api(request,
                                 "/user-storage/~/{path}",
                                 path_params={"path": path},
-                                params={"experiment-id": experiment_id},
+                                data={"experiment-id": experiment_id},
                                 method="delete",
                                 raise_for_status=False)
         _raise_404(resp, f"File path does not exist {path}")
@@ -337,7 +337,7 @@ def delete_user_file(request, path, storage_resource_id=None, experiment_id=None
         resp = _call_remote_api(request,
                                 "/user-storage/~/{path}",
                                 path_params={"path": path},
-                                params={"experiment-id": experiment_id},
+                                data={"experiment-id": experiment_id},
                                 method="delete",
                                 raise_for_status=False)
         _raise_404(resp, f"File path does not exist {path}")
@@ -654,7 +654,7 @@ def create_user_dir(request, path="", dir_names=(), create_unique=False, storage
         resp = _call_remote_api(request,
                                 "/user-storage/~/{path}",
                                 path_params={"path": path},
-                                params={"experiment-id": experiment_id},
+                                data={"experiment-id": experiment_id},
                                 method="post")
         json = resp.json()
         # 'path' is a new response attribute, for backwards compatibility check if it exists first

[airavata-django-portal-sdk] 02/02: Version bump to 1.1.dev5

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal-sdk.git

commit 4ce71c91c10ec885cae759afa65761e454b66d5a
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Mon Jul 26 13:02:18 2021 -0400

    Version bump to 1.1.dev5
---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 15e9836..a88a579 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ def read(fname):
 
 setup(
     name="airavata-django-portal-sdk",
-    version="1.1.dev4",
+    version="1.1.dev5",
     url="https://github.com/apache/airavata-django-portal-sdk",
     author="Apache Software Foundation",
     author_email="dev@airavata.apache.org",