Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bulk list operations #72

Open
coleshaw opened this issue May 18, 2020 · 1 comment
Open

Bulk list operations #72

coleshaw opened this issue May 18, 2020 · 1 comment

Comments

@coleshaw
Copy link
Contributor

Related to #69, perhaps we just need a set of general bulk operation endpoints, like bulk list, bulk delete, and bulk copy. Maybe we implement as needed?

@graft
Copy link
Contributor

graft commented May 25, 2020

The list endpoint folder#list is pretty wonky right now - it returns a hash containing { files, folders }. This is no kind of object, really, and doesn't include, for example, the folder_name or any other folder metadata.
You may also list buckets with bucket#list, which gives you a bunch of Metis::Bucket#to_hash.
Meanwhile, there is no file#list at all, the only way to get file information is by listing the parent folder.

These could (should) all be consolidated into an endpoint that worked more like ls, that is, you could give it an arbitrary list of paths, and metis would return a listing of those paths. We can dispense with folder#list, bucket#list, etc., since we could have a single query that lists both a folder and all the buckets, or some of the buckets, some specific files, etc.

Finally, this endpoint should support some sort of globbing in paths, allowing you to match multiple entries with a single argument. These are all just appended to the output list, which is a json description of each of the returned objects, whether bucket, file, or folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants