@@ -30,6 +30,7 @@ def dict(self, *args, **kwargs):
30
30
class OperationType (Enum ):
31
31
"""
32
32
Supported search entity types
33
+ Each type corresponds to a different filter class
33
34
"""
34
35
Organization = 'organization_id'
35
36
SharedWithOrganization = 'shared_with_organizations'
@@ -44,7 +45,7 @@ class OperationType(Enum):
44
45
45
46
class IdOperator (Enum ):
46
47
"""
47
- Supported operators for ids
48
+ Supported operators for ids like org ids, workspace ids, etc
48
49
"""
49
50
Is = 'is'
50
51
@@ -67,7 +68,7 @@ class RangeOperatorWithValue(Enum):
67
68
68
69
class OrganizationFilter (BaseSearchFilter ):
69
70
"""
70
- Filter for organization
71
+ Filter for organization to which projects belong
71
72
"""
72
73
operation : Literal [OperationType .Organization ] = OperationType .Organization
73
74
operator : IdOperator
@@ -76,7 +77,7 @@ class OrganizationFilter(BaseSearchFilter):
76
77
77
78
class SharedWithOrganizationFilter (BaseSearchFilter ):
78
79
"""
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 )
80
81
"""
81
82
operation : Literal [
82
83
OperationType .
@@ -106,6 +107,7 @@ class TagFilter(BaseSearchFilter):
106
107
class ProjectStageFilter (BaseSearchFilter ):
107
108
"""
108
109
Filter labelbox service / aka project stages
110
+ Stages are: requested, in_progress, completed etc. as described by LabelingServiceStatus
109
111
"""
110
112
operation : Literal [OperationType .Stage ] = OperationType .Stage
111
113
operator : IdOperator
@@ -192,6 +194,7 @@ class WorkforceStageUpdatedRangeFilter(BaseSearchFilter):
192
194
class TaskCompletedCountFilter (BaseSearchFilter ):
193
195
"""
194
196
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
195
198
"""
196
199
operation : Literal [
197
200
OperationType .TaskCompletedCount ] = OperationType .TaskCompletedCount
@@ -200,7 +203,7 @@ class TaskCompletedCountFilter(BaseSearchFilter):
200
203
201
204
class TaskRemainingCountFilter (BaseSearchFilter ):
202
205
"""
203
- Filter for remaining tasks count
206
+ Filter for remaining tasks count. Reverse of TaskCompletedCountFilter
204
207
"""
205
208
operation : Literal [
206
209
OperationType .TaskRemainingCount ] = OperationType .TaskRemainingCount
0 commit comments