Skip to content

fix(helpdesk): 删除 faq_image 孤儿 + notification list 幻影(#380)#409

Merged
foxzool merged 1 commit into
mainfrom
fix/issue-380-helpdesk-phantom-cleanup
Jul 10, 2026
Merged

fix(helpdesk): 删除 faq_image 孤儿 + notification list 幻影(#380)#409
foxzool merged 1 commit into
mainfrom
fix/issue-380-helpdesk-phantom-cleanup

Conversation

@foxzool

@foxzool foxzool commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Summary

  • 删除 faq/faq_image 孤儿模块(与 faq/image 生产代码重复,从未 re-export / 挂到 Faq);保留 image(含 wiremock e2e)。
  • 删除 catalog 中不存在的 notification/list 幻影 API:list.rsNotification::list()、公开 re-export、HelpdeskApiV1::NotificationList
  • CHANGELOG Breaking:无迁移路径;FAQ 图片继续用 Faq::image()

Test plan

  • cargo test -p openlark-helpdesk --all-features(151 unit + 21 contract)
  • cargo clippy -p openlark-helpdesk --all-targets --all-features -- -Dwarnings
  • 源码无 faq_image mod / NotificationList / ListNotification* 残留
  • CI 全绿

Closes #380


Note

Medium Risk
Breaking public API removals in helpdesk; impact is limited because removed symbols were orphans or undocumented phantoms, but any external code calling Notification::list() or faq_image will fail to compile.

Overview
Breaking cleanup in openlark-helpdesk after catalog/e2e alignment (#351): removes APIs that were never valid or reachable on the public surface.

Removes the duplicate faq/faq_image module (same behavior as faq/image, never re-exported or exposed on Faq). FAQ images stay on Faq::image() and HelpdeskApiV1::FaqImage (wiremock e2e unchanged).

Removes the phantom notification/list surface (GET /open-apis/helpdesk/v1/notifications): list.rs, Notification::list(), ListNotification* re-exports, and HelpdeskApiV1::NotificationList. The eight catalog-backed notification endpoints remain.

CHANGELOG records no migration for list (no Feishu catalog/docs); callers on list must drop that usage. FAQ image callers should use Faq::image() only.

Reviewed by Cursor Bugbot for commit 66f3170. Bugbot is set up for automated code reviews on this repo. Configure here.

…380)

Delete the unused faq_image duplicate of faq/image, and remove the
catalog-missing notification list API (endpoint enum, accessor, re-exports).
Breaking: no migration path for the phantom list surface.
@cursor

cursor Bot commented Jul 10, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_dc3cc57a-1bf5-49d2-8469-811b17ab2648)

@foxzool
foxzool merged commit 689d8bb into main Jul 10, 2026
119 checks passed
@foxzool
foxzool deleted the fix/issue-380-helpdesk-phantom-cleanup branch July 10, 2026 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] helpdesk 清理:faq_image 重复孤儿模块 + notification list 疑似幻影 API

1 participant