Potential enhancements to the Smart 404 Feature

未关闭
#802 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
php
领域
search, web-dev

调研方向

从 #801 中的 Smart 404 实现开始,检查 ElasticPress 代码,寻找用于验证活动 Elasticsearch 连接的 helper。然后查看现有的 404-template helper 函数和 FSE block 入口。完成的标准是:该功能在 setup 之前检查连接,并且 Smart 404 结果可以通过 block 进行渲染。

由索引模型根据 Issue 内容生成。

描述

help wanted
Is your enhancement related to a problem? Please describe.

In #801, a new Smart 404 Feature was added. As mentioned in a comment, I think there are a few additional things we can look to do.

  • Add better check to ensure ElasticPress isn't just installed and active but is actually configured properly. I don't think we need to go so far as to check that our mapping exists (and thus a sync has run) but ensuring it's actually connected to elasticsearch before we allow the Feature to be set up would be nice. I'd suggest we look at the ElasticPress code to see if there's a helper function or method we can use
  • We have some helper functions that can be hardcoded into a theme's 404 template to render results but to better support FSE themes, would be nice to introduce a Smart 404 block
Designs

No response

Describe alternatives you've considered

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
主要语言
PHP
星标
714
派生
68
平均合并
4 小时 32 分钟
30 天内合并 PR
23

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

10up/classifai 的其他 Issue

查看 10up/classifai 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。