Store archive metadata in a morango table
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 78/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Python
- Sterne
- 15
- Forks
- 27
- Ø Merge
- 6 T. 44 Min.
- Gemergte PRs (30 T.)
- 13
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus learningequality/morango
-
Document disk export and deprecations in the changelogEvtl. wieder frei @ArpitaSamanta10 hat das vor 14 Tagen übernommen, und es ist kein Pull Request offen. OffenDEV: dev-ops DEV: distributions DOCS: developer
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 78/100
learningequality/morango#387 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
DEV: backend DEV: dev-ops TAG: unit tests
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
learningequality/morango#385 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 54/100
learningequality/morango#425 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 1/100
learningequality/morango#424 ·
Maintainer antworten meist innerhalb von 1 Tag
-
DEV: backend P2 - normal
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
learningequality/morango#416 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in learningequality/morango
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Maintainer antworten meist innerhalb von 1 Tag
-
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"Evtl. vergeben @cestercian hat das heute übernommen. Offencomp/cli P2 type/bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
NousResearch/hermes-agent#162259 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug enhancement
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
AOSSIE-Org/PictoPy#1802 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 3 Tagen
-
community-request
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
NVIDIA-NeMo/Run#727 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bot-triaged module: higher order operators module: pickle module: pt2-dispatcher oncall: pt2 triaged
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
pytorch/pytorch#207247 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag