def from_wal( cls, offset: int, columnnames: Sequence[str], columnvalues: Sequence[Any], ) -> GroupedMessageRow: raw_data = dict(zip(columnnames, columnvalues)) return cls( offset=offset, project_id=raw_data['project_id'], id=raw_data['id'], record_deleted=False, record_content=GroupMessageRecord( status=raw_data['status'], last_seen=parse_postgres_datetime(raw_data['last_seen']), first_seen=parse_postgres_datetime(raw_data['first_seen']), active_at=(parse_postgres_datetime(raw_data['active_at']) if raw_data['active_at'] else None), first_release_id=raw_data['first_release_id'], ))
def from_wal( cls, offset: int, columnnames: Sequence[str], columnvalues: Sequence[Any], ) -> GroupAssigneeRow: raw_data = dict(zip(columnnames, columnvalues)) return cls( offset=offset, record_deleted=False, project_id=raw_data["project_id"], group_id=raw_data["group_id"], record_content=GroupAssigneeRecord( date_added=parse_postgres_datetime(raw_data["date_added"]), user_id=int(raw_data["user_id"]) if raw_data["user_id"] is not None else None, team_id=int(raw_data["team_id"]) if raw_data["team_id"] is not None else None, ), )