peer_reviewed_article: Featured image stored in the wrong place
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 活跃
- 技术栈
- javascript, xml
- 领域
- backend
调研方向
Read ensureStructure and editView to trace where the featured image element is created and stored in the XML. The issue leaves open whether to migrate existing data on save, add schema versioning and migrations, or document the structure, so first investigate the data format and the crash context in #519. Done means choosing and implementing a consistent storage approach that handles existing articles.
由索引模型根据 Issue 内容生成。
描述
The ensureStructure method creates a FIELD_NAME_FEATURED_IMAGE below article/content, but the editView (and functions it calls) put the featured image directly below the root of the XML.
This means every article has an empty featured image element below context, and another one at the root, which potentially causes crashes (see #519), but also needs to be fixed somehow.
Maybe some migration approach (on save? Or we need to add schema versioning and active migrations). Or accept that this datastructure is weird and document it?
- 主要语言
- JavaScript
- 星标
- 5
- 派生
- 9
- 平均合并
- 19 小时 10 分钟
- 30 天内合并 PR
- 12
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PlanBCode/hypha 的其他 Issue
-
Component: User interface Impact: Low Level: Easy Pagetype: Peer reviewed article Type: Bug Value: Visitors
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
Impact: Medium Level: Easy Type: Bug Value: Users
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
Impact: Low Level: Easy Pagetype: Festival Type: Bug Value: Coders
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复
-
Impact: Medium Level: Easy Pagetype: Mailinglist Type: Bug Value: Users
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 1 天内回复
-
Impact: Low Level: Easy Type: Bug Value: Coders
难度 1/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
相似的 Issue
-
44-x-y bug :beetle:
难度 1/5 1 小时以内 新手友好度 82/100
electron/electron#55528 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
react/react-native#59699 ·
维护者通常 2 天内回复
-
status: needs triage
难度 2/5 1-3 小时 新手友好度 72/100
mastra-ai/mastra#29053 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement triage
难度 2/5 1-3 小时 新手友好度 70/100
fjaeckel/seriesoftubes#230 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复