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

Support getDirectory() for non-default bucket #112

Open
a-sully opened this issue Apr 7, 2023 · 3 comments
Open

Support getDirectory() for non-default bucket #112

a-sully opened this issue Apr 7, 2023 · 3 comments

Comments

@a-sully
Copy link
Collaborator

a-sully commented Apr 7, 2023

See https://wicg.github.io/storage-buckets/#issue-25ffaa8c

The issue mentioned in the storage buckets spec is that we need a version of this algorithm which works for any bucket. You'll notice if you drill down into "obtain a local storage bottle map" that it currently assumes the "default" bucket. This just means passing an additional parameter.

We do not currently have a way to go from bottle to bucket for any storage endpoint.

Originally posted by @evanstade in #110 (comment)

@a-sully
Copy link
Collaborator Author

a-sully commented Apr 7, 2023

whatwg/storage#2 is the meta-bug for making non-default buckets work, and it seems like addressing that is a prerequisite for adding another parameter to "obtain a local storage bottle map" to make it work for non-default buckets

@evanstade
Copy link

Adding another parameter to "obtain a local storage bottle map" is (part of) what addresses that metabug, no?

@a-sully
Copy link
Collaborator Author

a-sully commented Apr 7, 2023

Correct. Apologies, that was poor wording on my part. My understanding of the steps are:

  • Decide how to make non-default buckets work Multiple buckets storage#2
  • Specify how non-default buckets will work:
    • Add another parameter to "obtain a local storage bottle map" to make it work for non-default buckets
    • etc...
  • Update this spec (and other storage specs) to take into account non-default buckets:
    • Use the new "obtain a local storage bottle map" algorithm in getDirectory()
    • etc...

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

No branches or pull requests

2 participants