Choose private or team destinations during source setup

Abierto
#1,191 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@zlareb1 ya está trabajando en esto.

Desde el 23/11/2026.

  • #1227 de @zlareb1 — abierto

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
8/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python

Línea de trabajo

A design-scale request that also has an open pull request (#1227) against it, so read that PR first to see what is already in progress. The constraint lives in the source request model at server/knowledge/api/models_sources.py (automatic personal destinations are refused), and the collection/grant contract is described in docs/reference/operations/collection.md. Build on the connected-source form from #1068 rather than rebuilding it, and expect the work to span API, SDKs and CLI before the two-user acceptance scenario can pass.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement help wanted up-for-grabs
Component

Dashboard

Use case

A person wants to bring selected documents into Loom for their own use, and separately maintain a collection of documents shared with a team. Starting from their personal Library should make those two choices clear without requiring them to understand namespace naming or manually provision a destination first.

The automatic personal collection refuses source registrations. Ordinary collections already support grants and inheritance, so removing that restriction is not the required solution.

Describe the solution you'd like

Add a destination step that creates or selects an appropriate ordinary collection before registering a source. Build on the connected-source form in #1068 and the existing collection and grant operations.

Acceptance criteria:

  • Offer a private collection, an existing permitted collection or a new shared collection as destinations. Describe who can read each destination before creation or import. A private destination starts with no broader team grants.
  • From the personal Library, create a separate source-capable collection rather than attaching worker-owned source rows to the automatic personal namespace. Preserve source ownership, retirement and owner-erasure rules.
  • Let a user group several selected sources in one collection and organize collections with the existing hierarchy. A parent change must show inherited access; placing a collection under a shared parent must not continue to display it as private.
  • Reuse existing member roles, invitations or grants for a team destination. Do not invent a second sharing system or treat a display name, tag or folder title as authorization.
  • Explain that sharing a destination does not itself grant permission to mirrored documents. Sources whose explicit policy is collection-wide must say so before registration.
  • Keep target collection, account and selection in the review step. Changing any of them invalidates the access check. Cancellation or an unconfirmed save must not leave an unintended shared destination or silently register a source elsewhere.
  • Expose equivalent destination and membership operations through the API, supported SDKs and CLI. The dashboard must use those operations rather than special browser-only authority.
  • Demonstrate two users with separate private collections and one common collection. Test inherited grants, an unauthorized destination and changing the destination during setup without model calls.
Describe alternatives you've considered

Asking users to create a collection elsewhere and return to source setup is possible but hides the privacy decision. Putting every source into one team collection makes content organization and intended sharing difficult to assess. Allowing sources in the automatic personal collection would bypass an existing lifecycle constraint rather than solve the onboarding problem.

Where the need comes from

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

Additional context

Source-reviewed product workflow, not a reproduced access-control failure. #1068 already covers connected accounts, selected links, editing source items and interrupted saves; do not rebuild those controls here.

Existing collection creation and sharing already shipped in #77, #471 and #680. This request is the source-setup destination step, not another collection or membership implementation.

The source request model refuses automatic personal destinations. The collection contract supports ordinary collections and parent grant inheritance. #1181 separately covers choosing knowledge for the audience of an agent's reply.

Lenguaje dominante
Python
Estrellas
263
Forks
47
Merge medio
14 h 21 min
PR fusionados (30 d)
873

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ClickHouse/loom

Todos los issues de ClickHouse/loom

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.