RecordCommentRead
class flow_api.record_comment_read.RecordCommentRead(select=None, cls=None, init=None, by='id', allow_normal=True, allow_deleted=False, commit=False, record_comment_id=<class 'flow_api.system.NotSet'>, debug=False)
Base class: Row
Per-identity read marker for a record_comment.
Store-when-read: a row means "this identity has read this comment". A
missing row means the comment is unread for that identity (the positive
marker convention, so the common "unread" query is a reverse exists
semijoin: comments with no read row for the viewing identity). The marker's
identity_id is always the acting identity — a caller can only mark their
own read state.
Permission contract:
- create: caller needs READ on the parent comment;
identity_idis forced to the acting identity (never taken from the request body). The UNIQUE(record_comment_id, identity_id) constraint keeps it one row per (comment, identity). - read / update / delete: only the owning identity (identity_id == caller),
or an internal caller. Deleting a marker re-marks the comment unread;
updating refreshes
read_at.
Parameters
| Name | Type | Description |
|---|---|---|
| allow_deleted | bool | |
| allow_normal | bool | |
| by | str | |
| cls | Optional | |
| commit | bool | |
| debug | bool | if set, the content of the data being written will be logged. |
| init | Optional | |
| record_comment_id | Union | Reference to the comment that was read. |
| select | Optional |
Constants
RESOURCE = record_comment_readMethods
clone
details
delete
details
duplicate
details
exists
details
export
details
get
details
get_dict
details
identity
details
record_comment
details
restore
details
save
details