Store archive metadata in a morango table
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 78/100
Línea de trabajo
Read morango/models/core.py and the latest migration, morango/migrations/0005_self_ref_order.py, then inspect the existing model tests. Add coverage for creating and reading an ArchiveManifestEntry and verify the key primary-key behavior; run makemigrations --check and the full test suite to confirm the migration only adds the new table.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Overview
A new ArchiveManifestEntry model stores the metadata of an archive as key and value rows. This work is part of milestone M5 (archive feature).
Background & Motivation
An archive must describe itself: the morango version that wrote it, its instance identity, its capabilities, its profile, and its filter. A later import needs these facts to use the same capabilities as the writer. The archive is a Django-managed database, so the metadata table is a morango model with a migration.
In host databases, this table stays empty.
Design: spec. Plan: implementation plan, Task 15.
Description & Expected Outcomes
The model has two fields. key is the primary key, with a maximum length of 64. value is text that holds a JSON value. Migration 0006_archivemanifestentry adds the table and depends on 0005_self_ref_order.
Deliverables & Contracts
The change delivers these capabilities:
- The
ArchiveManifestEntrymodel inmorango/models/core.py. - The migration
morango/migrations/0006_archivemanifestentry.py.
Acceptance Criteria
- A test creates and reads an entry, and
keyis the primary key. -
tests/testapp/manage.py makemigrations --checkpasses. - The migration only adds a table.
- The full test suite passes.
Technical Pointers & Architecture
- Target Components / Context:
morango/models/core.py,morango/migrations/. - Related Patterns: The latest migration is
morango/migrations/0005_self_ref_order.py. - Data Model & Schema Considerations: This is a new table with no foreign keys. It is safe to add to existing databases.
- Resilience & Failure Modes: None.
Notes & Tradeoffs
- Dependencies: Blocked by: #375 (end of the refactor milestones). Blocks: #377.
- Testing Requirements: A model test and the migration check.
- Tradeoffs & Alternatives Considered: A table that only archives create stays outside the migration history. The spec rejects it because the archive version check depends on that history.
- Compatibility & Migrations: Host databases get an empty table.
Metadata
- Complexity: Low
- Target Branch: release-v0.9.x
AI Usage
Drafted with Claude (Claude Code) from the approved design spec and implementation plan. The author reviewed the requirements, and the code references were checked against the release-v0.9.x codebase.
- Lenguaje dominante
- Python
- Estrellas
- 15
- Forks
- 27
- Merge medio
- 6 d 44 min
- PR fusionados (30 d)
- 13
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la 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.
Más de learningequality/morango
-
Document disk export and deprecations in the changelogQuizá libre de nuevo @ArpitaSamanta10 la tomó hace 14 días y no hay ningún pull request abierto. AbiertoDEV: dev-ops DEV: distributions DOCS: developer
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
learningequality/morango#387 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
DEV: backend DEV: dev-ops TAG: unit tests
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
learningequality/morango#385 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 54/100
learningequality/morango#425 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 1/100
learningequality/morango#424 ·
Los mantenedores suelen responder en 1 día
-
DEV: backend P2 - normal
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
learningequality/morango#416 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de learningequality/morango
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
hermes hooks doctor smoke test never checks the hook exit code — a crashing hook (exit=1) renders ✓ "ran clean" and "All shell hooks look healthy"Posiblemente ocupada @cestercian la tomó hoy. Abiertocomp/cli P2 type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
NousResearch/hermes-agent#162259 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug enhancement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
AOSSIE-Org/PictoPy#1802 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
-
community-request
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NVIDIA-NeMo/Run#727 ·
Los mantenedores suelen responder en 1 día
-
bot-triaged module: higher order operators module: pickle module: pt2-dispatcher oncall: pt2 triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
pytorch/pytorch#207247 · 1 comentario ·
Los mantenedores suelen responder en 1 día