libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eriks Vitolins (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LIBCLOUD-841) Add Temp-Url-Key arguement for generating CloudFiles TempURL
Date Fri, 29 Jul 2016 05:44:20 GMT

     [ https://issues.apache.org/jira/browse/LIBCLOUD-841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Eriks Vitolins updated LIBCLOUD-841:
------------------------------------
    Description: 
Since TempURLs can be generated locally without communication with the API, it's redundant
and slow for `CloudFilesStorageDriver.ex_get_object_temp_url()` to request the API for the
`temp_url_key` during each call.

I propose an optional argument to allow calls this method to to supply the temp_url_key

ex_get_object_temp_url(self, obj, method='GET', timeout=60):
changed to..
ex_get_object_temp_url(self, obj, method='GET', timeout=60, temp_url_key=None):

If supplied, it would replace the logic for requesting the temp_url_key via the API.


  was:
Since TempURLs can be generated locally without communication with the API, it's redundant
and slow for `CloudFilesStorageDriver.ex_get_object_temp_url()` to request the API for the
`temp_url_key` during each call.

I propose an optional argument to allow calls this method to to supply the temp_url_key

ex_get_object_temp_url(self, obj, method='GET', timeout=60):
changed to..
ex_get_object_temp_url(self, obj, method='GET', timeout=60, temp_url_key=None):

If supplied it would replace the logic for requesting it via the API.



> Add Temp-Url-Key arguement for generating CloudFiles TempURL
> ------------------------------------------------------------
>
>                 Key: LIBCLOUD-841
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-841
>             Project: Libcloud
>          Issue Type: New Feature
>          Components: Storage
>            Reporter: Eriks Vitolins
>              Labels: easyfix, newbie, performance
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Since TempURLs can be generated locally without communication with the API, it's redundant
and slow for `CloudFilesStorageDriver.ex_get_object_temp_url()` to request the API for the
`temp_url_key` during each call.
> I propose an optional argument to allow calls this method to to supply the temp_url_key
> ex_get_object_temp_url(self, obj, method='GET', timeout=60):
> changed to..
> ex_get_object_temp_url(self, obj, method='GET', timeout=60, temp_url_key=None):
> If supplied, it would replace the logic for requesting the temp_url_key via the API.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message