[PATCH 4 of 4] [storages] try to handle the BFSS case (WIP)

Arthur Lutz arthur.lutz at logilab.fr
Fri Sep 20 15:49:54 CEST 2019


On 20/09/2019 15:47, Denis Laxalde wrote:
> Arthur Lutz a écrit :
>> When migrating a file that is stored on BFSS the resulting s3 bucket
>> contains the filename, I'm trying to send the actual content to s3.
> I'm not sure this case is handled. After all, there has always been only
> one kind of storage. So maybe it'll have to handle by hand, on
> the application side (not this cube), where it's known from/to which
> storage the migration is done.
>
> On the other hand, I'm not sure "entity_added" is the right method for
> this. From looking at docstrings, it seems that "migrate_entity" is more
> appropriate. (But I don't know this code very well, so double check ;))

I'm happy to move the code around, but is there a way to "detect" bfss
storage ? This try/except and check 'startswith' doesn't feel very right.

Arthur




More information about the cubicweb-devel mailing list