WICG / storage-buckets

API proposal for managing multiple storage buckets
https://wicg.github.io/storage-buckets/explainer
Other
44 stars 20 forks source link

Should buckets be nestable? #40

Open evanstade opened 2 years ago

evanstade commented 2 years ago

In alignment with the goal of enabling data organization by web developers ("Allow web applications to evict slices of data"), should buckets be nestable?

Hypothetical use case: an email client that allows multiuser sign-in, and organizes each user's data into multiple buckets, such as drafts and inbox. The drafts bucket would be a child bucket of the user-1234 bucket.

Behavior: deleting a parent bucket should delete child buckets. Unspecified bucket policies should default to parent bucket policy values.

asutherland commented 2 years ago

I think the answer here would depend on reaching a conclusion for the discussion in https://github.com/WICG/storage-buckets/pull/36 about the minimum and maximum number of buckets we expect browsers to support. If we can only guarantee origins 10 buckets, there's little point in adding a concept of hierarchy and having to deal with the dependency graph that would result.