Skip to content

Media: Bulk End Point Back End Updates #2151

Open
@zcolah

Description

@zcolah

Brief

We want to add functionality to:

Bulk delete files in a folder
We provide a list of file names right now
And then we bulk delete these files

Bulk moving
We provide a list of file names
And then we bulk move these files

Questions

Can we please add bulk delete and bulk move end points?
https://media-api.zesty.org/#34f7cce0-e105-d363-bde9-18486d40195d
This is the Batch Files Delete endpoint but is using filenames instead of ZUIDs
https://googleapis.dev/nodejs/storage/latest/File.html#move
This is the google-cloud/storage API to move files from one location to another
Not yet implemented in media-storage-service
If yes, how complex would this be?
New endpoint for Bulk move
When we do this, can we please migrate to using ZUIDs instead of file names?
We are using https://googleapis.dev/nodejs/storage/latest/Bucket.html#file and https://googleapis.dev/nodejs/storage/latest/File.html#delete to get and delete the file/media so filename is used in our endpoints as we are directly using google-cloud/storage
What limits do we need to be aware of for bulk moves and deletes?
For bulk delete, media-storage-service allows for 10 files at a time (http://bluebirdjs.com/docs/api/promise.map.html#map-option-concurrency) until a Promise is resolved

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureAdditional functionality that should be added to Zesty

    Type

    No type

    Projects

    Status

    Project Ideas

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions