-
Notifications
You must be signed in to change notification settings - Fork 68
[PLT-1306][PLT-1307] Get project list add details part 1 #1770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1ac021c
to
fc2e8df
Compare
|
||
Cuid = Annotated[str, Field(min_length=25, max_length=25)] | ||
|
||
|
||
class LabelingServiceStatus(Enum): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move to a separate package
after: The cursor to use for pagination. | ||
where: A filter to apply to the query. | ||
|
||
NOTE: support for after and search_query are not yet implemented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will implement in the next PR
fc2e8df
to
0701c6d
Compare
GRAPHQL_QUERY_SELECTIONS = """ | ||
id | ||
name | ||
# serviceType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are not supported by the api yet
0701c6d
to
33457ae
Compare
organization_id = client.get_organization().uid | ||
query_str = template.substitute( | ||
labeling_dashboard_selections=GRAPHQL_QUERY_SELECTIONS, | ||
search_query= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for now a hard-coded filter. Next PR will implement dynamic filters
SetUp = 'SET_UP' | ||
Missing = None | ||
|
||
@classmethod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We duplicate this code amongst all enums. Made a note to make a reusable module
33457ae
to
77d86a3
Compare
7bdfe05
to
cf39487
Compare
cf39487
to
9865a60
Compare
""" | ||
result = client.execute(query, {"projectId": project_id}) | ||
if result["projectBoostWorkforce"] is None: | ||
raise ResourceNotFoundError( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is a defensive check, but is this even possible? Just curious
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a defensive check
Description
Stories:
https://labelbox.atlassian.net/browse/PLT-1306
https://labelbox.atlassian.net/browse/PLT-1307
This API is first of 3 to implement support for Project / ProjectList labeling dashboard data in sdk
The spec is defined here https://docs.google.com/spreadsheets/d/17o_8uZMoPfIjNAFQsDx-UNCGYhifcx1mQIvCzMDcw50/edit?gid=0#gid=0
Follow up PR:
Fixes # (issue)
Type of change
Please delete options that are not relevant.
All Submissions
New Feature Submissions
Changes to Core Features