guqing

Results 272 comments of guqing

这个问题与这个插件的实现方式有关,它向 Halo 中注册了 Watcher 而 Halo 没有提供这种 Watcher 的移除方法,等待此 Issue https://github.com/halo-dev/halo/issues/2719 被解决时会向这个插件提 Issue 适配。

/area core /priority important-soon

目前插件已经支持 Reconciler 功能 https://github.com/halo-dev/halo/pull/3789 ,插件适配它即可,因此我将关闭此 issue /close

@JohnNiang 有时间处理这个 issue 吗,我可以帮忙

> /cc @halo-dev/sig-halo any ideas? 我认为可行

增加 AnnotationSetting 自定义模型用于保存模型 annotations 的 form schema,可以在使用时通过 targetRef 查询到一些列 fromSchemas 进行特定资源扩展设置的表单渲染。 ```yaml apiVersion: v1alpha1 kind: AnnotationSetting metadata: name: a-name labels: # plugin.halo.run/plugin-name: fake-plugin theme.halo.run/theme-name: fake-theme halo.run/target-ref: posts.content.halo.run spec: targetRef: group:...

有些 List 查询可能无法避免,是否需要在下个版本优先考虑建立索引的问题,比如获取某篇文章的所有 Snapshot 记录,获取评论下的回复等,这些 List 查询每次 Reconcile 时都会扫一次表很耗时且浪费。 如果能提供建立索引关系的能力,比如文章 A 关联了 S1...S5 条 SnapShot 有映射关系,则 List 时可以一次得到 names 在 get 会快很多。如果索引还能持久化比如到一个新表或者用 rocksdb 等,那么启动时 Reconciler 的执行就不会阻塞主题端的访问,Reconciler 会慢慢去更新数据或索引。

后续或许可以提供一个类似于 Summary tab 这样的,描述最多只是一段话,不适合放太多字

/milestone 2.4.x /remove-priority important-longterm