Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

已删除的分类信息仍保留在文章的 post.spec.categories 数据中 #7143

Open
3 tasks done
holwell opened this issue Dec 16, 2024 · 2 comments
Open
3 tasks done
Labels
priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.

Comments

@holwell
Copy link

holwell commented Dec 16, 2024

前置条件

  • 已经在 Issues 列表中搜索了相关问题。
  • 这是和 Halo 相关的特性,如果是非项目本身的问题,建议在 Discussions 提交。
  • 如果是插件和主题特性建议,请在对应的插件和主题仓库提交。

你当前使用的版本

2.20.0

描述一下此特性

建议的处理,要么在删除分类时把文章的 spec.categories 相应脏数据清理掉,如果考虑到开销大,那就在文章分类页把已删除但仍保留的分类脏数据展示到编辑页面中,显示“已删除分类”而不是隐藏,让用户自己编辑文章的时候手动删除。

附加信息

No response

@ruibaby ruibaby added the priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done. label Dec 20, 2024
@ruibaby
Copy link
Member

ruibaby commented Dec 20, 2024

目前文章设置分类并没有强关联性,并且不去更新 spec.categories 似乎也没有使用问题。

@holwell
Copy link
Author

holwell commented Dec 21, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/awaiting-more-evidence Lowest priority. Possibly useful, but not yet enough support to actually get it done.
Projects
None yet
Development

No branches or pull requests

2 participants