[feature]: Page comments in the public API

Aperta
#10,422 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
django, python
Ambito
api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
TypeScript
Stelle
63k
Fork
6.5k
Merge medio
2g 16h
PR unite (30g)
70

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di makeplane/plane

Tutte le issue di makeplane/plane

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.