Skip to content

Commit 591de69

Browse files
committed
docs(changeset): leave the #36071 and #36075 notes as written and carry their corrections in this PR's own note
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgUH1jEKbDzYRc4nghq
1 parent e262cfd commit 591de69

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

‎.changeset/36071-comment-threads-resolved.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Metadata-protocol: none
99

1010
`sys_comment` gains three columns on the top-level comment of a thread: `is_resolved` (boolean, default `false`), `resolved_by` (the user who resolved it) and `resolved_at` (when). A thread is a top-level comment together with its replies.
1111

12-
- **Resolve and reopen** by updating `is_resolved` on the top-level comment through the data API, or through the resolution door (`PUT /api/v1/comments/:id/resolution`, added in the same release). An update that names `is_resolved` on a reply is refused, `VALIDATION_ERROR` / 400.
13-
- **Who may.** Anyone who may comment on the record (who can read it) may resolve and reopen its threads (maintainer ruling record 7063285032, option A). On the data API, an update that changes nothing but `is_resolved` is admitted without the author-or-record-editor rule, but the platform's row floor (`owner_only_writes`) runs first and admits a rank-and-file member's update of the rows they created alone: through the data API such a member resolves only the threads they started, and an administrator resolves any. The resolution door admits everyone who can read the thread, members included, and writes `is_resolved` alone. Any other change to a comment still needs its author or an editor of the record, and the floor. A caller who cannot read the record gets the not-visible refusal, on a reply too.
12+
- **Resolve and reopen** by updating `is_resolved` on the top-level comment through the data API. An update that names `is_resolved` on a reply is refused, `VALIDATION_ERROR` / 400.
13+
- **Who may.** Anyone who may comment on the record (who can read it) may resolve and reopen its threads (maintainer ruling record 7063285032, option A). This is the one widening: an update that changes nothing but `is_resolved` is admitted without the author-or-record-editor rule. Any other change to a comment still needs its author or an editor of the record. Resolving is an update, so a permission set that grants `create` but not `edit` on `sys_comment` can post comments but cannot resolve or reopen threads. A caller who cannot read the record gets the not-visible refusal, on a reply too.
1414
- **Platform-written.** `resolved_by` and `resolved_at` are stamped by the platform when `is_resolved` turns `true` and cleared when it turns `false`; both are read-only, so a client's value is replaced by the stamp or dropped and reported in `droppedFields`. A new comment is always unresolved.
1515
- **A reply reopens.** A reply posted into a resolved thread sets the thread back to unresolved.
1616
- **Reading.** Unresolved threads of one record: `object_name = OBJECT`, `record_id = ID`, `parent_id = null`, `is_resolved: { $ne: true }`; count the same filter for the record's unresolved-thread count.

‎.changeset/36075-comments-resolved.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ Skills-docs: none — no skill under `skills/**` teaches the console's comment p
1414

1515
The desktop record page's comment panel (objectstack#36075) gains the resolved threads #36071 stores:
1616

17-
- ✓ in a thread's first comment's action row marks the thread resolved: it leaves the list and the comments icon's number, now the unresolved threads, drops by one. ✓ is offered on every thread, the viewer's and anyone else's, and writes through the platform's resolution door (`PUT /api/v1/comments/:id/resolution`, added in the same release), which admits whoever can read the thread (ruling 7063285032).
17+
- ✓ in a thread's first comment's action row marks the thread resolved: it leaves the list and the comments icon's number, now the unresolved threads, drops by one. ✓ is offered under the `sys_comment` update grant: on a thread the viewer started, and on anyone's only where the explain engine admits the viewer's update of a comment they did not write. Today the platform's row floor admits that for administrators, not for rank-and-file members, so a member resolves only the threads they started until the server carries ruling 7063285032 (any reader of the record may resolve) past that floor.
1818
- The filter menu at the panel's top right holds 「显示已解决」, which shows resolved threads marked 「已由 X 解决」 (their ✓ reopens them), and 「只看我参与的」, the threads the viewer started, replied in or is mentioned in. The filter is not stored. With every thread resolved, the panel says so and offers to show them all.
1919
- A reply into a resolved thread shows the thread reopened, as the platform stores it.
2020
- The resolver is named from the people the page already knows (the viewer and the discussion's authors); any other resolver is named by one `sys_user` read of exactly those ids, after the discussion is drawn. Where that read is refused, the mark reads 「已解决」.
21-
- Edit and Delete under More are offered on other members' comments to a viewer the explain engine admits to update the record by id, the server's rule for moderating someone else's comment; Edit also needs the explain engine to admit their update of a comment they did not write (the platform's row floor, `owner_only_writes`, which admits a rank-and-file member's update of the rows they created alone). Both are asked only on a definite allow: pending, a refusal, an error or a deployment without the explain service offers them on the viewer's own comments alone. Their own comments keep them as before.
21+
- Edit and Delete under More are offered on other members' comments to a viewer the explain engine admits to update the record by id, the server's rule for moderating someone else's comment; Edit also needs the explain engine to admit their update of a comment they did not write (the row floor above). Both are asked only on a definite allow: pending, a refusal, an error or a deployment without the explain service offers them on the viewer's own comments alone. Their own comments keep them as before.
2222

23-
Unchanged: no server permission changes (a deployment without the explain service shows Edit on the viewer's own rows only, administrators included); a deployment whose comment rows carry no `is_resolved` shows no ✓ and no filter, and the icon counts every thread; hand-written record pages and the phone keep their feed as before.
23+
Unchanged: no server permission changes (a deployment without the explain service shows ✓ and Edit on the viewer's own rows only, administrators included); a deployment whose comment rows carry no `is_resolved` shows no ✓ and no filter, and the icon counts every thread; hand-written record pages and the phone keep their feed as before.

‎.changeset/36186-36191-comment-doors.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ The desktop comment panel follows the doors:
2222

2323
- ✓ is on every thread, the viewer's and anyone else's, and writes through the resolution door. It no longer asks the explain engine; that probe now gates only Edit on someone else's comment.
2424
- A viewer without the `sys_comment` delete grant (an ordinary member) is offered Delete on their own comments that have no reply, and it goes through the own-comment delete door; a viewer with the grant deletes through the data API as before, others' comments included where they may edit the record.
25+
26+
Corrections to two earlier notes of this release, which stay as written:
27+
28+
- A rank-and-file member now resolves and reopens a colleague's thread through the resolution door; this replaces the #36071 note's line "This is the one widening: an update that changes nothing but `is_resolved` is admitted without the author-or-record-editor rule", because the platform's row floor (`owner_only_writes`) runs first, so through the data API such a member still resolves only the threads they started and an administrator resolves any.
29+
- The desktop comment panel offers ✓ on every thread and writes it through the resolution door; this replaces the #36075 note's line "✓ is offered under the `sys_comment` update grant: on a thread the viewer started, and on anyone's only where the explain engine admits …", and its "Unchanged" line's "a deployment without the explain service shows ✓ and Edit on the viewer's own rows only" now holds for Edit alone.

0 commit comments

Comments
 (0)