Skip to main content
Version: 12 - TBD

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_id is 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

NameTypeDescription
allow_deletedbool
allow_normalbool
bystr
clsOptional
commitbool
debugboolif set, the content of the data being written will be logged.
initOptional
record_comment_idUnionReference to the comment that was read.
selectOptional

Constants

RESOURCE = record_comment_read

Methods

clone

delete

duplicate

exists

export

get

get_dict

identity

record_comment

restore

save