Load files from parent folders in `tfe-open`

未关闭
#110 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
活跃
技术栈
python
领域
cli

调研方向

Start at the tfe-open command entry point and trace how it serves collection and dataset files, resolves external paths, and constructs manifest URLs. Review the acceptance criteria and open questions before choosing how parent directories, malformed or unreachable resources, absolute paths, and security boundaries should be handled. Done means external references are traversed, served from the appropriate parent location, and the opened link points to the nested manifest or collection.

由索引模型根据 Issue 内容生成。

描述

internals new feature

Use Case

Requested by Max. Max would like to load TFE dataset that reference Zarr folders that live outside of the TFE directory (e.g. ../../segmentation.ome.zarr).

Right now, Max is using symlinks to link from inside the TFE dataset folder to the actual Zarr data, but that only works for local files and will not scale to dataset releases.

tfe-open currently serves files directly at the dataset/collection level, and does not support serving files from parent directories. To support this, the tfe-open command would need to traverse all collection/dataset files and check for references to external paths, and then either (1) start a server at the location of each of those paths and fixup the manifest URLs to point to those locations, or (2) start the server in the parent directory.

Acceptance Criteria

  • Have tfe-open traverse collections + datasets to check for paths to external resources (../).
  • tfe-open should start the server at the highest parent directory so it can serve both the dataset files and the external resources.
    • Update the opened link to point to the newly-nested dataset manifest/collection.
  • Throw errors for malformed external resources/unreachable files.

Details

  • Do we need to support absolute filepaths?
  • What happens if the file is on a different filesystem drive?
  • Are there security concerns / will the OS block us from serving files across the entire computer?
  • Move dataset manifest to a tmp/ storage so the manifest can be edited?
主要语言
Python
星标
4
派生
1
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

AllenCell/tfe-data 的其他 Issue

查看 AllenCell/tfe-data 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。