Make built-in models abstract
還沒有人認領這個 Issue。
評估
研究方向
先整理內建模型、StreamField blocks、CODERED_FRONTEND_* settings、snippet 處理方式,以及 issue 中提到的專案範本。確認抽象模型會如何影響 snippet 選擇、navbar/footer templates 和 migration;完成的條件是有一份文件化設計,在不引入過多 boilerplate 的情況下避免專案特定的 setting migration。
由索引模型根據 Issue 內容生成。
描述
If we want to continue using CODERED_FRONTEND_* settings (which I think we do, they will be the foundation of themes), we will have to make everything that uses our streamfield blocks abstract.
The issue is, many coderedcms models use streamfield blocks that pull values from CODERED_FRONTEND_* settings. Which means if you change one of these settings in your project, it triggers a migration in coderedcms. Which is a bad practice and leads to endless migrations.
This fits in with the paradigm we have been following with the page types. Provide beefy abstract models, and provide a very basic concrete model boilerplate in the project template.
One caveat to making the snippets abstract, is that we will no longer be able to provide a snippet chooser, or hard-code templates that pull in navbar/footer snippets. So this will have to be thought through to figure out how to gracefully handle all of this without re-defining everything in the project template (which would be too much boilerplate I think).
Anyhow, this pretty major regarding future stability. Implementing it will inevitably be a breaking change. But there is no other way to have dynamic blocks and themes. So I think it is necessary.
- 主要語言
- Python
- 星號
- 762
- 分支
- 153
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
coderedcorp/coderedcms 的其他 Issue
-
Type: Bug
難度 1/5 1 小時以內 新手友好度 78/100
coderedcorp/coderedcms#714 ·
-
Type: Bug
難度 1/5 1 小時以內 新手友好度 65/100
coderedcorp/coderedcms#711 ·
-
Type: Bug
難度 3/5 1-2 天 新手友好度 45/100
coderedcorp/coderedcms#713 · 1 則留言 ·
-
Form submissions return 404 with Wagtail 7.x due to FormMixin isinstance check可能已有人在做 @bradrice 於 110 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 55/100
coderedcorp/coderedcms#710 · 4 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 58/100
coderedcorp/coderedcms#709 ·
查看 coderedcorp/coderedcms 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
huggingface/deep-rl-class#723 ·
-
[tool] bug: Qwen3 XML tool parser raises on `...` argument values (Ellipsis is not JSON serializable)可能已有人在做 @super-yuki 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 87/100
verl-project/verl#8559 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 75/100
TencentCloud/octop-harness#228 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
google/osv-scalibr#2585 ·
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
NousResearch/hermes-agent#149323 ·
維護者通常 1 天內回覆