Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias Assign NameStore Call NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore TupleLoad Str Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults vararg kwarg body Expr Str ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str body Return NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler body Return TupleLoad NameLoad Dict Str Dict Str Str For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword Dict Str Str Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return TupleLoad Num Dict decorator_list NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad Call NameLoad keyword Dict Str Str Dict Str Str NameLoad Str Dict Str Str NameLoad Str decorator_list Assign NameStore Call NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Str Dict Str Str NameLoad Str Dict Str Str NameLoad Str Dict Str Str TupleLoad Str Str Str Str Str Str Dict Str Str NameLoad Str Dict Str Str NameLoad Str Assign NameStore Str Assign NameStore TupleLoad Str Str Str FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Return Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Return Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults vararg kwarg body ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str body Return NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore CompareEq NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad attr If BoolOpOr BoolOpAnd AttributeLoad NameLoad attr NameLoad BoolOpAnd AttributeLoad NameLoad attr NameLoad BoolOpAnd AttributeLoad NameLoad attr NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad vararg kwarg body Expr Str If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Str For NameStore NameLoad body If CompareIn NameLoad TupleLoad Str Str Str Str Str body Assign NameStore BinOpBitOr NameLoad Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword NameLoad keyword NameLoad If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareIn NameLoad TupleLoad Str Str Str body Assign NameStore Call NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Return NameLoad orelse Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Pass decorator_list NameLoad Call NameLoad NameLoad Call NameLoad keyword Dict Str Str Dict Str Str NameLoad Str Dict Str Str NameLoad Str keyword Dict Str Str Dict Str Str NameLoad Str Dict Str Str NameLoad Str Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Pass decorator_list NameLoad Call NameLoad NameLoad NameLoad Call NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults vararg kwarg body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Return NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad handlers ExceptHandler type NameLoad body Return NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr BinOpBitOr BinOpBitOr Call NameLoad keyword Str Call NameLoad keyword Str Call NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad attr If NameLoad body Return TupleLoad Num Dict Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad Num Dict AttributeLoad NameLoad attr NameLoad decorator_list NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad Call NameLoad keyword Dict Str Str Str Dict Str Str NameLoad Str Dict Str Str NameLoad Str Dict Str Str NameLoad Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad For NameStore TupleLoad Str Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return TupleLoad Num Dict AttributeLoad NameLoad attr NameLoad decorator_list NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad Call NameLoad keyword Dict Str Str Dict Str Str TupleLoad Str Str Str Str Str Str Dict Str Str NameLoad Str decorator_list Assign NameStore Call NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore Str Assign NameStore Dict Str Str Dict Str Str NameLoad Str Dict Str Str NameLoad Str Assign NameStore TupleLoad Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Return Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore CompareEq NameLoad AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword NameLoad attr If UnaryOpNot BoolOpOr NameLoad NameLoad NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad If NameLoad body Assign NameStore BinOpBitOr NameLoad Call NameLoad keyword NameLoad If NameLoad body Assign NameStore BinOpBitOr NameLoad Call NameLoad keyword NameLoad If NameLoad body Assign NameStore BinOpBitOr NameLoad Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpBitAnd BinOpBitAnd Call NameLoad keyword NameLoad Call NameLoad keyword NameLoad BinOpBitOr BinOpBitOr Call NameLoad keyword Str Call NameLoad keyword Str Call NameLoad keyword Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Expr Str Pass decorator_list NameLoad NameLoad Call NameLoad NameLoad NameLoad Call NameLoad keyword Dict Str Str Dict Str Str NameLoad Str Dict Str Str NameLoad Str Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore TupleLoad Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad Str Str NameLoad vararg kwarg body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad If UnaryOpNot NameLoad body Assign NameStore Str If UnaryOpNot NameLoad body Assign NameStore Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad If NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad NameLoad Index Str keyword NameLoad If SubscriptLoad NameLoad Index Str body Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad body Return TupleLoad NameLoad Dict Str Dict Str Str ExceptHandler type NameLoad body Return TupleLoad NameLoad Dict Str Dict Str Str Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return TupleLoad Num Dict AttributeLoad NameLoad attr NameLoad decorator_list NameLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad Call NameLoad keyword Dict Str Dict Str Str NameLoad Str keyword Dict Str Str Str Str Dict Str Str NameLoad Str Dict Str Str NameLoad Str Dict Str Str NameLoad Str Dict Str Str NameLoad Str decorator_list Assign NameStore Call NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults vararg kwarg body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Assign NameStore Call NameLoad NameLoad If BoolOpOr CompareLtE NameLoad Num CompareGt NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list
N/A N/A json django.core.exceptions ObjectDoesNotExist django.db.models Q djblets.db.query LocalDataQuerySet djblets.util.decorators augment_method_from djblets.webapi.decorators webapi_login_required webapi_request_fields webapi_response_errors djblets.webapi.errors DOES_NOT_EXIST INVALID_FORM_DATA NOT_LOGGED_IN PERMISSION_DENIED reviewboard.diffviewer.models FileDiff reviewboard.extensions.base get_extension_manager reviewboard.reviews.models BaseComment Review reviewboard.webapi.decorators webapi_check_local_site reviewboard.webapi.resources resources WebAPIResource reviewbotext.models ManualPermission Profile Tool ToolExecution N/A EXTENSION_MANAGER N/A get_extension_manager ToolResource N/A WebAPIResource N/A N/A Resource for workers to update the installed tools list.

    This API endpoint isn't actually RESTful, and just provides a place
    for workers to "dump" their entire list of installed tools as a single
    POST. A GET request will not actually return a list of tools.
     N/A name tool N/A allowed_methods N/A GET POST N/A model_object_key id N/A uri_object_key tool_id create N/A N/A self request hostname tools N/A args kwargs N/A N/A Add to the list of installed tools.

        The hostname field should contain the hostname the celery
        worker is using (This should be unique to that worker under
        proper configuration).

        The tools field should contain a JSON payload describing the
        list of tools installed at the worker. This payload should
        correspond to a list of dictionaries, with each dictionary
        corresponding to a tool. The dictionary should contain the
        following information:
            - 'name': The descriptive name of the tool.
            - 'entry_point': The entry point corresponding to the tool.
            - 'version': The tool version.
            - 'description': Longer description of the tool.
            - 'tool_options': A JSON payload describing the custom
              options the tool provides (see reviewbotext.models.Tool
              for a description of this payload).

        Here is an example tools payload:
        [
          {
            "name": "Example Tool 1",
            "entry_point": "example1",
            "version": "1.0.1",
            "description": "An example tool.",
            "tool_options": "[]"
          },
          {
            "name": "Example Tool 2",
            "entry_point": "example2",
            "version": "1.2.1",
            "description": "The second example tool.",
            "tool_options": "[]"
          },
        ]

        TODO: Use the hostname.
         reviewbotext.extension ReviewBotExtension N/A extension N/A N/A EXTENSION_MANAGER get_enabled_extension N/A ReviewBotExtension id N/A N/A N/A N/A request user id N/A N/A extension settings N/A user N/A N/A PERMISSION_DENIED N/A N/A N/A tools N/A N/A json loads tools N/A N/A N/A N/A N/A INVALID_FORM_DATA N/A fields N/A dtools Malformed JSON. N/A tool tools N/A N/A N/A obj created N/A N/A N/A Tool objects get_or_create entry_point N/A tool N/A entry_point version N/A tool N/A version defaults N/A name description tool_options in_last_update N/A tool N/A name N/A tool N/A description N/A tool N/A tool_options True N/A N/A N/A created N/A N/A obj in_last_update N/A N/A N/A obj in_last_update True N/A N/A N/A obj save N/A N/A 201 N/A N/A webapi_login_required webapi_check_local_site N/A webapi_response_errors DOES_NOT_EXIST INVALID_FORM_DATA NOT_LOGGED_IN PERMISSION_DENIED N/A webapi_request_fields required N/A hostname tools N/A type description str The hostname of the POSTing worker. N/A type description str A JSON payload containing tool information. N/A N/A tool_resource N/A ToolResource ToolExecutionResource N/A WebAPIResource N/A N/A Provides information on an execution of a tool profile.

    This resource contains information about a tool (with a selected profile)
    that is currently being executed or has been executed on a diff revision of
    a review request.

    A tool profile can be executed on the same diff revision of a review
    request multiple times, provided that all previous executions failed or
    timed-out. A new ToolExecution object is created for every execution
    attempt, so we can keep track of information like the number of attempts.
     N/A name tool_execution N/A model ToolExecution N/A model_object_key id N/A uri_object_key tool_execution_id N/A fields N/A id profile_id status result last_updated N/A type description int The ID of the tool execution. N/A type description int The ID of the tool profile being executed. N/A type description N/A Q R S F T The current status of the tool execution. N/A type description str A JSON payload containing the result of the tool execution. If the execution succeeded, this will contain the review. If the execution failed, this will contain the error message for the failure. N/A type description str The date and time that the tool execution was last updated by the worker executing the tool profile. N/A last_modified_field last_updated N/A allowed_methods N/A GET POST PUT has_access_permissions N/A N/A self request tool_execution N/A args kwargs N/A N/A N/A _review_request_is_accessible request N/A tool_execution review_request_id N/A tool_execution diff_revision args kwargs N/A has_list_access_permissions N/A N/A self request N/A args kwargs N/A N/A N/A _review_request_is_accessible request N/A N/A N/A request GET get review-request-id N/A N/A N/A request GET get diff-revision args kwargs N/A has_modify_permissions N/A N/A self request N/A args kwargs N/A reviewbotext.extension ReviewBotExtension N/A extension N/A N/A EXTENSION_MANAGER get_enabled_extension N/A ReviewBotExtension id N/A N/A N/A N/A request user id N/A N/A extension settings N/A user N/A N/A True N/A False N/A has_create_permissions N/A N/A self request review_request profile N/A args kwargs N/A reviewbotext.extension ReviewBotExtension N/A extension N/A N/A EXTENSION_MANAGER get_enabled_extension N/A ReviewBotExtension id N/A user N/A request user N/A N/A N/A user id N/A N/A extension settings N/A user N/A N/A True N/A N/A N/A N/A review_request is_accessible_by user N/A N/A False N/A local_site N/A N/A self _get_local_site N/A N/A kwargs get local_site_name N/A is_admin N/A user is_superuser N/A is_submitter N/A user N/A review_request submitter N/A is_in_manual_group N/A N/A N/A N/A N/A ManualPermission objects filter user user local_site local_site allow True exists N/A N/A N/A N/A profile allow_manual is_admin N/A N/A profile allow_manual_submitter is_submitter N/A N/A profile allow_manual_group is_in_manual_group N/A N/A True N/A False N/A get_queryset N/A N/A self request is_list N/A False args kwargs N/A N/A Returns a queryset for ToolExecution models.

        By default, this returns all tool executions.

        If the queryset is being used for a list of tool execution resources,
        this is filtered for tool executions matching the given review request
        ID and diff revision arguments. This can be further filtered by the
        optional arguments.
         N/A is_list N/A N/A review_request_id N/A N/A N/A request GET get review-request-id N/A diff_revision N/A N/A N/A request GET get diff-revision N/A q N/A Q N/A N/A status N/A request GET N/A N/A statuses N/A N/A N/A N/A N/A request GET get status split , N/A status statuses N/A N/A N/A status N/A Q R S F T N/A N/A q N/A q N/A Q status status N/A queryset N/A N/A N/A N/A self model objects filter q review_request_id review_request_id diff_revision diff_revision N/A N/A get-latest N/A request GET N/A N/A get_latest N/A N/A N/A request GET get get-latest N/A N/A get_latest N/A 1 true True N/A N/A profiles N/A set N/A tool_executions N/A N/A tool_execution queryset N/A N/A profile N/A N/A tool_execution profile id N/A N/A profile profiles N/A N/A N/A N/A profiles add profile N/A N/A N/A tool_executions append tool_execution N/A queryset N/A LocalDataQuerySet tool_executions N/A queryset N/A N/A N/A N/A N/A N/A self model objects all N/A get_list N/A N/A self request N/A args kwargs N/A N/A Returns all tool executions on a diff revision of a review request.

        The resulting list can be further filtered down to match a given set of
        execution statuses, or to return only the latest tool execution for
        each profile.
         N/A N/A webapi_check_local_site N/A webapi_response_errors PERMISSION_DENIED N/A webapi_request_fields required N/A review-request-id diff-revision N/A type description int The ID of the review request. N/A type description int The diff revision of the review request. optional N/A status get-latest N/A type description str Filter tool executions by one or more comma-separated execution statuses. N/A type description bool Whether only the latest tool executions for each profile will be listed. N/A augment_method_from WebAPIResource get N/A N/A self request N/A args kwargs N/A N/A Returns information on a particular tool execution.

        This will include the ID of the profile being executed, the execution
        status, the date and time the worker executing the tool last checked
        in, and the result of the execution (if any).
         N/A N/A webapi_check_local_site N/A webapi_response_errors DOES_NOT_EXIST PERMISSION_DENIED N/A augment_method_from WebAPIResource create N/A N/A self request review_request_id diff_revision profile_id N/A args kwargs N/A N/A Creates a new tool execution, and adds it to the message queue.

        The tool execution will be created only if there are no previous
        executions of the given profile, or if all previous executions failed
        or timed out.

        After this, an execution request (containing the tool execution ID,
        tool profile ID, review request ID, and diff revision) will be added to
        the message queue.
         N/A N/A N/A review_request N/A N/A N/A resources review_request get_object request review_request_id review_request_id args kwargs N/A N/A N/A ObjectDoesNotExist N/A N/A DOES_NOT_EXIST N/A N/A N/A _diff_revision_exists review_request diff_revision N/A N/A DOES_NOT_EXIST N/A N/A N/A profile N/A N/A N/A Profile objects get pk profile_id N/A N/A N/A ObjectDoesNotExist N/A N/A DOES_NOT_EXIST N/A N/A N/A N/A self has_create_permissions request review_request profile N/A N/A N/A N/A self _no_access_error N/A request user N/A execution_exists N/A N/A N/A N/A N/A N/A self model objects filter N/A N/A N/A Q status Q N/A Q status R N/A Q status S profile profile review_request_id review_request_id diff_revision diff_revision exists N/A execution_exists N/A N/A N/A 409 N/A N/A tool_execution N/A N/A N/A N/A self model objects create profile profile review_request_id review_request_id diff_revision diff_revision status Q N/A N/A N/A tool_execution save reviewbotext.extension ReviewBotExtension N/A extension N/A N/A EXTENSION_MANAGER get_enabled_extension N/A ReviewBotExtension id N/A request_payload N/A tool_execution_id tool_profile_id review_request_id diff_revision N/A tool_execution id profile_id review_request_id diff_revision N/A N/A N/A extension notify request_payload N/A N/A 201 N/A N/A self item_result_key tool_execution N/A webapi_login_required webapi_check_local_site N/A webapi_response_errors DOES_NOT_EXIST NOT_LOGGED_IN PERMISSION_DENIED N/A webapi_request_fields required N/A review_request_id diff_revision profile_id N/A type description int The ID of the review request. N/A type description int The diff revision of the review request. N/A type description int The ID of the tool profile to execute. update N/A N/A self request N/A args kwargs N/A N/A Updates an existing tool execution.

        Only Review Bot workers are allowed to update a tool execution's
        information.

        The last-updated time will automatically be updated upon a PUT request.
        Optionally, the worker can update the execution status, or store the
        result of the execution (the completed review or error details) as a
        JSON blob.
         N/A N/A N/A N/A self has_modify_permissions request N/A N/A N/A N/A self _no_access_error N/A request user N/A N/A N/A tool_execution N/A N/A self get_object request args kwargs N/A N/A N/A ObjectDoesNotExist N/A N/A DOES_NOT_EXIST N/A field N/A status result N/A N/A value N/A N/A kwargs get field None N/A N/A value None N/A N/A N/A setattr tool_execution field value N/A N/A N/A tool_execution save N/A N/A 200 N/A N/A self item_result_key tool_execution N/A webapi_login_required webapi_check_local_site N/A webapi_response_errors DOES_NOT_EXIST NOT_LOGGED_IN PERMISSION_DENIED N/A webapi_request_fields optional N/A status result N/A type description N/A Q R S F T The status of the tool execution. N/A type description str A JSON payload containing the result of the tool execution. N/A N/A tool_execution_resource N/A ToolExecutionResource ToolExecutableResource N/A WebAPIResource N/A N/A Provides information on executable tool profiles.

    This resource allows us to get a list of tool profiles that the user can
    manually execute on the given diff revision of a review request. A tool
    profile is executable if the user has manual permissions for it, and if
    there are no existing tool executions or if all previous tool executions
    failed or timed out.
     N/A name tool_executable N/A model Profile N/A model_object_key id N/A fields N/A id name N/A type description int The ID of the tool profile. N/A type description str The name of the tool profile. N/A allowed_methods N/A GET has_list_access_permissions N/A N/A self request N/A args kwargs N/A N/A N/A _review_request_is_accessible request N/A N/A N/A request GET get review-request-id N/A N/A N/A request GET get diff-revision args kwargs N/A get_queryset N/A N/A self request N/A args kwargs N/A N/A Returns a queryset containing all executable tool profiles. N/A user N/A request user N/A review_request_id N/A N/A N/A request GET get review-request-id N/A diff_revision N/A N/A N/A request GET get diff-revision N/A local_site N/A N/A self _get_local_site N/A N/A kwargs get local_site_name N/A is_admin N/A user is_superuser N/A is_submitter N/A user N/A N/A N/A N/A resources review_request get_object request review_request_id review_request_id args kwargs submitter N/A is_in_manual_group N/A N/A N/A N/A N/A ManualPermission objects filter user user local_site local_site allow True exists N/A N/A N/A is_admin is_submitter is_in_manual_group N/A N/A N/A N/A N/A Profile objects none N/A q N/A Q N/A is_admin N/A N/A q N/A q N/A Q allow_manual True N/A is_submitter N/A N/A q N/A q N/A Q allow_manual_submitter True N/A is_in_manual_group N/A N/A q N/A q N/A Q allow_manual_group True N/A queryset N/A N/A N/A Profile objects filter q local_site local_site N/A queryset N/A N/A queryset exclude N/A N/A N/A Q toolexecution__review_request_id review_request_id N/A Q toolexecution__diff_revision diff_revision N/A N/A N/A Q toolexecution__status Q N/A Q toolexecution__status R N/A Q toolexecution__status S N/A queryset N/A get_serializer_for_object N/A N/A self obj N/A N/A N/A self N/A get_list N/A N/A self request N/A args kwargs N/A N/A Returns a list of executable tool profiles.

        For some given review request and diff revision, a tool profile is
        executable if the user has manual permissions for it, and if there are
        no existing tool executions or if all previous tool executions failed
        or timed out.

        Each tool profile has rules on who can manually execute it (admins,
        the submitter of the review request, users in the ManualPermission
        group).
         N/A N/A webapi_login_required webapi_check_local_site N/A webapi_response_errors NOT_LOGGED_IN PERMISSION_DENIED N/A webapi_request_fields required N/A review-request-id diff-revision N/A type description int The ID of the review request. N/A type description int The diff revision of the review request. N/A augment_method_from WebAPIResource N/A N/A tool_executable_resource N/A ToolExecutableResource ReviewBotReviewResource N/A WebAPIResource N/A N/A Resource for creating reviews with a single request.

    This resource allows Review Bot to create a full review using a single
    POST request. Using the traditional API would result in a high volume
    of requests from Review Bot, creating stress on the server.

    Each user may only have one review draft per request at a time. This
    resource allows concurrent review of a single request by creating
    the review and publishing it in a single transaction.
     N/A name review_bot_review N/A allowed_methods N/A GET POST create N/A N/A self request review_request_id ship_it body_top body_bottom diff_comments N/A False None args kwargs N/A N/A Creates a new review and publishes it. N/A N/A N/A review_request N/A N/A N/A resources review_request get_object request review_request_id review_request_id args kwargs N/A N/A N/A ObjectDoesNotExist N/A N/A DOES_NOT_EXIST N/A N/A body_top N/A N/A body_top N/A N/A body_bottom N/A N/A body_bottom N/A new_review N/A N/A N/A Review objects create review_request review_request user N/A request user body_top body_top body_bottom body_bottom ship_it ship_it N/A diff_comments N/A N/A N/A N/A diff_comments N/A N/A json loads diff_comments N/A comment diff_comments N/A N/A filediff N/A N/A N/A FileDiff objects get pk N/A comment N/A filediff_id diffset__history__review_request review_request N/A N/A comment N/A issue_opened N/A N/A issue True N/A issue_status N/A BaseComment OPEN N/A N/A issue False N/A issue_status None N/A N/A N/A N/A new_review comments create filediff filediff interfilediff None text N/A comment N/A text first_line N/A comment N/A first_line num_lines N/A comment N/A num_lines issue_opened issue issue_status issue_status N/A N/A N/A KeyError N/A N/A N/A INVALID_FORM_DATA N/A fields N/A diff_comments Diff comments were malformed N/A N/A ObjectDoesNotExist N/A N/A N/A INVALID_FORM_DATA N/A fields N/A diff_comments Invalid filediff_id N/A N/A N/A new_review publish user N/A request user N/A N/A 201 N/A N/A self item_result_key new_review N/A webapi_login_required webapi_check_local_site N/A webapi_response_errors DOES_NOT_EXIST INVALID_FORM_DATA NOT_LOGGED_IN PERMISSION_DENIED N/A webapi_request_fields required N/A review_request_id N/A type description int The ID of the review request. optional N/A ship_it body_top body_bottom diff_comments N/A type description bool Whether or not to mark the review "Ship It!" N/A type description str The review content above the comments. N/A type description str The review content below the comments. N/A type description str A JSON payload containing the diff comments. N/A N/A review_bot_review_resource N/A ReviewBotReviewResource _review_request_is_accessible N/A N/A request review_request_id diff_revision N/A args kwargs N/A N/A Returns True if the user has access to the review request and diff.

    If the review request or the diff revision does not exist, we return False.
     N/A N/A N/A review_request N/A N/A N/A resources review_request get_object request review_request_id review_request_id args kwargs N/A N/A N/A ObjectDoesNotExist N/A N/A False N/A N/A N/A _diff_revision_exists review_request diff_revision N/A N/A False N/A N/A N/A review_request is_accessible_by N/A request user N/A _diff_revision_exists N/A N/A review_request diff_revision N/A N/A N/A Returns True if the diff revision for the review request exists. N/A num_diffs N/A N/A N/A N/A N/A N/A review_request diffset_history diffsets get_query_set count N/A diff_revision N/A int diff_revision N/A N/A N/A diff_revision 0 N/A diff_revision num_diffs N/A N/A False N/A True N/A