Store archive metadata in a morango table
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Python
- 星标
- 15
- 派生
- 27
- 平均合并
- 6 天 44 分钟
- 30 天内合并 PR
- 13
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
learningequality/morango 的其他 Issue
-
Document disk export and deprecations in the changelog可能重新可做 @ArpitaSamanta10 于 14 天前认领,目前没有进行中的 PR。 未关闭DEV: dev-ops DEV: distributions DOCS: developer
难度 1/5 1-3 小时 新手友好度 78/100
learningequality/morango#387 · 2 条评论 ·
维护者通常 1 天内回复
-
DEV: backend DEV: dev-ops TAG: unit tests
难度 2/5 1-3 小时 新手友好度 70/100
learningequality/morango#385 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 54/100
learningequality/morango#425 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 1/100
learningequality/morango#424 ·
维护者通常 1 天内回复
-
DEV: backend P2 - normal
难度 4/5 3-5 天 新手友好度 35/100
learningequality/morango#416 · 2 条评论 ·
维护者通常 1 天内回复
查看 learningequality/morango 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
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"可能已有人在做 @cestercian 今天认领。 未关闭comp/cli P2 type/bug
难度 2/5 1-3 小时 新手友好度 75/100
NousResearch/hermes-agent#162259 · 1 条评论 ·
维护者通常 1 天内回复
-
bug enhancement
难度 1/5 1 小时以内 新手友好度 90/100
AOSSIE-Org/PictoPy#1802 · 2 条评论 ·
维护者通常 3 天内回复
-
community-request
难度 2/5 1-3 小时 新手友好度 78/100
NVIDIA-NeMo/Run#727 ·
维护者通常 1 天内回复
-
bot-triaged module: higher order operators module: pickle module: pt2-dispatcher oncall: pt2 triaged
难度 2/5 1-3 小时 新手友好度 75/100
pytorch/pytorch#207247 · 1 条评论 ·
维护者通常 1 天内回复