You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 591de69
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .changeset/36071-comment-threads-resolved.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,8 @@ Metadata-protocol: none
9
9
10
10
`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.
11
11
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.
14
14
-**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.
15
15
-**A reply reopens.** A reply posted into a resolved thread sets the thread back to unresolved.
16
16
-**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.
Copy file name to clipboardExpand all lines: .changeset/36075-comments-resolved.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,10 @@ Skills-docs: none — no skill under `skills/**` teaches the console's comment p
14
14
15
15
The desktop record page's comment panel (objectstack#36075) gains the resolved threads #36071 stores:
16
16
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.
18
18
- 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.
19
19
- A reply into a resolved thread shows the thread reopened, as the platform stores it.
20
20
- 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.
22
22
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.
Copy file name to clipboardExpand all lines: .changeset/36186-36191-comment-doors.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,3 +22,8 @@ The desktop comment panel follows the doors:
22
22
23
23
- ✓ 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.
24
24
- 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