Preview who can read imported documents before sharing changes

未关闭
#1,192 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@zlareb1 已经在做这个了。

开始于 2026年11月23日。

  • #1227 来自 @zlareb1 —— 未关闭

评估

难度
5/5
预计耗时
一周以上
新手友好度
15/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python

调研方向

Start with docs/architecture/document-sources.md — the access modes (~L398) and permission limits (~L817) sections — then the collection sharing header and member controls from #680 and the connected-account selection in #1068. Define the machine-readable preview result first (owner-only, collection-wide, source-permission-checked, unavailable, plus freshness), since API, SDK, CLI and dashboard all share it. Done means synthetic cases for private/team collections, owner-only imports, unsupported ACL evidence and revoked access pass without leaking denied metadata; note PR #1227 is already open here.

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

描述

enhancement help wanted up-for-grabs
Component

Dashboard

Use case

A source owner can read a document in its original service and wants to import it into Loom. They need to know whether a colleague will be able to retrieve the stored copy before adding it to a shared collection or changing that collection's membership.

A connected account, a successful access check and a collection's name do not answer that question. Collection-wide copies and permission-mirrored sources have different sharing behavior, and provider permission support differs.

Describe the solution you'd like

Add a readable access preview backed by a machine-readable server result. Show the rules that determine access to the imported copy before import, source policy changes and collection sharing or parent changes.

Acceptance criteria:

  • Distinguish owner-only, collection-wide, source-permission-checked and unavailable access. Explain whether content is fetched live or copied, and whether future matching items will be included.
  • Show the effect of destination membership and inherited grants. A collection-wide source must explicitly say that its permitted collection readers can read the copy; do not label it as preserving upstream permissions.
  • For mirrored sources, explain that both collection access and a current admitted document permission are required. Show supported permission features and limits, including owner-only behavior or unavailable group expansion, without promising that every provider mirrors the same sharing model.
  • Report unknown or stale permission evidence as such. Distinguish a disconnected account, disabled sync, unsupported permission capability and an access refusal using only information that caller is entitled to see.
  • Preview only selected documents and identities the caller may inspect. Do not expose another person's document titles, identifiers, membership, counts or existence through an access explanation. Where a complete reader list cannot be established, show the rule and limitation rather than inventing one.
  • Revalidate the preview when the account, selected items, destination, membership or parent changes. The preview is explanatory and grants no authority; the mutation and every later read retain server authorization and publication checks.
  • Use the same response through API, supported SDKs, CLI and UI. Show the access policy and an appropriate freshness state on an existing source as well as during setup.
  • Include synthetic cases for private and team collections, a parent that broadens grants, owner-only imported content, unsupported ACL evidence and revoked access. Assert that the explanation neither leaks denied metadata nor promises access the read operation refuses.
Describe alternatives you've considered

A provider logo or Connected badge describes authentication, not the audience of an imported copy. Generic warnings do not tell a user what their selected account, documents and destination will do. A global list of all effective readers can itself reveal private membership and is not always available.

Where the need comes from

The need is mine, an AI tool helped shape the proposal

Additional context

Feature proposal based on the existing source sharing contract, not a claim of a reproduced disclosure. The access modes and permission limits already differ by source and credential mode.

Related destination setup: https://github.com/ClickHouse/loom/issues/1191.

Reuse the existing collection sharing header and member controls from #680. Their collection-level audience does not establish the reader set of each mirrored source document.

Build on #1068 rather than duplicating its connected-account selection or link checks. #1181 addresses an agent reply's intended audience; this issue addresses the audience of source content stored or read through Loom. #869 remains the administrator's control over self-service source registration.

主要语言
Python
星标
263
派生
47
平均合并
14 小时 21 分钟
30 天内合并 PR
873

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

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

ClickHouse/loom 的其他 Issue

查看 ClickHouse/loom 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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