[feature]: Page comments in the public API

未关闭
#10,422 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
django, python
领域
api

调研方向

Start with apps/api/plane/app/urls/page.py and apps/api/plane/db/models/page.py, which the issue identifies as the page routes and models; compare the work item comment endpoints to understand the requested pattern. The issue also reports that page comment requests currently return 404. Done means adding list, retrieve, create, update, and delete page comment API operations with comment_html and access.

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

描述

Is there an existing issue for this?
  • I have searched the existing issues
Summary

Pages are the only major resource without a comment API. The public REST API supports comments on work items and on release changelogs, but a page exposes only get/update/archive/delete, description, versions, duplicate, lock and attachment operations. Please add a page comment resource — list, retrieve, create, update, delete under .../pages/<page_id>/comments/, with comment_html and an access field, mirroring the work item comment endpoints.

Why should this be worked on?

Pages hold the artifacts that get reviewed — PRDs, HLDs, specs — and review feedback has nowhere to go through the API. Today a reviewer either edits the page body (destroying history and the document) or opens a separate work item that then drifts from the page it comments on.

Verified on preview:

  • apps/api/plane/app/urls/page.py registers pages, favorite, archive/unarchive, lock/unlock, access, description, versions, duplicate and live-access routes. There is no comments route.
  • apps/api/plane/db/models/page.py defines Page, PageLog, PageLabel, ProjectPage and PageVersion. There is no comment model, so there is nothing for an endpoint to serve.
  • GET/POST .../pages/<page_id>/comments/ returns 404 on both v1 and v2, with and without a trailing slash, at project and workspace scope. The web app's own API path is session-cookie authenticated and cannot be reached with an X-API-Key.
主要语言
TypeScript
星标
63k
派生
6.5k
平均合并
2 天 16 小时
30 天内合并 PR
70

环境准备

从这里开始

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

makeplane/plane 的其他 Issue

查看 makeplane/plane 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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