FileAPI migration - is Blobstore impacted ? (python)

65 views
Skip to first unread message

Patrice FERLET

unread,
May 28, 2015, 3:23:07 AM5/28/15
to google-a...@googlegroups.com
Hi,

We've developped a website months ago and we've recieved a notification about the FileAPI removal. We are checking what is the impact of the migration but a question happends.

For google.appengine.api.files it's clear: we've got to migrate.

But, what about google.appengine.api.files.blobstore.

If google.appengine.api.files.blobstore changed, is there an impact on :
- google.appengine.api.blobstore ?
- google.appengine.ext.blobstore ?

Documentation is only alerting about the google.appengine.api.files, but we need to be sure...

And, is there a way to test our migration without to have any surprise when the files api will be removed. Any way to disable this api in local ?

Thanks for your help.

Ryan (Cloud Platform Support)

unread,
May 28, 2015, 11:16:50 AM5/28/15
to google-a...@googlegroups.com, met...@gmail.com
Salutations Patrice,

Anything falling into the 'google.appengine.api.files' will be depreciated. That includes 'google.appengine.api.files.blobstore'. The other two blobstore packages are safe and have already been tested.

As for testing you have three options:

1) Using unit tests and not enable the init_files_stub (best option though longest to setup)
2) Add critical warnings / throw errors to all the files api found in the google.appengine.api.files package
3) Deletes the files package (not really recommended but an option)

Please note anytime a Files API call is made there will be a warning:

 The Files API is deprecated and will soon be removed. Please use the Google Cloud Storage Client library instead. Migration documentation is available here: https://cloud.google.com/appengine/docs/python/googlecloudstorageclient/migrate

If you simply check your logs for those entries it will give you an idea if you are still using the deprecated library or not.

Patrice FERLET

unread,
May 28, 2015, 2:11:05 PM5/28/15
to google-a...@googlegroups.com, met...@gmail.com
Thanks for this complete answer. 
I will take a look. We already use unit tests but not as explained in the given page. But it seems to be a good solution.

BTW: our app is very complex... I pray to have the time to change code parts ;)

Ryan (Cloud Platform Support)

unread,
May 28, 2015, 3:03:12 PM5/28/15
to google-a...@googlegroups.com, met...@gmail.com
It was my pleasure! I hope so as well! I wish you all the best ;)
Reply all
Reply to author
Forward
0 new messages