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 multiple ZARR_DATA_BASE_PATHs #19

Closed
tcompa opened this issue Aug 21, 2024 · 2 comments
Closed

Support multiple ZARR_DATA_BASE_PATHs #19

tcompa opened this issue Aug 21, 2024 · 2 comments

Comments

@tcompa
Copy link
Collaborator

tcompa commented Aug 21, 2024

If we want to proceed with fractal-analytics-platform/fractal-web#527, and meanwhile also keep the possibility of mounting other shares (apart from the main one, which will be mounted under the same local path as the remote one), then it would be useful to accept multiple ZARR_DATA_BASE_PATH values.

Side note: right now, we can provide either an absolute path (which should be within ZARR_DATA_BASE_PATH) or a relative one (which will be made absolute by using ZARR_DATA_BASE_PATH as a base path). If we support multiple values for ZARR_DATA_BASE_PATH, then we'll always have to provide an absolute path. This is clearly not a big deal, especially if the URL is created within fractal-web (as in fractal-analytics-platform/fractal-web#527).

@tcompa
Copy link
Collaborator Author

tcompa commented Aug 21, 2024

Note that what this issue (together with fractal-analytics-platform/fractal-web#527 and https://github.com/fractal-analytics-platform/fractal-deployments/issues/16) suggests that we'll need to review strategies for mapping remote paths to local ones. This is not a critical issue for the current exploratory phase of fractal-vizarr-viewer, but we'll eventually have to settle for some option (and we'll have to decide where this option is implemented, together with any kind of authorization rule).

@tcompa
Copy link
Collaborator Author

tcompa commented Aug 26, 2024

For the specific use case I had in mind, this is not so relevant.
We can have ZARR_DATA_BASE_PATH=/something/, then mounted zarrs are in /something/myuser/x.zarr but we can still place some testing folder in /something/else/.

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

1 participant