[feature]: Page comments in the public API

Đang mở
#10,422 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
django, python
Lĩnh vực
api

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
TypeScript
Star
63k
Fork
6.5k
Merge trung bình
2 ngày 16 giờ
Pull request đã merge (30 ngày)
70

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của makeplane/plane

Tất cả issue của makeplane/plane

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.