Skip to content

Commit f905e94

Browse files
author
Adrian Chang
committed
save
1 parent ec3b7ec commit f905e94

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

libs/labelbox/src/labelbox/schema/user_group.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ def get_user_groups(self) -> Iterator["UserGroup"]:
306306
Iterator[UserGroup]: An iterator over the user groups.
307307
"""
308308
query = """
309-
query GetUserGroupsPyApi {
310-
userGroups {
309+
query GetUserGroupsPyApi($first: PageSize, $after: String) {
310+
userGroups(first: $first, after: $after) {
311311
nodes {
312312
id
313313
name

libs/labelbox/tests/conftest.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ def ephemeral_endpoint() -> str:
9191

9292

9393
def graphql_url(environ: str) -> str:
94-
if environ == Environ.PROD:
94+
if environ == Environ.LOCAL:
95+
return 'http://localhost:3000/graphql'
96+
elif environ == Environ.PROD:
9597
return 'https://api.labelbox.com/graphql'
9698
elif environ == Environ.STAGING:
9799
return 'https://api.lb-stage.xyz/graphql'
@@ -107,7 +109,9 @@ def graphql_url(environ: str) -> str:
107109

108110

109111
def rest_url(environ: str) -> str:
110-
if environ == Environ.PROD:
112+
if environ == Environ.LOCAL:
113+
return 'http://localhost:3000/api/v1'
114+
elif environ == Environ.PROD:
111115
return 'https://api.labelbox.com/api/v1'
112116
elif environ == Environ.STAGING:
113117
return 'https://api.lb-stage.xyz/api/v1'

0 commit comments

Comments
 (0)