View Editor Logs
The following method is available on the Project class to retrieve Editor Logs.start_time and end_time are required parameters, while the rest are optional filters.
For a description of every event and its properties, see the Editor Logs reference. To see how those properties are named in the SDK, see Read Events with the SDK.
View Task Actions
Task actions can be retrieved using the following method on the Project class.after is a required parameter, while the rest are optional filters.
Task actions come from a separate endpoint and use a different list of actions from the task events in the Editor Logs reference. Use the tables below for
get_task_actions().get_task_actions() returns the following action types. Import them with from encord.analytics import TaskActionType.
Each task action includes the following attributes:
Use Cases
Get History of a Label
Approval and Rejection Rates
The following script prints the approval and rejection rates for users in a Project.Find Reviewer in Consensus Projects
Exported labels don’t record who approved them. When a reviewer approves an annotator’s label in a Consensus Project, the label keeps the annotator as its creator. Use the editor logs to see who made each review decision. Review decisions are logged as the following actions:
Each log entry returned by the SDK includes:
actor_user_email: The user who performed the action.project_user_role: That user’s role in the Project.workflow_stage_titleandworkflow_stage_type: The stage the action was taken in.branch_name: The branch the action was taken on.
get_editor_logs()returns each review action with the reviewer’s email, their Project role, the Workflow stage type, and the branch. It returns logs for a maximum range of 30 days per request.get_task_actions()returns task-level actions only. Each one includes the reviewer’s email, the Workflow stage, and the task, but not the reviewer’s role or the branch. Use it when you only need to know who approved each task.
From version 0.2.0 of the SDK,
project.workflow raises WrongProjectTypeError for Projects whose Workflow is available only through project.workflow_v3. Check project.has_workflow before you use project.workflow. For Projects that support project.workflow_v3, see Workflows (workflow_v3).
