@@ -30,6 +30,7 @@ def dict(self, *args, **kwargs):
3030class OperationType (Enum ):
3131 """
3232 Supported search entity types
33+ Each type corresponds to a different filter class
3334 """
3435 Organization = 'organization_id'
3536 SharedWithOrganization = 'shared_with_organizations'
@@ -44,7 +45,7 @@ class OperationType(Enum):
4445
4546class IdOperator (Enum ):
4647 """
47- Supported operators for ids
48+ Supported operators for ids like org ids, workspace ids, etc
4849 """
4950 Is = 'is'
5051
@@ -67,7 +68,7 @@ class RangeOperatorWithValue(Enum):
6768
6869class OrganizationFilter (BaseSearchFilter ):
6970 """
70- Filter for organization
71+ Filter for organization to which projects belong
7172 """
7273 operation : Literal [OperationType .Organization ] = OperationType .Organization
7374 operator : IdOperator
@@ -76,7 +77,7 @@ class OrganizationFilter(BaseSearchFilter):
7677
7778class SharedWithOrganizationFilter (BaseSearchFilter ):
7879 """
79- Find project shared with organization (i.e. not belonging to any of organization's workspace )
80+ Find project shared with the organization (i.e. not having this organization as a tenantId )
8081 """
8182 operation : Literal [
8283 OperationType .
@@ -106,6 +107,7 @@ class TagFilter(BaseSearchFilter):
106107class ProjectStageFilter (BaseSearchFilter ):
107108 """
108109 Filter labelbox service / aka project stages
110+ Stages are: requested, in_progress, completed etc. as described by LabelingServiceStatus
109111 """
110112 operation : Literal [OperationType .Stage ] = OperationType .Stage
111113 operator : IdOperator
@@ -192,6 +194,7 @@ class WorkforceStageUpdatedRangeFilter(BaseSearchFilter):
192194class TaskCompletedCountFilter (BaseSearchFilter ):
193195 """
194196 Filter for completed tasks count
197+ A task maps to a data row. Task completed should map to a data row in a labeling queue DONE
195198 """
196199 operation : Literal [
197200 OperationType .TaskCompletedCount ] = OperationType .TaskCompletedCount
@@ -200,7 +203,7 @@ class TaskCompletedCountFilter(BaseSearchFilter):
200203
201204class TaskRemainingCountFilter (BaseSearchFilter ):
202205 """
203- Filter for remaining tasks count
206+ Filter for remaining tasks count. Reverse of TaskCompletedCountFilter
204207 """
205208 operation : Literal [
206209 OperationType .TaskRemainingCount ] = OperationType .TaskRemainingCount
0 commit comments