ProjectTech4DevAI / ProjectTech4DevAI/kaapi-backend
Knowledge Base: Organize data by project
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 18
- Forks
- 10
- Merge medio
- 2 d 20 h
- PR fusionados (30 d)
- 14
Descripción
Is your feature request related to a problem?
All knowledge base endpoints currently use a single bucket, making it difficult to perform a clean data flush for NGOs, resulting in offboarding issues.
Describe the solution you'd like
- Organize data into per-project-ID folders within the same bucket (following the audio setup).
- Implement a migration script for existing documents and a legacy fallback option in the code (check top level, then project level).
- Conduct testing on staging first.
- Defer the bring-your-own-bucket/credentials aspect until TAP.
Priority
- P2, September in-person ops/infra sprint.
Original issue
Context
For knowledge base enpoints, everything currently lands in a single bucket. If an NGO uses the product for two years and then requests a full data flush, that's very hard to honour cleanly — an offboarding liability.
Fix
- Same bucket, per-project-ID folders (audio already does this; documents may not).
- Provide a migration script for existing documents and a legacy fallback in code (check top level, then project level).
- Test on staging first.
- The bring-your-own-bucket/credentials half of this is deferred until TAP.
Priority
- P2, September in-person ops/infra sprint.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Empieza rastreando los endpoints de la base de conocimientos y comparando su estructura de almacenamiento con la configuración de audio existente. Define el script de migración y el comportamiento de búsqueda de datos legacy, y después prueba la migración y el fallback en staging; el trabajo estará terminado cuando los documentos usen carpetas por ID de proyecto, mientras que los documentos existentes de nivel superior sigan siendo accesibles.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- backend, infrastructure
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Tranquilo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100