Skip to content

Commit 7bdf38d

Browse files
author
Val Brodsky
committed
Docstring update
1 parent 94f85ff commit 7bdf38d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

libs/labelbox/src/labelbox/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2419,7 +2419,8 @@ def get_labeling_service_dashboards(
24192419
search_query: A list of search filters representing the search
24202420
24212421
NOTE:
2422-
- Retrieves all projects for the organization or as filtered by the search query.
2422+
- Retrieves all projects for the organization or as filtered by the search query
2423+
- INCLUDING those not requesting labeling services
24232424
- Sorted by project created date in ascending order.
24242425
24252426
Examples:

libs/labelbox/tests/unit/test_unit_search_filters.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from datetime import datetime
2+
from labelbox.schema.labeling_service import LabelingServiceStatus
23
from labelbox.schema.search_filters import IntegerValue, RangeOperatorWithSingleValue, DateRange, RangeOperatorWithValue, DateRangeValue, DateValue, IdOperator, OperationType, OrganizationFilter, ProjectStageFilter, SharedWithOrganizationFilter, TagFilter, TaskCompletedCountFilter, TaskRemainingCountFilter, WorkforceRequestedDateFilter, WorkforceRequestedDateRangeFilter, WorkforceStageUpdatedFilter, WorkforceStageUpdatedRangeFilter, WorkspaceFilter, build_search_filter
34
from labelbox.utils import format_iso_datetime
45

@@ -12,12 +13,13 @@ def test_id_filters():
1213
WorkspaceFilter(operator=IdOperator.Is,
1314
values=["clphb4vd7000cd2wv1ktu5cwa"]),
1415
TagFilter(operator=IdOperator.Is, values=["tag"]),
15-
ProjectStageFilter(operator=IdOperator.Is, values=["requested"]),
16+
ProjectStageFilter(operator=IdOperator.Is,
17+
values=[LabelingServiceStatus.Requested]),
1618
]
1719

1820
assert build_search_filter(
1921
filters
20-
) == '[{operator: "is", values: ["clphb4vd7000cd2wv1ktu5cwa"], type: "organization_id"}, {operator: "is", values: ["clphb4vd7000cd2wv1ktu5cwa"], type: "shared_with_organizations"}, {operator: "is", values: ["clphb4vd7000cd2wv1ktu5cwa"], type: "workspace"}, {operator: "is", values: ["tag"], type: "tag"}, {operator: "is", values: ["requested"], type: "stage"}]'
22+
) == '[{operator: "is", values: ["clphb4vd7000cd2wv1ktu5cwa"], type: "organization_id"}, {operator: "is", values: ["clphb4vd7000cd2wv1ktu5cwa"], type: "shared_with_organizations"}, {operator: "is", values: ["clphb4vd7000cd2wv1ktu5cwa"], type: "workspace"}, {operator: "is", values: ["tag"], type: "tag"}, {operator: "is", values: ["REQUESTED"], type: "stage"}]'
2123

2224

2325
def test_date_filters():

0 commit comments

Comments
 (0)